public class ActionRequestServiceImpl extends Object implements ActionRequestService
ActionRequestService
.Constructor and Description |
---|
ActionRequestServiceImpl() |
public ActionRequestServiceImpl()
public ActionRequestValue findByActionRequestId(String actionRequestId)
findByActionRequestId
in interface ActionRequestService
public Map<String,String> getActionsRequested(DocumentRouteHeaderValue routeHeader, String principalId, boolean completeAndApproveTheSame)
getActionsRequested
in interface ActionRequestService
protected Map<String,String> getActionsRequested(String principalId, List<ActionRequestValue> actionRequests, boolean completeAndApproveTheSame)
public ActionRequestValue initializeActionRequestGraph(ActionRequestValue actionRequest, DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance)
initializeActionRequestGraph
in interface ActionRequestService
public List<ActionRequestValue> activateRequests(List<ActionRequestValue> actionRequests)
activateRequests
in interface ActionRequestService
public List<ActionRequestValue> activateRequests(List<ActionRequestValue> actionRequests, boolean simulate)
activateRequests
in interface ActionRequestService
public List<ActionRequestValue> activateRequests(List<ActionRequestValue> actionRequests, ActivationContext activationContext)
activateRequests
in interface ActionRequestService
public ActionRequestValue activateRequest(ActionRequestValue actionRequest)
activateRequest
in interface ActionRequestService
public ActionRequestValue activateRequest(ActionRequestValue actionRequest, boolean simulate)
activateRequest
in interface ActionRequestService
public ActionRequestValue activateRequest(ActionRequestValue actionRequest, ActivationContext activationContext)
activateRequest
in interface ActionRequestService
public ActionRequestValue activateRequestNoNotification(ActionRequestValue actionRequest, ActivationContext activationContext)
activateRequestNoNotification
in interface ActionRequestService
protected boolean deactivateOnActionAlreadyTaken(ActionRequestValue actionRequestToActivate, ActivationContext activationContext)
protected boolean deactivateOnEmptyGroup(ActionRequestValue actionRequestToActivate, ActivationContext activationContext)
protected boolean deactivateOnInactiveGroup(ActionRequestValue actionRequestToActivate, ActivationContext activationContext)
public ActionRequestValue deactivateRequest(ActionTakenValue actionTaken, ActionRequestValue actionRequest)
deactivateRequest
in interface ActionRequestService
public ActionRequestValue deactivateRequest(ActionTakenValue actionTaken, ActionRequestValue actionRequest, ActivationContext activationContext)
deactivateRequest
in interface ActionRequestService
public List<ActionRequestValue> deactivateRequests(ActionTakenValue actionTaken, List<ActionRequestValue> actionRequests)
deactivateRequests
in interface ActionRequestService
public List<ActionRequestValue> deactivateRequests(ActionTakenValue actionTaken, List<ActionRequestValue> actionRequests, boolean simulate)
deactivateRequests
in interface ActionRequestService
public List<ActionRequestValue> deactivateRequests(ActionTakenValue actionTaken, List<ActionRequestValue> actionRequests, ActivationContext activationContext)
deactivateRequests
in interface ActionRequestService
public List<ActionRequestValue> getRootRequests(Collection<ActionRequestValue> actionRequests)
getRootRequests
in interface ActionRequestService
public ActionRequestValue getRoot(ActionRequestValue actionRequest)
getRoot
in interface ActionRequestService
public List<ActionRequestValue> findAllPendingRequests(String documentId)
findAllPendingRequests
in interface ActionRequestService
documentId
- the id of the document header being routedpublic List<ActionRequestValue> findAllValidRequests(String principalId, String documentId, String requestCode)
findAllValidRequests
in interface ActionRequestService
protected List<ActionRequestValue> findByStatusAndDocumentId(String statusCode, String documentId)
public List<ActionRequestValue> findAllValidRequests(String principalId, List<ActionRequestValue> actionRequests, String requestCode)
findAllValidRequests
in interface ActionRequestService
public List<ActionRequestValue> filterActionRequestsByCode(List<ActionRequestValue> actionRequests, String principalId, List<String> principalGroupIds, String requestCode)
filterActionRequestsByCode
in interface ActionRequestService
actionRequests
- the List of ActionRequestValues to filterprincipalId
- the id of the principal to find active requests forprincipalGroupIds
- List of group ids that the principal belongs torequestCode
- the request code for all ActionRequestValues to be afterpublic void updateActionRequestsForResponsibilityChange(Set<String> responsibilityIds)
updateActionRequestsForResponsibilityChange
in interface ActionRequestService
public void deleteActionRequestGraphNoOutbox(ActionRequestValue actionRequest)
deleteActionRequestGraphNoOutbox
in interface ActionRequestService
public void deleteActionRequestGraph(ActionRequestValue actionRequest)
deleteActionRequestGraph
in interface ActionRequestService
protected void deleteActionRequestGraph(ActionRequestValue actionRequest, boolean populateOutbox)
public List<ActionRequestValue> findByDocumentIdIgnoreCurrentInd(String documentId)
findByDocumentIdIgnoreCurrentInd
in interface ActionRequestService
public List<ActionRequestValue> findAllActionRequestsByDocumentId(String documentId)
findAllActionRequestsByDocumentId
in interface ActionRequestService
public List<ActionRequestValue> findAllRootActionRequestsByDocumentId(String documentId)
findAllRootActionRequestsByDocumentId
in interface ActionRequestService
public List<ActionRequestValue> findPendingByActionRequestedAndDocId(String actionRequestedCd, String documentId)
findPendingByActionRequestedAndDocId
in interface ActionRequestService
public List<String> getPrincipalIdsWithPendingActionRequestByActionRequestedAndDocId(String actionRequestedCd, String documentId)
ActionRequestService
getPrincipalIdsWithPendingActionRequestByActionRequestedAndDocId
in interface ActionRequestService
public List<ActionRequestValue> findPendingRootRequestsByDocId(String documentId)
findPendingRootRequestsByDocId
in interface ActionRequestService
public List<ActionRequestValue> findPendingRootRequestsByDocIdAtRouteNode(String documentId, String nodeInstanceId)
findPendingRootRequestsByDocIdAtRouteNode
in interface ActionRequestService
public List<ActionRequestValue> findRootRequestsByDocIdAtRouteNode(String documentId, String nodeInstanceId)
findRootRequestsByDocIdAtRouteNode
in interface ActionRequestService
public List<ActionRequestValue> findPendingRootRequestsByDocumentType(String documentTypeId)
findPendingRootRequestsByDocumentType
in interface ActionRequestService
public ActionRequestValue saveActionRequest(ActionRequestValue actionRequest)
saveActionRequest
in interface ActionRequestService
protected ActionRequestValue saveActionRequest(ActionRequestValue actionRequest, boolean simulation)
public List<ActionRequestValue> findPendingByDoc(String documentId)
findPendingByDoc
in interface ActionRequestService
public List<ActionRequestValue> findPendingByDocRequestCdNodeName(String documentId, String requestCode, String nodeName)
findPendingByDocRequestCdNodeName
in interface ActionRequestService
public List<ActionRequestValue> findActivatedByGroup(String groupId)
findActivatedByGroup
in interface ActionRequestService
public List<ActionRequestValue> findByStatusAndDocId(String statusCode, String documentId)
findByStatusAndDocId
in interface ActionRequestService
public Recipient findDelegator(List<ActionRequestValue> actionRequests)
ActionRequestService
findDelegator
in interface ActionRequestService
public ActionRequestValue findDelegatorRequest(ActionRequestValue actionRequest)
findDelegatorRequest
in interface ActionRequestService
public List<ActionRequestValue> getDelegateRequests(ActionRequestValue actionRequest)
getDelegateRequests
in interface ActionRequestService
public List<ActionRequestValue> getTopLevelRequests(ActionRequestValue actionRequest)
ActionRequestService
getTopLevelRequests
in interface ActionRequestService
public boolean doesPrincipalHaveRequest(String principalId, String documentId)
ActionRequestService
doesPrincipalHaveRequest
in interface ActionRequestService
public ActionRequestValue getActionRequestForRole(String actionTakenId)
getActionRequestForRole
in interface ActionRequestService
protected Predicate getPendingCriteria()
public DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
public ActionRequestDAO getActionRequestDAO()
public void setActionRequestDAO(ActionRequestDAO actionRequestDAO)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.