01: /*
02: * Copyright 2005-2007 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.engine.node.dao;
18:
19: import java.util.List;
20:
21: import edu.iu.uis.eden.engine.node.Branch;
22: import edu.iu.uis.eden.engine.node.NodeState;
23: import edu.iu.uis.eden.engine.node.RouteNode;
24: import edu.iu.uis.eden.engine.node.RouteNodeInstance;
25:
26: public interface RouteNodeDAO {
27:
28: public void save(RouteNode node);
29:
30: public void save(RouteNodeInstance nodeInstance);
31:
32: public void save(NodeState nodeState);
33:
34: public void save(Branch branch);
35:
36: public RouteNode findRouteNodeById(Long nodeId);
37:
38: public RouteNodeInstance findRouteNodeInstanceById(
39: Long nodeInstanceId);
40:
41: public List getActiveNodeInstances(Long documentId);
42:
43: public List getTerminalNodeInstances(Long documentId);
44:
45: public List getInitialNodeInstances(Long documentId);
46:
47: public NodeState findNodeState(Long nodeInstanceId, String key);
48:
49: public RouteNode findRouteNodeByName(Long documentTypeId,
50: String name);
51:
52: public List findFinalApprovalRouteNodes(Long documentTypeId);
53:
54: public List findProcessNodeInstances(RouteNodeInstance process);
55:
56: public List findRouteNodeInstances(Long documentId);
57:
58: public void deleteLinksToPreNodeInstances(
59: RouteNodeInstance routeNodeInstance);
60:
61: public void deleteRouteNodeInstancesHereAfter(
62: RouteNodeInstance routeNodeInstance);
63:
64: public void deleteNodeStateById(Long nodeStateId);
65:
66: public void deleteNodeStates(List statesToBeDeleted);
67:
68: }
|