Class TransformActionExecuter
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.action.executer.TransformActionExecuter
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
ImageTransformActionExecuter
Deprecated.
Transfor action executer
- Author:
- Roy Wetherall
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.protected TransformationOptionsDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionAccessRestrictions, actionDefinition, applicableTypes, publicActionFields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServiceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
nameFields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParameterDefinitions(List<ParameterDefinition> paramList) Deprecated.Add parameter definitionsprotected voiddoTransform(Action ruleAction, NodeRef sourceNodeRef, ContentReader contentReader, NodeRef destinationNodeRef, ContentWriter contentWriter) Deprecated.Executed in a new transaction so that failures don't cause the entire transaction to rollback.protected voidexecuteImpl(Action ruleAction, NodeRef actionedUponNodeRef) Deprecated.Execute the action implementationprotected TransformationOptionsnewTransformationOptions(Action ruleAction, NodeRef sourceNodeRef) Deprecated.booleanonLogException(org.apache.commons.logging.Log logger, Throwable t, String message) Deprecated.Optional logging of errors callback for the action executer for the cases when the error might be ignored or shown in a different manner for the actionvoidsetCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService) Deprecated.Set the service to determine check-in and check-out statusvoidsetContentService(ContentService contentService) Deprecated.Set the content servicevoidsetConverter(TransformationOptionsConverter converter) Deprecated.voidsetCopyService(CopyService copyService) Deprecated.Set the copy servicevoidsetDictionaryService(DictionaryService dictionaryService) Deprecated.Set the dictionary servicevoidsetMimetypeService(MimetypeService mimetypeService) Deprecated.Set the mime type servicevoidsetNodeService(NodeService nodeService) Deprecated.Set the node servicevoidsetSynchronousTransformClient(SynchronousTransformClient synchronousTransformClient) Deprecated.static StringtransformName(MimetypeService mimetypeService, String original, String newMimetype, boolean alwaysAdd) Deprecated.Transform a name from original extension to new extension, if appropriate.Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionAccessRestrictions, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, setActionAccessRestrictions, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus, verifyActionAccessRestrictionsMethods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringMethods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.repo.action.executer.ActionExecuter
isExecuteAsynchronously
-
Field Details
-
ERR_OVERWRITE
Deprecated.- See Also:
-
TRANSFORMER_NOT_EXISTS_MESSAGE_PATTERN
Deprecated.- See Also:
-
NAME
Deprecated.- See Also:
-
PARAM_MIME_TYPE
Deprecated.- See Also:
-
PARAM_DESTINATION_FOLDER
Deprecated.- See Also:
-
PARAM_ASSOC_TYPE_QNAME
Deprecated.- See Also:
-
PARAM_ASSOC_QNAME
Deprecated.- See Also:
-
PARAM_OVERWRITE_COPY
Deprecated.- See Also:
-
options
Deprecated.Properties (needed to avoid changing method signatures)
-
-
Constructor Details
-
TransformActionExecuter
public TransformActionExecuter()Deprecated.
-
-
Method Details
-
setMimetypeService
Deprecated.Set the mime type service -
setNodeService
Deprecated.Set the node service -
setCheckOutCheckInService
Deprecated.Set the service to determine check-in and check-out status -
setDictionaryService
Deprecated.Set the dictionary service- Overrides:
setDictionaryServicein classActionExecuterAbstractBase- Parameters:
dictionaryService- the dictionary service
-
setContentService
Deprecated.Set the content service -
setCopyService
Deprecated.Set the copy service -
setSynchronousTransformClient
Deprecated. -
setConverter
Deprecated. -
addParameterDefinitions
Deprecated.Add parameter definitions- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list
-
executeImpl
Deprecated.Description copied from class:ActionExecuterAbstractBaseExecute the action implementation- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
ruleAction- the actionactionedUponNodeRef- the actioned upon node- See Also:
-
newTransformationOptions
Deprecated. -
doTransform
protected void doTransform(Action ruleAction, NodeRef sourceNodeRef, ContentReader contentReader, NodeRef destinationNodeRef, ContentWriter contentWriter) Deprecated.Executed in a new transaction so that failures don't cause the entire transaction to rollback. -
transformName
public static String transformName(MimetypeService mimetypeService, String original, String newMimetype, boolean alwaysAdd) Deprecated.Transform a name from original extension to new extension, if appropriate. If the original name seems to end with a reasonable file extension, then the name will be transformed such that the old extension is replaced with the new. Otherwise the name will be returned unaltered. The original name will be deemed to have a reasonable extension if there are one or more characters after the (required) final dot, none of which are spaces.- Parameters:
mimetypeService- the mimetype serviceoriginal- the original namenewMimetype- the new mime typealwaysAdd- if the name has no extension, then add the new one- Returns:
- name with new extension as appropriate for the mimetype
-
onLogException
Deprecated.Description copied from interface:LoggingAwareExecuterOptional logging of errors callback for the action executer for the cases when the error might be ignored or shown in a different manner for the action- Specified by:
onLogExceptionin interfaceLoggingAwareExecuter- Overrides:
onLogExceptionin classActionExecuterAbstractBase- Parameters:
logger- the loggert- the exception thrownmessage- the proposed message that will be logged- Returns:
- true if it was handled, false for default handling
-