|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.routelog.web.RouteLogAction.RouteNodeInstanceFabricator
private static class RouteLogAction.RouteNodeInstanceFabricator
Creates dummy RouteNodeInstances based on imported data from RouteNodeInstanceDTOs. It is then able to vend those RouteNodeInstanceS back by their IDs.
Field Summary | |
---|---|
private Map<Long,Branch> |
branches
|
private Map<Long,NodeState> |
nodeStates
|
private Map<Long,RouteNodeInstance> |
routeNodeInstances
|
private Map<Long,RouteNode> |
routeNodes
|
private RouteNodeService |
routeNodeService
|
Constructor Summary | |
---|---|
RouteLogAction.RouteNodeInstanceFabricator(RouteNodeService routeNodeService)
This constructs a FutureRouteNodeInstanceFabricator, which will generate bogus RouteNodeInstances for SimulationEngine results |
Method Summary | |
---|---|
private RouteNodeInstance |
_importRouteNodeInstanceDTO(RouteNodeInstanceDTO nodeInstanceDTO)
helper method for importRouteNodeInstanceDTO(RouteNodeInstanceDTO) which does all
the work. |
private Branch |
getBranch(Long branchId)
This method creates bogus BranchES as needed |
private NodeState |
getNodeState(Long nodeStateId)
This method creates bogus NodeStateS as needed |
private RouteNode |
getRouteNode(Long routeNodeId)
This method creates bogus RouteNodeS as needed |
RouteNodeInstance |
getRouteNodeInstance(Long routeNodeInstanceId)
This method creates bogus RouteNodeInstanceS as needed |
void |
importRouteNodeInstanceDTO(RouteNodeInstanceDTO nodeInstanceDTO)
This method looks at the given RouteNodeInstanceDTO and imports it (and all it's ancestors) as dummy RouteNodeInstanceS |
RouteNodeInstance |
load(Long routeNodeInstanceID)
This method returns a dummy RouteNodeInstance for the given ID, or null if it hasn't imported from a RouteNodeInstanceDTO with that ID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Map<Long,Branch> branches
private Map<Long,RouteNodeInstance> routeNodeInstances
private Map<Long,RouteNode> routeNodes
private Map<Long,NodeState> nodeStates
private RouteNodeService routeNodeService
Constructor Detail |
---|
public RouteLogAction.RouteNodeInstanceFabricator(RouteNodeService routeNodeService)
Method Detail |
---|
public void importRouteNodeInstanceDTO(RouteNodeInstanceDTO nodeInstanceDTO)
nodeInstanceDTO
- private RouteNodeInstance _importRouteNodeInstanceDTO(RouteNodeInstanceDTO nodeInstanceDTO)
importRouteNodeInstanceDTO(RouteNodeInstanceDTO)
which does all
the work. The public method just wraps this one but hides the returned RouteNodeInstance,
which is used for the recursive call to populate the nextNodeInstanceS inside our
RouteNodeInstanceS.
nodeInstanceDTO
-
public RouteNodeInstance load(Long routeNodeInstanceID)
load
in interface DTOConverter.RouteNodeInstanceLoader
DTOConverter.RouteNodeInstanceLoader.load(java.lang.Long)
private Branch getBranch(Long branchId)
branchId
-
private RouteNode getRouteNode(Long routeNodeId)
routeNodeId
-
public RouteNodeInstance getRouteNodeInstance(Long routeNodeInstanceId)
routeNodeInstanceId
-
private NodeState getNodeState(Long nodeStateId)
nodeStateId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |