public class RecallAction extends ReturnToPreviousNodeAction
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancel |
protected Collection<Recipient> |
notificationRecipients |
DEFAULT_SEND_NOTIFICATIONS, INITIAL_NODE_NAME, nodeName
annotation, DEFAULT_ANNOTATION, DEFAULT_QUEUE_DOCUMENT_AFTER_ACTION, DEFAULT_RUN_POSTPROCESSOR_LOGIC, routeHeader
Constructor and Description |
---|
RecallAction(DocumentRouteHeaderValue routeHeader,
PrincipalContract principal)
Constructor required for ActionRegistry validation
|
RecallAction(DocumentRouteHeaderValue routeHeader,
PrincipalContract principal,
String annotation,
boolean cancel) |
RecallAction(DocumentRouteHeaderValue routeHeader,
PrincipalContract principal,
String annotation,
boolean cancel,
boolean sendNotifications) |
RecallAction(DocumentRouteHeaderValue routeHeader,
PrincipalContract principal,
String annotation,
boolean cancel,
boolean sendNotifications,
boolean runPostProcessorLogic) |
Modifier and Type | Method and Description |
---|---|
protected PrincipalContract |
determineInitialNodePrincipal(DocumentRouteHeaderValue routeHeader)
Override the default return to previous behavior so that the document is returned to the recaller, not initiator
|
protected List<ActionRequestValue> |
findApplicableActionRequests(List<ActionRequestValue> actionRequests)
Allows subclasses to determine which actionrequests to inspect for purposes of action validation
|
protected static ActionTakenValue |
getLastActionTaken(String docId)
Returns the last action taken on a document
|
protected ActionRequestType |
getReturnToInitiatorActionRequestType()
Template method that determines what action request to generate when returning to initiator
|
boolean |
isActionCompatibleRequest(List<ActionRequestValue> requests) |
protected static Collection<Recipient> |
parseNotificationRecipients(DocumentRouteHeaderValue routeHeader)
Parses notification recipients from the RECALL_NOTIFICATION document type policy, if present
|
void |
recordAction() |
protected void |
sendAdditionalNotifications()
Template method subclasses can use to send addition notification upon a return to previous action.
|
String |
validateActionRules(List<ActionRequestValue> actionRequests) |
protected String |
validateActionsTaken(DocumentRouteHeaderValue rh)
Determines whether prior actions taken are compatible with recall action by checking the RECALL_VALID_ACTIONSTAKEN
document type policy.
|
protected String |
validateRouting(DocumentRouteHeaderValue rh)
Determines whether the doc's type appears to statically define any routing.
|
isSuperUserUsage, setSuperUserUsage, validateActionRules
filterActionRequestsByCode, findDelegatorForActionRequests, generateAcknowledgementsToPreviousActionTakers, getActionPerformedCode, getActionRequestService, getActionTakenCode, getDocumentId, getGroupIdsForPrincipal, getPrincipal, getRouteHeader, invokePostProcessor, isActionValid, isPolicySet, isPolicySet, isRunPostProcessorLogic, notifyActionTaken, notifyAfterActionTaken, notifyStatusChange, performAction, queueDocumentProcessing, saveActionTaken, saveActionTaken, saveActionTaken, saveActionTaken, setActionTakenCode, setRouteHeader, updateSearchableAttributesIfPossible
protected final boolean cancel
protected final Collection<Recipient> notificationRecipients
public RecallAction(DocumentRouteHeaderValue routeHeader, PrincipalContract principal)
public RecallAction(DocumentRouteHeaderValue routeHeader, PrincipalContract principal, String annotation, boolean cancel)
public RecallAction(DocumentRouteHeaderValue routeHeader, PrincipalContract principal, String annotation, boolean cancel, boolean sendNotifications)
public RecallAction(DocumentRouteHeaderValue routeHeader, PrincipalContract principal, String annotation, boolean cancel, boolean sendNotifications, boolean runPostProcessorLogic)
protected static Collection<Recipient> parseNotificationRecipients(DocumentRouteHeaderValue routeHeader)
routeHeader
- this documentpublic String validateActionRules(List<ActionRequestValue> actionRequests)
validateActionRules
in class ReturnToPreviousNodeAction
protected String validateActionsTaken(DocumentRouteHeaderValue rh)
rh
- the DocumentRouteHeaderValueprotected String validateRouting(DocumentRouteHeaderValue rh)
rh
- the DocumentRouteHeaderValueprotected List<ActionRequestValue> findApplicableActionRequests(List<ActionRequestValue> actionRequests)
ReturnToPreviousNodeAction
findApplicableActionRequests
in class ReturnToPreviousNodeAction
actionRequests
- all actionrequests for this documentpublic boolean isActionCompatibleRequest(List<ActionRequestValue> requests)
isActionCompatibleRequest
in class ReturnToPreviousNodeAction
protected ActionRequestType getReturnToInitiatorActionRequestType()
ReturnToPreviousNodeAction
getReturnToInitiatorActionRequestType
in class ReturnToPreviousNodeAction
protected PrincipalContract determineInitialNodePrincipal(DocumentRouteHeaderValue routeHeader)
determineInitialNodePrincipal
in class ReturnToPreviousNodeAction
routeHeader
- the document route headerprotected void sendAdditionalNotifications()
ReturnToPreviousNodeAction
sendAdditionalNotifications
in class ReturnToPreviousNodeAction
public void recordAction() throws InvalidActionTakenException
recordAction
in class ReturnToPreviousNodeAction
InvalidActionTakenException
protected static ActionTakenValue getLastActionTaken(String docId)
docId
- the doc idCopyright © 2005–2015 The Kuali Foundation. All rights reserved.