View Javadoc

1   /**
2    * Copyright 2005-2012 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.actiontaken.dao;
17  
18  import org.kuali.rice.kew.actiontaken.ActionTakenValue;
19  import org.kuali.rice.kew.api.action.ActionType;
20  
21  import java.sql.Timestamp;
22  import java.util.Collection;
23  import java.util.List;
24  
25  
26  /**
27   * Data Access Object for {@link ActionTakenValue}s.
28   *
29   * @author Kuali Rice Team (rice.collab@kuali.org)
30   */
31  public interface ActionTakenDAO {
32  
33      public ActionTakenValue load(String id);
34  
35      public void saveActionTaken(ActionTakenValue actionTaken);
36  
37      public void deleteActionTaken(ActionTakenValue actionTaken);
38  
39      public ActionTakenValue findByActionTakenId(String actionTakenId);
40  
41      public Collection<ActionTakenValue> findByDocumentId(String documentId);
42  
43      public Collection<ActionTakenValue> findByDocIdAndAction(String docId, String action);
44  
45      public List<ActionTakenValue> findByDocumentIdWorkflowId(String documentId, String workflowId);
46  
47      public List findByDocumentIdIgnoreCurrentInd(String documentId);
48  
49      public void deleteByDocumentId(String documentId);
50  
51      public boolean hasUserTakenAction(String workflowId, String documentId);
52  
53      public Timestamp getLastActionTakenDate(String documentId, ActionType actionType);
54  
55  }