org.kuali.rice.kew.actions
Class SuperUserActionRequestApproveEvent

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

public class SuperUserActionRequestApproveEvent
extends SuperUserActionTakenEvent

Super user Approves a single action request.

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

Field Summary
private  Long actionRequestId
           
private static org.apache.log4j.Logger LOG
           
private static String UNDEFINED_ACTION_TAKEN_CODE
          This is the only action which is polymorphic...the action taken code is dynamically determined based on action requested.
 
Fields inherited from class org.kuali.rice.kew.actions.SuperUserActionTakenEvent
AUTHORIZATION, superUserAction
 
Fields inherited from class org.kuali.rice.kew.actions.ActionTakenEvent
annotation, routeHeader
 
Constructor Summary
SuperUserActionRequestApproveEvent(DocumentRouteHeaderValue routeHeader, PrincipalContract principal)
           
SuperUserActionRequestApproveEvent(DocumentRouteHeaderValue routeHeader, PrincipalContract principal, Long actionRequestId, String annotation, boolean runPostProcessor)
           
 
Method Summary
protected  void markDocument()
           
protected  void processActionRequests()
           
 void recordAction()
           
 void setActionTaken()
           
 
Methods inherited from class org.kuali.rice.kew.actions.SuperUserActionTakenEvent
getActionRequest, setActionRequest, validateActionRules, validateActionRules
 
Methods inherited from class org.kuali.rice.kew.actions.ActionTakenEvent
filterActionRequestsByCode, findDelegatorForActionRequests, getActionPerformedCode, getActionRequestService, getActionTakenCode, getDocumentId, getGroupIdsForPrincipal, getPrincipal, getRouteHeader, isActionCompatibleRequest, isActionValid, isRunPostProcessorLogic, notifyActionTaken, notifyStatusChange, performAction, performDeferredAction, queueDocumentProcessing, saveActionTaken, saveActionTaken, saveActionTaken, saveActionTaken, setActionTakenCode, setQueueDocumentAfterAction, setRouteHeader, updateSearchableAttributesIfPossible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED_ACTION_TAKEN_CODE

private static final String UNDEFINED_ACTION_TAKEN_CODE
This is the only action which is polymorphic...the action taken code is dynamically determined based on action requested. All other actions' action taken code is immutable, so the field could otherwise be set to final and initialized in the constructor...however it would not be advisable to perform in the constructor the work required by this class to determine the action taken. So for now the class initializes the action taken to null (this would be the behavior anyway if the constructor did not enforce an action taken code to be supplied). An alternative would be to do away with the stored superclass field and simply delegate to a subclass getActionTakenCode implementation when necessary. It is also not clear that this would be a good choice as it may be called multiple times in arbitrary contexts.


LOG

private static final org.apache.log4j.Logger LOG

actionRequestId

private Long actionRequestId
Constructor Detail

SuperUserActionRequestApproveEvent

public SuperUserActionRequestApproveEvent(DocumentRouteHeaderValue routeHeader,
                                          PrincipalContract principal)

SuperUserActionRequestApproveEvent

public SuperUserActionRequestApproveEvent(DocumentRouteHeaderValue routeHeader,
                                          PrincipalContract principal,
                                          Long actionRequestId,
                                          String annotation,
                                          boolean runPostProcessor)
Method Detail

setActionTaken

public void setActionTaken()

processActionRequests

protected void processActionRequests()
                              throws InvalidActionTakenException
Overrides:
processActionRequests in class SuperUserActionTakenEvent
Throws:
InvalidActionTakenException

recordAction

public void recordAction()
                  throws InvalidActionTakenException
Overrides:
recordAction in class SuperUserActionTakenEvent
Throws:
InvalidActionTakenException

markDocument

protected void markDocument()
                     throws WorkflowException
Specified by:
markDocument in class SuperUserActionTakenEvent
Throws:
WorkflowException


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.