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 public class TransformActionExecuter extends ActionExecuterAbstractBase
Deprecated.Transfor action executer- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERR_OVERWRITEDeprecated.static java.lang.StringNAMEDeprecated.protected TransformationOptionsoptionsDeprecated.static java.lang.StringPARAM_ASSOC_QNAMEDeprecated.static java.lang.StringPARAM_ASSOC_TYPE_QNAMEDeprecated.static java.lang.StringPARAM_DESTINATION_FOLDERDeprecated.static java.lang.StringPARAM_MIME_TYPEDeprecated.static java.lang.StringPARAM_OVERWRITE_COPYDeprecated.-
Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionDefinition, applicableTypes, publicAction
-
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
-
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
-
Fields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT
-
-
Constructor Summary
Constructors Constructor Description TransformActionExecuter()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddParameterDefinitions(java.util.List<ParameterDefinition> paramList)Deprecated.Add parameter definitionsprotected voiddoTransform(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.ContentReader contentReader, org.alfresco.service.cmr.repository.NodeRef destinationNodeRef, org.alfresco.service.cmr.repository.ContentWriter contentWriter)Deprecated.Executed in a new transaction so that failures don't cause the entire transaction to rollback.protected voidexecuteImpl(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)Deprecated.Execute the action implementationprotected TransformationOptionsnewTransformationOptions(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)Deprecated.booleanonLogException(org.apache.commons.logging.Log logger, java.lang.Throwable t, java.lang.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 servicevoidsetCopyService(CopyService copyService)Deprecated.Set the copy servicevoidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)Deprecated.Set the dictionary servicevoidsetMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)Deprecated.Set the mime type servicevoidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Deprecated.Set the node servicestatic java.lang.StringtransformName(org.alfresco.service.cmr.repository.MimetypeService mimetypeService, java.lang.String original, java.lang.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, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
-
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
-
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
-
-
-
Field Detail
-
ERR_OVERWRITE
public static final java.lang.String ERR_OVERWRITE
Deprecated.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Deprecated.- See Also:
- Constant Field Values
-
PARAM_MIME_TYPE
public static final java.lang.String PARAM_MIME_TYPE
Deprecated.- See Also:
- Constant Field Values
-
PARAM_DESTINATION_FOLDER
public static final java.lang.String PARAM_DESTINATION_FOLDER
Deprecated.- See Also:
- Constant Field Values
-
PARAM_ASSOC_TYPE_QNAME
public static final java.lang.String PARAM_ASSOC_TYPE_QNAME
Deprecated.- See Also:
- Constant Field Values
-
PARAM_ASSOC_QNAME
public static final java.lang.String PARAM_ASSOC_QNAME
Deprecated.- See Also:
- Constant Field Values
-
PARAM_OVERWRITE_COPY
public static final java.lang.String PARAM_OVERWRITE_COPY
Deprecated.- See Also:
- Constant Field Values
-
options
@Deprecated protected TransformationOptions options
Deprecated.Properties (needed to avoid changing method signatures)
-
-
Method Detail
-
setMimetypeService
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Deprecated.Set the mime type service
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Deprecated.Set the node service
-
setCheckOutCheckInService
public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService)
Deprecated.Set the service to determine check-in and check-out status
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Deprecated.Set the dictionary service- Overrides:
setDictionaryServicein classActionExecuterAbstractBase- Parameters:
dictionaryService- the dictionary service
-
setContentService
public void setContentService(ContentService contentService)
Deprecated.Set the content service
-
setCopyService
public void setCopyService(CopyService copyService)
Deprecated.Set the copy service
-
addParameterDefinitions
protected void addParameterDefinitions(java.util.List<ParameterDefinition> paramList)
Deprecated.Add parameter definitions- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list
-
executeImpl
protected void executeImpl(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Deprecated.Description copied from class:ActionExecuterAbstractBaseExecute the action implementation- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
ruleAction- the actionactionedUponNodeRef- the actioned upon node- See Also:
ActionExecuterAbstractBase.executeImpl(Action, org.alfresco.service.cmr.repository.NodeRef)
-
newTransformationOptions
protected TransformationOptions newTransformationOptions(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
Deprecated.
-
doTransform
protected void doTransform(Action ruleAction, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.ContentReader contentReader, org.alfresco.service.cmr.repository.NodeRef destinationNodeRef, org.alfresco.service.cmr.repository.ContentWriter contentWriter)
Deprecated.Executed in a new transaction so that failures don't cause the entire transaction to rollback.
-
transformName
public static java.lang.String transformName(org.alfresco.service.cmr.repository.MimetypeService mimetypeService, java.lang.String original, java.lang.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
public boolean onLogException(org.apache.commons.logging.Log logger, java.lang.Throwable t, java.lang.String message)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
-
-