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
public class CreateThumbnailActionExecuter extends ActionExecuterAbstractBase
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.StringNAMEAction name and parametersstatic java.lang.StringPARAM_CONTENT_PROPERTYstatic java.lang.StringPARAM_THUMBANIL_NAME-
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()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddParameterDefinitions(java.util.List<ParameterDefinition> paramList)Adds the parameter definitions to the listprotected voidexecuteImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)Execute the action implementationvoidsetGenerateThumbnails(boolean generateThumbnails)Deprecated.UseThumbnailServiceImpl.setThumbnailsEnabled(boolean)instead.voidsetMimetypeMaxSourceSizeKBytes(java.util.HashMap<java.lang.String,java.lang.Long> mimetypeMaxSourceSizeKBytes)Set the maximum size for each mimetype above which thumbnails are not created.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Set the node servicevoidsetThumbnailService(ThumbnailService thumbnailService)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
Action name and parameters- See Also:
- Constant Field Values
-
PARAM_CONTENT_PROPERTY
public static final java.lang.String PARAM_CONTENT_PROPERTY
- See Also:
- Constant Field Values
-
PARAM_THUMBANIL_NAME
public static final java.lang.String PARAM_THUMBANIL_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setThumbnailService
public void setThumbnailService(ThumbnailService thumbnailService)
Set the thumbnail service- Parameters:
thumbnailService- the thumbnail service
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service- Parameters:
nodeService- node service
-
setMimetypeMaxSourceSizeKBytes
public void setMimetypeMaxSourceSizeKBytes(java.util.HashMap<java.lang.String,java.lang.Long> mimetypeMaxSourceSizeKBytes)
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)
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)
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)
-
-