public class MergeVideosActionExecuter extends AbstractActionExecuter
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
PARAM_HIDE_FILE_EXTENSION
A bulk upload HPI configuration of whether or not to hide the file extensions
in the object names of newly created objects.
|
protected static java.lang.String |
PARAM_MERGE_TEMP_FILE_PATH
Path where the temp merged video resides
|
protected static java.lang.String |
PARAM_MERGED_VIDEO_NAME |
protected static java.lang.String |
PARAM_OBJECT_ID
The parent folder ID for the folder to upload this video to.
|
protected static java.lang.String |
PARAM_OBJECT_TYPE
The object type to use for this new video.
|
protected static java.lang.String |
PARAM_PARENT_FOLDER_PATH |
protected static java.lang.String |
PARAM_PARTS
The parameter representing the file that is being uploaded.
|
protected static java.lang.String |
PARAM_PROPERTIES
The properties to set on this new video.
|
group, groupedConditionEvaluatorList, indexImage, nonRequiredConditionEvaluatorList, requiredConditionEvaluatorList
Constructor and Description |
---|
MergeVideosActionExecuter() |
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.
|
static EnhancedObjectContent |
createEnhancedObjectContent(OpenContentObject oco,
java.util.Map<java.lang.String,java.lang.Object> newProps,
java.lang.String mergeVideoTempFilePath,
java.lang.Boolean showExtensions)
Creates EnhancedObjectContent based on video's oco, inherited properties, and
file extension
|
void |
executeImpl(java.lang.String ticket,
Action action)
The implementation of the action.
|
static void |
uploadVideoFile(java.lang.String ticket,
Action action,
java.lang.String parentFolderId)
Upload a video file to OC folder structure.
|
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_OBJECT_TYPE
protected static final java.lang.String PARAM_PROPERTIES
protected static final java.lang.String PARAM_MERGED_VIDEO_NAME
protected static final java.lang.String PARAM_PARENT_FOLDER_PATH
protected static final java.lang.String PARAM_HIDE_FILE_EXTENSION
protected static final java.lang.String PARAM_MERGE_TEMP_FILE_PATH
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.AbstractActionExecuter.addMandatoryParameters(List)
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)
public static void uploadVideoFile(java.lang.String ticket, Action action, java.lang.String parentFolderId)
{String}
- ticket a valid OC ticket.{Action}
- action the action object containing the parameters passed in.{String}
- parentFolderId the id of the parent folder that you would
like to add this item to.public static EnhancedObjectContent createEnhancedObjectContent(OpenContentObject oco, java.util.Map<java.lang.String,java.lang.Object> newProps, java.lang.String mergeVideoTempFilePath, java.lang.Boolean showExtensions)
{OpenContentObject}
- oco the oco for the video{Map - Object>} newProps the inherited properties for the video
file being uploaded
{Boolean}
- showExtensions a flag whether to include the file extension
on the video name or not