Package org.alfresco.repo.download
Class CreateDownloadArchiveAction
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.download.CreateDownloadArchiveAction
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
ActionExecuter for creating an archive (ie. zip) file containing content from the repository.
The maximum total size of the content which can be downloaded is controlled by the maximumContentSie property. -1 indicates no limit.- Author:
- Alex Miller
-
Field Summary
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) Adds the parameter definitions to the listprotected voidexecuteImpl(Action action, NodeRef actionedUponNodeRef) Create an archive file containing content from the repository.voidsetCheckOutCheckInSerivce(CheckOutCheckInService checkOutCheckInService) voidsetContentServiceHelper(ContentServiceHelper contentServiceHelper) voidsetDictionaryService(DictionaryService dictionaryService) Set the dictionary servicevoidsetDownloadStorage(DownloadStorage downloadStorage) voidsetExporterService(ExporterService exporterService) voidsetMaximumContentSize(long maximumContentSize) Set the maximum total size of content that can be added to a single download. -1 indicates no limit.voidsetNodeService(NodeService nodeService) voidsetTransactionHelper(RetryingTransactionHelper transactionHelper) voidsetUpdateService(DownloadStatusUpdateService updateService) Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionAccessRestrictions, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, 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
-
Constructor Details
-
CreateDownloadArchiveAction
public CreateDownloadArchiveAction()
-
-
Method Details
-
setCheckOutCheckInSerivce
-
setContentServiceHelper
-
setDownloadStorage
-
setExporterService
-
setMaximumContentSize
public void setMaximumContentSize(long maximumContentSize) Set the maximum total size of content that can be added to a single download. -1 indicates no limit. -
setNodeService
-
setTransactionHelper
-
setUpdateService
-
setDictionaryService
Description copied from class:ActionExecuterAbstractBaseSet the dictionary service- Overrides:
setDictionaryServicein classActionExecuterAbstractBase- Parameters:
dictionaryService- the dictionary service
-
executeImpl
Create an archive file containing content from the repository. Uses theExporterServicewith custom exporters to create the archive files.- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
actionedUponNodeRef- Download node containing information required to create the archive file, and which will eventually have its content updated with the archive file.action- the action
-
addParameterDefinitions
Description copied from class:ParameterizedItemAbstractBaseAdds the parameter definitions to the list- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list
-