Package org.alfresco.repo.thumbnail
Class CreateThumbnailActionExecuter
- java.lang.Object
-
- org.alfresco.repo.action.CommonResourceAbstractBase
-
- org.alfresco.repo.action.ParameterizedItemAbstractBase
-
- org.alfresco.repo.action.executer.ActionExecuterAbstractBase
-
- org.alfresco.repo.thumbnail.CreateThumbnailActionExecuter
-
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
@Deprecated public class CreateThumbnailActionExecuter extends ActionExecuterAbstractBase
Deprecated.The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.Create thumbnail action executer. NOTE: This action is used to facilitate the async creation of thumbnails. It is not intended for genereral useage.- Author:
- Roy Wetherall, Ph Dubois (optional thumbnail creation by mimetype and in general)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEDeprecated.Action name and parametersstatic java.lang.StringPARAM_CONTENT_PROPERTYDeprecated.static java.lang.StringPARAM_THUMBANIL_NAMEDeprecated.-
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 CreateThumbnailActionExecuter()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddParameterDefinitions(java.util.List<ParameterDefinition> paramList)Deprecated.Adds the parameter definitions to the listprotected voidexecuteImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)Deprecated.Execute the action implementationvoidsetGenerateThumbnails(boolean generateThumbnails)Deprecated.UseThumbnailServiceImpl.setThumbnailsEnabled(boolean)instead.voidsetMimetypeMaxSourceSizeKBytes(java.util.HashMap<java.lang.String,java.lang.Long> mimetypeMaxSourceSizeKBytes)Deprecated.Set the maximum size for each mimetype above which thumbnails are not created.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Deprecated.Set the node servicevoidsetThumbnailService(ThumbnailService thumbnailService)Deprecated.Set the thumbnail service-
Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, 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
-
NAME
public static final java.lang.String NAME
Deprecated.Action name and parameters- See Also:
- Constant Field Values
-
PARAM_CONTENT_PROPERTY
public static final java.lang.String PARAM_CONTENT_PROPERTY
Deprecated.- See Also:
- Constant Field Values
-
PARAM_THUMBANIL_NAME
public static final java.lang.String PARAM_THUMBANIL_NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
setThumbnailService
public void setThumbnailService(ThumbnailService thumbnailService)
Deprecated.Set the thumbnail service- Parameters:
thumbnailService- the thumbnail service
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Deprecated.Set the node service- Parameters:
nodeService- node service
-
setMimetypeMaxSourceSizeKBytes
public void setMimetypeMaxSourceSizeKBytes(java.util.HashMap<java.lang.String,java.lang.Long> mimetypeMaxSourceSizeKBytes)
Deprecated.Set the maximum size for each mimetype above which thumbnails are not created.- Parameters:
mimetypeMaxSourceSizeKBytes- map of mimetypes to max source sizes.
-
setGenerateThumbnails
public void setGenerateThumbnails(boolean generateThumbnails)
Deprecated.UseThumbnailServiceImpl.setThumbnailsEnabled(boolean)instead.Enable thumbnail creation at all regardless of mimetype.- Parameters:
generateThumbnails- afalsevalue turns off all thumbnail creation.
-
executeImpl
protected void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Deprecated.Description copied from class:ActionExecuterAbstractBaseExecute the action implementation- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
action- the actionactionedUponNodeRef- the actioned upon node- See Also:
ActionExecuterAbstractBase.executeImpl(org.alfresco.service.cmr.action.Action, org.alfresco.service.cmr.repository.NodeRef)
-
addParameterDefinitions
protected void addParameterDefinitions(java.util.List<ParameterDefinition> paramList)
Deprecated.Description copied from class:ParameterizedItemAbstractBaseAdds the parameter definitions to the list- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list- See Also:
ParameterizedItemAbstractBase.addParameterDefinitions(java.util.List)
-
-