View Javadoc
1   /**
2    * Copyright 2005-2015 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.actionlist.dao;
17  
18  import java.util.List;
19  
20  import org.kuali.rice.kew.actionitem.ActionItem;
21  import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue;
22  
23  
24  /**
25   * Data Access object for the Action List.
26   *
27   * @see ActionItem
28   *
29   * @author Kuali Rice Team (rice.collab@kuali.org)
30   */
31  public interface ActionListDAO {
32  
33      /**
34       * Get the total count of items in the given person's action list.
35       */
36      public int getCount(String principalId);
37  
38      /**
39       * Get the maximum last action taken date and total count for items in the person's action list.
40       *
41       * This is used to help with the action list caching and detection of changes.
42       */
43      public List<Object> getMaxActionItemDateAssignedAndCountForUser(String principalId);
44  
45      /**
46       * Pulls a proxied version of the document route header with only the properties needed by the
47       * action list display.
48       */
49      DocumentRouteHeaderValue getMinimalRouteHeader( String documentId );
50  }