001 /** 002 * Copyright 2005-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.rice.kew.quicklinks.service.impl; 017 018 import org.kuali.rice.core.api.util.KeyValue; 019 import org.kuali.rice.kew.quicklinks.ActionListStats; 020 import org.kuali.rice.kew.quicklinks.InitiatedDocumentType; 021 import org.kuali.rice.kew.quicklinks.WatchedDocument; 022 import org.kuali.rice.kew.quicklinks.dao.QuickLinksDAO; 023 import org.kuali.rice.kew.quicklinks.service.QuickLinksService; 024 025 import java.util.List; 026 027 028 public class QuickLinksServiceImpl implements QuickLinksService { 029 030 private QuickLinksDAO quickLinksDAO; 031 032 @Override 033 public List<ActionListStats> getActionListStats(String principalId) { 034 return getQuickLinksDAO().getActionListStats(principalId); 035 } 036 037 @Override 038 public List<InitiatedDocumentType> getInitiatedDocumentTypesList(String principalId) { 039 return getQuickLinksDAO().getInitiatedDocumentTypesList(principalId); 040 } 041 042 @Override 043 public List<KeyValue> getNamedSearches(String principalId) { 044 return getQuickLinksDAO().getNamedSearches(principalId); 045 } 046 047 @Override 048 public List<KeyValue> getRecentSearches(String principalId) { 049 return getQuickLinksDAO().getRecentSearches(principalId); 050 } 051 052 @Override 053 public List<WatchedDocument> getWatchedDocuments(String principalId) { 054 return getQuickLinksDAO().getWatchedDocuments(principalId); 055 } 056 057 // BELOW ARE SPRING MANAGED PROPERTIES OF THIS BEAN 058 public QuickLinksDAO getQuickLinksDAO() { 059 return quickLinksDAO; 060 } 061 public void setQuickLinksDAO(QuickLinksDAO quickLinksDAO) { 062 this.quickLinksDAO = quickLinksDAO; 063 } 064 065 }