public class PromoteOrDemoteActionExecuter extends AbstractActionExecuter
group, groupedConditionEvaluatorList, indexImage, nonRequiredConditionEvaluatorList, requiredConditionEvaluatorList
Constructor and Description |
---|
PromoteOrDemoteActionExecuter() |
Modifier and Type | Method and Description |
---|---|
protected void |
addMandatoryParameters(java.util.List<java.lang.String> mandatoryProperties)
A hook method for actions to add mandatory parameters to the provided list.
|
protected void |
beforeDemote(java.lang.String ticket,
java.lang.String objectId,
java.lang.String targetState) |
protected boolean |
doDemote(java.lang.String ticket,
java.lang.String objectId,
java.lang.String targetState) |
void |
executeImpl(java.lang.String ticket,
Action action)
Power promote checks the passed in objectIds and promotes their life cycle states to the default 'approved' or the value of promoteToState
|
evaluateAndExecute, execute, getActionDefinition, getDescription, getGroupedConditionEvaluatorList, getIndexImage, getNonRequiredConditionEvaluatorList, getRequiredConditionEvaluatorList, getShouldPoolAction, isGroup, setActionExecutionThreadManager, setDescription, setGroup, setGroupedConditionEvaluatorList, setIndexImage, setNonRequiredConditionEvaluatorList, setRequiredConditionEvaluatorList, setShouldPoolAction
checkParameters
protected void addMandatoryParameters(java.util.List<java.lang.String> mandatoryProperties)
AbstractActionExecuter
addMandatoryParameters
in class AbstractActionExecuter
mandatoryProperties
- a list of mandatory parameters that must be provided to the action executer when executed.public void executeImpl(java.lang.String ticket, Action action)
executeImpl
in interface ActionExecuter
executeImpl
in class AbstractActionExecuter
ticket
- a valid OC ticket.action
- the action object containing the parameters sent to the action for execution.java.lang.Runtime
- Exception is thrown if the passed in lifecycle is not a valid life cycle state or there is no life cycle attached to the documentActionExecuter.executeImpl(String, Action)
protected void beforeDemote(java.lang.String ticket, java.lang.String objectId, java.lang.String targetState)
protected boolean doDemote(java.lang.String ticket, java.lang.String objectId, java.lang.String targetState)