|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.actions.ActionTakenEvent org.kuali.rice.kew.actions.ReturnToPreviousNodeAction org.kuali.rice.kew.actions.RecallAction
public class RecallAction
Field Summary | |
---|---|
protected boolean |
cancel
|
protected Collection<Recipient> |
notificationRecipients
|
Fields inherited from class org.kuali.rice.kew.actions.ReturnToPreviousNodeAction |
---|
DEFAULT_SEND_NOTIFICATIONS, INITIAL_NODE_NAME, nodeName |
Fields inherited from class org.kuali.rice.kew.actions.ActionTakenEvent |
---|
annotation, DEFAULT_ANNOTATION, DEFAULT_QUEUE_DOCUMENT_AFTER_ACTION, DEFAULT_RUN_POSTPROCESSOR_LOGIC, routeHeader |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.kuali.rice.kew.actions.ReturnToPreviousNodeAction |
---|
isSuperUserUsage, setSuperUserUsage, validateActionRules |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final boolean cancel
protected final Collection<Recipient> notificationRecipients
Constructor Detail |
---|
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)
Method Detail |
---|
protected static Collection<Recipient> parseNotificationRecipients(DocumentRouteHeaderValue routeHeader)
routeHeader
- this document
public String validateActionRules(List<ActionRequestValue> actionRequests)
validateActionRules
in class ReturnToPreviousNodeAction
protected String validateActionsTaken(DocumentRouteHeaderValue rh)
rh
- the DocumentRouteHeaderValue
protected String validateRouting(DocumentRouteHeaderValue rh)
rh
- the DocumentRouteHeaderValue
protected List<ActionRequestValue> findApplicableActionRequests(List<ActionRequestValue> actionRequests)
ReturnToPreviousNodeAction
findApplicableActionRequests
in class ReturnToPreviousNodeAction
actionRequests
- all actionrequests for this document
public 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 header
protected 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 id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |