View Javadoc

1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.kew.quicklinks.service.impl;
17  
18  import org.kuali.rice.core.api.util.KeyValue;
19  import org.kuali.rice.kew.quicklinks.ActionListStats;
20  import org.kuali.rice.kew.quicklinks.InitiatedDocumentType;
21  import org.kuali.rice.kew.quicklinks.WatchedDocument;
22  import org.kuali.rice.kew.quicklinks.dao.QuickLinksDAO;
23  import org.kuali.rice.kew.quicklinks.service.QuickLinksService;
24  
25  import java.util.List;
26  
27  
28  public class QuickLinksServiceImpl implements QuickLinksService {
29  
30      private QuickLinksDAO quickLinksDAO;
31  
32      @Override
33  	public List<ActionListStats> getActionListStats(String principalId) {
34          return getQuickLinksDAO().getActionListStats(principalId);
35      }
36  
37      @Override
38  	public List<InitiatedDocumentType> getInitiatedDocumentTypesList(String principalId) {
39          return getQuickLinksDAO().getInitiatedDocumentTypesList(principalId);
40      }
41  
42      @Override
43  	public List<KeyValue> getNamedSearches(String principalId) {
44          return getQuickLinksDAO().getNamedSearches(principalId);
45      }
46  
47      @Override
48  	public List<KeyValue> getRecentSearches(String principalId) {
49          return getQuickLinksDAO().getRecentSearches(principalId);
50      }
51  
52      @Override
53  	public List<WatchedDocument> getWatchedDocuments(String principalId) {
54          return getQuickLinksDAO().getWatchedDocuments(principalId);
55      }
56  
57      // BELOW ARE SPRING MANAGED PROPERTIES OF THIS BEAN
58      public QuickLinksDAO getQuickLinksDAO() {
59          return quickLinksDAO;
60      }
61      public void setQuickLinksDAO(QuickLinksDAO quickLinksDAO) {
62          this.quickLinksDAO = quickLinksDAO;
63      }
64  
65  }