01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.actionrequests.dao;
18:
19: import java.util.Collection;
20: import java.util.List;
21:
22: import edu.iu.uis.eden.actionrequests.ActionRequestValue;
23: import edu.iu.uis.eden.workgroup.Workgroup;
24:
25: /**
26: * Data Access Object for {@link ActionRequestValue}s.
27: *
28: * @author ewestfal
29: * @author rkirkend
30: */
31: public interface ActionRequestDAO {
32:
33: public ActionRequestValue getActionRequestByActionRequestId(
34: Long actionRequestId);
35:
36: public void saveActionRequest(ActionRequestValue actionRequest);
37:
38: public List findPendingRootRequestsByDocIdAtRouteLevel(
39: Long routeHeaderId, Integer routeLevel);
40:
41: public List findPendingByDocIdAtOrBelowRouteLevel(
42: Long routeHeaderId, Integer routeLevel);
43:
44: public List findPendingRootRequestsByDocIdAtOrBelowRouteLevel(
45: Long routeHeaderId, Integer routeLevel);
46:
47: public void delete(Long actionRequestId);
48:
49: public List findPendingByActionRequestedAndDocId(
50: String actionRequestedCd, Long routeHeaderId);
51:
52: public List findAllPendingByDocId(Long routeHeaderId);
53:
54: public List findAllByDocId(Long routeHeaderId);
55:
56: public List findAllRootByDocId(Long routeHeaderId);
57:
58: public List findByStatusAndDocId(String statusCd, Long routeHeaderId);
59:
60: public List findByRouteHeaderIdIgnoreCurrentInd(Long routeHeaderId);
61:
62: public List findActivatedByWorkgroup(Workgroup workgroup);
63:
64: public List findPendingByResponsibilityIds(
65: Collection responsibilityIds);
66:
67: public void deleteByRouteHeaderId(Long routeHeaderId);
68:
69: public List findPendingRootRequestsByDocumentType(
70: Long documentTypeId);
71:
72: public List findPendingRootRequestsByDocIdAtRouteNode(
73: Long routeHeaderId, Long nodeInstanceId);
74:
75: public List findRootRequestsByDocIdAtRouteNode(Long documentId,
76: Long nodeInstanceId);
77:
78: //public List findFutureAdHocRequestsByDocIdAtRouteNode(Long documentId, String nodeName);
79:
80: }
|