public class AcknowledgeAction extends ActionTakenEvent
AcknowledegeAction records the users acknowledgement of a document
The routeheader is first checked to make sure the action is valid for the document. Next the user is checked to make sure he/she has not taken a previous action on this document at the actions responsibility or below. The action is recorded. Any requests related to this user are deactivated.annotation, DEFAULT_ANNOTATION, DEFAULT_QUEUE_DOCUMENT_AFTER_ACTION, DEFAULT_RUN_POSTPROCESSOR_LOGIC, routeHeader
Constructor and Description |
---|
AcknowledgeAction(DocumentRouteHeaderValue rh,
PrincipalContract principal) |
AcknowledgeAction(DocumentRouteHeaderValue rh,
PrincipalContract principal,
String annotation) |
Modifier and Type | Method and Description |
---|---|
boolean |
isActionCompatibleRequest(List requests) |
void |
recordAction()
Records the Acknowldege action.
|
String |
validateActionRules()
Method to check if the Action is currently valid on the given document
|
String |
validateActionRules(List<ActionRequestValue> actionRequests) |
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
public AcknowledgeAction(DocumentRouteHeaderValue rh, PrincipalContract principal)
rh
- RouteHeader for the document upon which the action is taken.principal
- User taking the action.public AcknowledgeAction(DocumentRouteHeaderValue rh, PrincipalContract principal, String annotation)
rh
- RouteHeader for the document upon which the action is taken.principal
- User taking the action.annotation
- User comment on the action takenpublic String validateActionRules()
validateActionRules
in class ActionTakenEvent
public String validateActionRules(List<ActionRequestValue> actionRequests)
validateActionRules
in class ActionTakenEvent
public boolean isActionCompatibleRequest(List requests)
isActionCompatibleRequest
in class ActionTakenEvent
public void recordAction() throws InvalidActionTakenException
recordAction
in class ActionTakenEvent
InvalidActionTakenException
ResourceUnavailableException
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.