org.kuali.rice.kew.actions
Class SuperUserCancelEvent

java.lang.Object
  extended by org.kuali.rice.kew.actions.ActionTakenEvent
      extended by org.kuali.rice.kew.actions.SuperUserCancelEvent

public class SuperUserCancelEvent
extends ActionTakenEvent

performs a cancel action as a super user

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static String AUTHORIZATION
           
protected  String superUserAction
           
 
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
SuperUserCancelEvent(DocumentRouteHeaderValue routeHeader, PrincipalContract principal)
           
SuperUserCancelEvent(DocumentRouteHeaderValue routeHeader, PrincipalContract principal, String annotation, boolean runPostProcessor)
           
 
Method Summary
 ActionRequestValue getActionRequest()
           
 String getSuperUserAction()
           
protected  void markDocument()
           
protected  ActionTakenValue processActionRequests()
           
protected  void processActionTaken(ActionTakenValue actionTaken)
          Allows subclasses to perform any post-processing after the action has been taken
 void recordAction()
           
 void setActionRequest(ActionRequestValue actionRequest)
           
 String validateActionRules()
          Placeholder for validation rules for each action
 String validateActionRules(List<ActionRequestValue> actionRequests)
           
 
Methods inherited from class org.kuali.rice.kew.actions.ActionTakenEvent
filterActionRequestsByCode, findDelegatorForActionRequests, generateAcknowledgementsToPreviousActionTakers, getActionPerformedCode, getActionRequestService, getActionTakenCode, getDocumentId, getGroupIdsForPrincipal, getPrincipal, getRouteHeader, invokePostProcessor, isActionCompatibleRequest, isActionValid, isPolicySet, isPolicySet, isRunPostProcessorLogic, notifyActionTaken, notifyAfterActionTaken, notifyStatusChange, performAction, queueDocumentProcessing, saveActionTaken, saveActionTaken, saveActionTaken, saveActionTaken, setActionTakenCode, setRouteHeader, updateSearchableAttributesIfPossible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

superUserAction

protected final String superUserAction

AUTHORIZATION

public static String AUTHORIZATION
Constructor Detail

SuperUserCancelEvent

public SuperUserCancelEvent(DocumentRouteHeaderValue routeHeader,
                            PrincipalContract principal)

SuperUserCancelEvent

public SuperUserCancelEvent(DocumentRouteHeaderValue routeHeader,
                            PrincipalContract principal,
                            String annotation,
                            boolean runPostProcessor)
Method Detail

markDocument

protected void markDocument()
                     throws WorkflowException
Throws:
WorkflowException

validateActionRules

public String validateActionRules()
Description copied from class: ActionTakenEvent
Placeholder for validation rules for each action

Specified by:
validateActionRules in class ActionTakenEvent
Returns:
error message string of specific error message

validateActionRules

public String validateActionRules(List<ActionRequestValue> actionRequests)
Specified by:
validateActionRules in class ActionTakenEvent

recordAction

public void recordAction()
                  throws InvalidActionTakenException
Specified by:
recordAction in class ActionTakenEvent
Throws:
InvalidActionTakenException

processActionRequests

protected ActionTakenValue processActionRequests()
                                          throws InvalidActionTakenException
Throws:
InvalidActionTakenException

processActionTaken

protected void processActionTaken(ActionTakenValue actionTaken)
Allows subclasses to perform any post-processing after the action has been taken


getActionRequest

public ActionRequestValue getActionRequest()

setActionRequest

public void setActionRequest(ActionRequestValue actionRequest)

getSuperUserAction

public String getSuperUserAction()


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.