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.actiontaken.service;
17  
18  import org.kuali.rice.kew.actionrequest.ActionRequestValue;
19  import org.kuali.rice.kew.actiontaken.ActionTakenValue;
20  
21  import java.sql.Timestamp;
22  import java.util.Collection;
23  import java.util.List;
24  
25  
26  /**
27   * Responsible for the data access for {@link ActionTakenValue} objects.
28   *
29   * @author Kuali Rice Team (rice.collab@kuali.org)
30   */
31  public interface ActionTakenService {
32  
33      ActionTakenValue findByActionTakenId(String actionTakenId);
34  
35      ActionTakenValue saveActionTaken(ActionTakenValue actionTaken);
36  
37      ActionTakenValue getPreviousAction(ActionRequestValue actionRequest);
38  
39      ActionTakenValue getPreviousAction(ActionRequestValue actionRequest, List<ActionTakenValue> simulatedActionsTaken);
40  
41      Collection<ActionTakenValue> findByDocumentId(String documentId);
42  
43      List<ActionTakenValue> findByDocumentIdPrincipalId(String documentId, String workflowId);
44  
45      void delete(ActionTakenValue actionTaken);
46  
47      List<ActionTakenValue> findByDocumentIdIgnoreCurrentInd(String documentId);
48  
49      boolean hasUserTakenAction(String principalId, String documentId);
50  
51      Timestamp getLastApprovedDate(String documentId);
52  
53  }