public class RouteNodeServiceImpl extends Object implements RouteNodeService
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.log4j.Logger |
LOG |
static String |
REVOKED_NODE_INSTANCES_STATE_KEY |
| Constructor and Description |
|---|
RouteNodeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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<String> |
getCurrentRouteNodeNames(String documentId)
Retrieves the names of the route node instances where the document is currently located
for the document with the given id.
|
DataObjectService |
getDataObjectService() |
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.
|
Branch |
save(Branch branch) |
void |
save(NodeState nodeState) |
RouteNode |
save(RouteNode node) |
RouteNodeInstance |
save(RouteNodeInstance nodeInstance) |
NodeGraphSearchResult |
searchNodeGraph(NodeGraphSearchCriteria criteria) |
void |
setDataObjectService(DataObjectService dataObjectService) |
void |
setRouteNodeDAO(RouteNodeDAO dao) |
protected final org.apache.log4j.Logger LOG
public static final String REVOKED_NODE_INSTANCES_STATE_KEY
public RouteNodeServiceImpl()
public RouteNode save(RouteNode node)
save in interface RouteNodeServicepublic RouteNodeInstance save(RouteNodeInstance nodeInstance)
save in interface RouteNodeServicepublic void save(NodeState nodeState)
save in interface RouteNodeServicepublic Branch save(Branch branch)
save in interface RouteNodeServicepublic RouteNode findRouteNodeById(String nodeId)
findRouteNodeById in interface RouteNodeServicepublic RouteNodeInstance findRouteNodeInstanceById(String nodeInstanceId)
findRouteNodeInstanceById in interface RouteNodeServicepublic RouteNodeInstance findRouteNodeInstanceById(String nodeInstanceId, DocumentRouteHeaderValue document)
RouteNodeServicefindRouteNodeInstanceById in interface RouteNodeServicepublic List<RouteNodeInstance> getCurrentNodeInstances(String documentId)
RouteNodeServicegetCurrentNodeInstances in interface RouteNodeServicepublic List<RouteNodeInstance> getActiveNodeInstances(String documentId)
RouteNodeServicegetActiveNodeInstances in interface RouteNodeServicedocumentId - of the documentpublic List<RouteNodeInstance> getActiveNodeInstances(DocumentRouteHeaderValue document)
getActiveNodeInstances in interface RouteNodeServicepublic List<String> getCurrentRouteNodeNames(String documentId)
RouteNodeServicegetCurrentRouteNodeNames in interface RouteNodeServicedocumentId - of the documentpublic List<String> getActiveRouteNodeNames(String documentId)
RouteNodeServicegetActiveRouteNodeNames in interface RouteNodeServicedocumentId - of the documentpublic List<RouteNodeInstance> getTerminalNodeInstances(String documentId)
RouteNodeServicegetTerminalNodeInstances in interface RouteNodeServicedocumentId - for the given Documentpublic List<String> getTerminalRouteNodeNames(String documentId)
RouteNodeServicegetTerminalRouteNodeNames in interface RouteNodeServicedocumentId - for the given Documentpublic List getInitialNodeInstances(String documentId)
RouteNodeServicegetInitialNodeInstances in interface RouteNodeServicepublic NodeState findNodeState(Long nodeInstanceId, String key)
findNodeState in interface RouteNodeServicepublic RouteNode findRouteNodeByName(String documentTypeId, String name)
findRouteNodeByName in interface RouteNodeServicepublic List<RouteNode> findFinalApprovalRouteNodes(String documentTypeId)
findFinalApprovalRouteNodes in interface RouteNodeServicepublic List findNextRouteNodesInPath(RouteNodeInstance nodeInstance, String nodeName)
findNextRouteNodesInPath in interface RouteNodeServicepublic boolean isNodeInPath(DocumentRouteHeaderValue document, String nodeName)
isNodeInPath in interface RouteNodeServicepublic List findRouteNodeInstances(String documentId)
findRouteNodeInstances in interface RouteNodeServicepublic void setRouteNodeDAO(RouteNodeDAO dao)
public List findProcessNodeInstances(RouteNodeInstance process)
findProcessNodeInstances in interface RouteNodeServicepublic List<String> findPreviousNodeNames(String documentId)
findPreviousNodeNames in interface RouteNodeServicepublic List<String> findFutureNodeNames(String documentId)
RouteNodeServicefindFutureNodeNames in interface RouteNodeServicepublic List<RouteNode> getFlattenedNodes(DocumentType documentType, boolean climbHierarchy)
RouteNodeServicegetFlattenedNodes in interface RouteNodeServicedocumentType - DocumentType who's nodes will be flattened.climbHierarchy - whether to include the parents nodes if the passed in DocumentType contains no nodespublic List<RouteNode> getFlattenedNodes(ProcessDefinitionBo process)
getFlattenedNodes in interface RouteNodeServicepublic List<RouteNodeInstance> getFlattenedNodeInstances(DocumentRouteHeaderValue document, boolean includeProcesses)
RouteNodeServicegetFlattenedNodeInstances in interface RouteNodeServicedocument - route header valueincludeProcesses - flagpublic NodeGraphSearchResult searchNodeGraph(NodeGraphSearchCriteria criteria)
searchNodeGraph in interface RouteNodeServicepublic List<RouteNodeInstance> getActiveNodeInstances(DocumentRouteHeaderValue document, String nodeName)
RouteNodeServicegetActiveNodeInstances in interface RouteNodeServicepublic void deleteByRouteNodeInstance(RouteNodeInstance routeNodeInstance)
deleteByRouteNodeInstance in interface RouteNodeServicepublic void deleteNodeStateById(Long nodeStateId)
deleteNodeStateById in interface RouteNodeServicepublic void deleteNodeStates(List statesToBeDeleted)
deleteNodeStates in interface RouteNodeServicepublic void revokeNodeInstance(DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance)
revokeNodeInstance in interface RouteNodeServicepublic List getRevokedNodeInstances(DocumentRouteHeaderValue document)
getRevokedNodeInstances in interface RouteNodeServicerevokeNodeInstancepublic DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.