org.kuali.rice.kew.actions
Class DisapproveAction

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

public class DisapproveAction
extends ActionTakenEvent

Disapproves a document. This deactivates all requests on the document and sends acknowlegde requests to anybody who had already completed or approved the document.

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

Field Summary
private static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.kuali.rice.kew.actions.ActionTakenEvent
annotation, routeHeader
 
Constructor Summary
DisapproveAction(DocumentRouteHeaderValue rh, PrincipalContract principal)
           
DisapproveAction(DocumentRouteHeaderValue rh, PrincipalContract principal, String annotation)
           
 
Method Summary
private  void generateNotifications(RouteNodeInstance notificationNodeInstance)
           
 boolean isActionCompatibleRequest(List requests)
           
 void recordAction()
          Records the disapprove action.
 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, getActionPerformedCode, getActionRequestService, getActionTakenCode, getDocumentId, getGroupIdsForPrincipal, getPrincipal, getRouteHeader, 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

LOG

private static final org.apache.log4j.Logger LOG
Constructor Detail

DisapproveAction

public DisapproveAction(DocumentRouteHeaderValue rh,
                        PrincipalContract principal)
Parameters:
rh - RouteHeader for the document upon which the action is taken.
principal - User taking the action.

DisapproveAction

public DisapproveAction(DocumentRouteHeaderValue rh,
                        PrincipalContract principal,
                        String annotation)
Parameters:
rh - RouteHeader for the document upon which the action is taken.
principal - User taking the action.
annotation - User comment on the action taken
Method Detail

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

isActionCompatibleRequest

public boolean isActionCompatibleRequest(List requests)
Overrides:
isActionCompatibleRequest in class ActionTakenEvent

recordAction

public void recordAction()
                  throws InvalidActionTakenException
Records the disapprove action. - Checks to make sure the document status allows the action. - Checks that the user has not taken a previous action. - Deactivates the pending requests for this user - Records the action

Specified by:
recordAction in class ActionTakenEvent
Throws:
InvalidActionTakenException

generateNotifications

private void generateNotifications(RouteNodeInstance notificationNodeInstance)


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