public class SetRenditionActionExecuter extends AbstractActionExecuter
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
PARAM_ASYNC_RENDITION |
protected static java.lang.String |
PARAM_OBJECT_ID |
protected static java.lang.String |
PARAM_PARTS |
protected static java.lang.String |
PARAM_REGENERATE_RENDITION |
group, groupedConditionEvaluatorList, indexImage, nonRequiredConditionEvaluatorList, requiredConditionEvaluatorList
Constructor and Description |
---|
SetRenditionActionExecuter() |
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 java.lang.String |
doPrepareRendition(java.lang.String ticket,
Action action,
java.lang.String objectId)
Ensures the file to set as the rendition is a PDF type and sets the rendition on the object.
|
void |
executeImpl(java.lang.String ticket,
Action action)
The implementation of the action.
|
evaluateAndExecute, execute, getActionDefinition, getDescription, getGroupedConditionEvaluatorList, getIndexImage, getNonRequiredConditionEvaluatorList, getRequiredConditionEvaluatorList, getShouldPoolAction, isGroup, setActionExecutionThreadManager, setDescription, setGroup, setGroupedConditionEvaluatorList, setIndexImage, setNonRequiredConditionEvaluatorList, setRequiredConditionEvaluatorList, setShouldPoolAction
checkParameters
protected static final java.lang.String PARAM_OBJECT_ID
protected static final java.lang.String PARAM_PARTS
protected static final java.lang.String PARAM_REGENERATE_RENDITION
protected static final java.lang.String PARAM_ASYNC_RENDITION
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)
ActionExecuter
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.ActionExecuter.executeImpl(String, Action)
protected java.lang.String doPrepareRendition(java.lang.String ticket, Action action, java.lang.String objectId)
ticket
- a valid OC ticket.action
- the action sent into this action executer with the needed parameters.objectId
- the ID of the object to set the rendition on.OCRuntimeException
- if the file to set as the rendition is not a PDF type.