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.actionitem.dao;
18:
19: import java.util.Collection;
20:
21: import edu.iu.uis.eden.actionitem.ActionItem;
22: import edu.iu.uis.eden.exception.EdenUserNotFoundException;
23: import edu.iu.uis.eden.user.WorkflowUser;
24:
25: /**
26: * Data Access Object for {@link ActionItem}s.
27: *
28: * @see ActionItem
29: *
30: * @author rkirkend
31: */
32: public interface ActionItemDAO {
33:
34: public ActionItem findByActionItemId(Long actionItemId);
35:
36: public void deleteActionItem(ActionItem actionItem);
37:
38: public void deleteByRouteHeaderId(Long routeHeaderId);
39:
40: public void deleteByRouteHeaderIdWorkflowUserId(Long routeHeaderId,
41: String workflowUserId);
42:
43: public void saveActionItem(ActionItem actionItem);
44:
45: public Collection findByWorkflowUser(WorkflowUser workflowUser);
46:
47: // public Collection findByWorkgroupId(Long workgroupId);
48:
49: public Collection findByRouteHeaderId(Long routeHeaderId);
50:
51: public Collection findByActionRequestId(Long actionRequestId);
52:
53: public Collection findByWorkflowUserRouteHeaderId(
54: String workflowUserId, Long routeHeaderId);
55:
56: // public void deleteWorkgroupActionItems(Long routeHeaderId, Long
57: // workGroupId);
58: // public void deleteUserActionItems(Long routeHeaderId, WorkflowUser
59: // workflowUser);
60: public void deleteActionItems(Long actionRequestId);
61:
62: public Collection findDelegators(WorkflowUser user,
63: String delegationType) throws EdenUserNotFoundException;
64:
65: }
|