|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.engine.node.service.impl.RouteNodeServiceImpl
public class RouteNodeServiceImpl
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
LOG
|
static String |
REVOKED_NODE_INSTANCES_STATE_KEY
|
Constructor Summary | |
---|---|
RouteNodeServiceImpl()
|
Method Summary | |
---|---|
void |
deleteByRouteNodeInstance(RouteNodeInstance routeNodeInstance)
|
void |
deleteNodeStateById(Long nodeStateId)
|
void |
deleteNodeStates(List statesToBeDeleted)
|
List<RouteNode> |
findFinalApprovalRouteNodes(String documentTypeId)
|
List<String> |
findFutureNodeNames(String documentId)
Returns a List of the distinct node names through which this document might pass in it's future routing. |
List |
findNextRouteNodesInPath(RouteNodeInstance nodeInstance,
String nodeName)
|
NodeState |
findNodeState(Long nodeInstanceId,
String key)
|
List<String> |
findPreviousNodeNames(String documentId)
|
List |
findProcessNodeInstances(RouteNodeInstance process)
|
RouteNode |
findRouteNodeById(String nodeId)
|
RouteNode |
findRouteNodeByName(String documentTypeId,
String name)
|
RouteNodeInstance |
findRouteNodeInstanceById(String nodeInstanceId)
|
RouteNodeInstance |
findRouteNodeInstanceById(String nodeInstanceId,
DocumentRouteHeaderValue document)
This method looks though the passed in DocumentRouteHeaderValue and retrieves a nodeInstance that matches the ID passed in. |
List |
findRouteNodeInstances(String documentId)
|
List<RouteNodeInstance> |
getActiveNodeInstances(DocumentRouteHeaderValue document)
|
List<RouteNodeInstance> |
getActiveNodeInstances(DocumentRouteHeaderValue document,
String nodeName)
Returns a list of active node instances associated with the document that are active |
List<RouteNodeInstance> |
getActiveNodeInstances(String documentId)
Retrieves the active node instances of the given Document. |
List<String> |
getActiveRouteNodeNames(String documentId)
Retrieves the names of active node instances for the document with the given id. |
List<RouteNodeInstance> |
getCurrentNodeInstances(String documentId)
Returns the node instances representing the most recent node instances in the document. |
List<RouteNodeInstance> |
getFlattenedNodeInstances(DocumentRouteHeaderValue document,
boolean includeProcesses)
Returns a flattened list of RouteNodeInstances on the given document. |
List<RouteNode> |
getFlattenedNodes(DocumentType documentType,
boolean climbHierarchy)
Flatten all the document types route nodes into a single List. |
List<RouteNode> |
getFlattenedNodes(ProcessDefinitionBo process)
|
List |
getInitialNodeInstances(String documentId)
Retrieves the initial node instances of the given document. |
List |
getRevokedNodeInstances(DocumentRouteHeaderValue document)
Queries the list of revoked node instances from the root BranchState of the Document and returns a List of revoked RouteNodeInstances. |
List<RouteNodeInstance> |
getTerminalNodeInstances(String documentId)
Retrieves the terminal node instances of the given Document. |
List<String> |
getTerminalRouteNodeNames(String documentId)
Retrieves the names of terminal node instances for the document with the given id. |
boolean |
isNodeInPath(DocumentRouteHeaderValue document,
String nodeName)
|
void |
revokeNodeInstance(DocumentRouteHeaderValue document,
RouteNodeInstance nodeInstance)
Records the revocation in the root BranchState of the document. |
void |
save(Branch branch)
|
void |
save(NodeState nodeState)
|
void |
save(RouteNode node)
|
void |
save(RouteNodeInstance nodeInstance)
|
NodeGraphSearchResult |
searchNodeGraph(NodeGraphSearchCriteria criteria)
|
void |
setRouteNodeDAO(RouteNodeDAO dao)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Logger LOG
public static final String REVOKED_NODE_INSTANCES_STATE_KEY
Constructor Detail |
---|
public RouteNodeServiceImpl()
Method Detail |
---|
public void save(RouteNode node)
save
in interface RouteNodeService
public void save(RouteNodeInstance nodeInstance)
save
in interface RouteNodeService
public void save(NodeState nodeState)
save
in interface RouteNodeService
public void save(Branch branch)
save
in interface RouteNodeService
public RouteNode findRouteNodeById(String nodeId)
findRouteNodeById
in interface RouteNodeService
public RouteNodeInstance findRouteNodeInstanceById(String nodeInstanceId)
findRouteNodeInstanceById
in interface RouteNodeService
public RouteNodeInstance findRouteNodeInstanceById(String nodeInstanceId, DocumentRouteHeaderValue document)
RouteNodeService
findRouteNodeInstanceById
in interface RouteNodeService
public List<RouteNodeInstance> getCurrentNodeInstances(String documentId)
RouteNodeService
getCurrentNodeInstances
in interface RouteNodeService
public List<RouteNodeInstance> getActiveNodeInstances(String documentId)
RouteNodeService
getActiveNodeInstances
in interface RouteNodeService
documentId
- of the document
public List<RouteNodeInstance> getActiveNodeInstances(DocumentRouteHeaderValue document)
getActiveNodeInstances
in interface RouteNodeService
public List<String> getActiveRouteNodeNames(String documentId)
RouteNodeService
getActiveRouteNodeNames
in interface RouteNodeService
documentId
- of the document
public List<RouteNodeInstance> getTerminalNodeInstances(String documentId)
RouteNodeService
getTerminalNodeInstances
in interface RouteNodeService
documentId
- for the given Document
public List<String> getTerminalRouteNodeNames(String documentId)
RouteNodeService
getTerminalRouteNodeNames
in interface RouteNodeService
documentId
- for the given Document
public List getInitialNodeInstances(String documentId)
RouteNodeService
getInitialNodeInstances
in interface RouteNodeService
public NodeState findNodeState(Long nodeInstanceId, String key)
findNodeState
in interface RouteNodeService
public RouteNode findRouteNodeByName(String documentTypeId, String name)
findRouteNodeByName
in interface RouteNodeService
public List<RouteNode> findFinalApprovalRouteNodes(String documentTypeId)
findFinalApprovalRouteNodes
in interface RouteNodeService
public List findNextRouteNodesInPath(RouteNodeInstance nodeInstance, String nodeName)
findNextRouteNodesInPath
in interface RouteNodeService
public boolean isNodeInPath(DocumentRouteHeaderValue document, String nodeName)
isNodeInPath
in interface RouteNodeService
public List findRouteNodeInstances(String documentId)
findRouteNodeInstances
in interface RouteNodeService
public void setRouteNodeDAO(RouteNodeDAO dao)
public List findProcessNodeInstances(RouteNodeInstance process)
findProcessNodeInstances
in interface RouteNodeService
public List<String> findPreviousNodeNames(String documentId)
findPreviousNodeNames
in interface RouteNodeService
public List<String> findFutureNodeNames(String documentId)
RouteNodeService
findFutureNodeNames
in interface RouteNodeService
public List<RouteNode> getFlattenedNodes(DocumentType documentType, boolean climbHierarchy)
RouteNodeService
getFlattenedNodes
in interface RouteNodeService
documentType
- DocumentType who's nodes will be flattened.climbHierarchy
- whether to include the parents nodes if the passed in DocumentType contains no nodes
public List<RouteNode> getFlattenedNodes(ProcessDefinitionBo process)
getFlattenedNodes
in interface RouteNodeService
public List<RouteNodeInstance> getFlattenedNodeInstances(DocumentRouteHeaderValue document, boolean includeProcesses)
RouteNodeService
getFlattenedNodeInstances
in interface RouteNodeService
document
- route header valueincludeProcesses
- flag
public NodeGraphSearchResult searchNodeGraph(NodeGraphSearchCriteria criteria)
searchNodeGraph
in interface RouteNodeService
public List<RouteNodeInstance> getActiveNodeInstances(DocumentRouteHeaderValue document, String nodeName)
RouteNodeService
getActiveNodeInstances
in interface RouteNodeService
public void deleteByRouteNodeInstance(RouteNodeInstance routeNodeInstance)
deleteByRouteNodeInstance
in interface RouteNodeService
public void deleteNodeStateById(Long nodeStateId)
deleteNodeStateById
in interface RouteNodeService
public void deleteNodeStates(List statesToBeDeleted)
deleteNodeStates
in interface RouteNodeService
public void revokeNodeInstance(DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance)
revokeNodeInstance
in interface RouteNodeService
public List getRevokedNodeInstances(DocumentRouteHeaderValue document)
getRevokedNodeInstances
in interface RouteNodeService
revokeNodeInstance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |