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
public class CreateDownloadArchiveAction extends ActionExecuterAbstractBase
ActionExecuterfor 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
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 CreateDownloadArchiveAction()
-
Method Summary
All Methods Instance Methods Concrete 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)Create an archive file containing content from the repository.voidsetCheckOutCheckInSerivce(CheckOutCheckInService checkOutCheckInService)voidsetContentServiceHelper(ContentServiceHelper contentServiceHelper)voidsetDownloadStorage(DownloadStorage downloadStorage)voidsetExporterService(ExporterService exporterService)voidsetMaximumContentSize(long maximumContentSize)Set the maximum total size of content that can be added to a single download.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetTransactionHelper(RetryingTransactionHelper transactionHelper)voidsetUpdateService(DownloadStatusUpdateService updateService)-
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
-
-
-
-
Method Detail
-
setCheckOutCheckInSerivce
public void setCheckOutCheckInSerivce(CheckOutCheckInService checkOutCheckInService)
-
setContentServiceHelper
public void setContentServiceHelper(ContentServiceHelper contentServiceHelper)
-
setDownloadStorage
public void setDownloadStorage(DownloadStorage downloadStorage)
-
setExporterService
public void setExporterService(ExporterService exporterService)
-
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
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setTransactionHelper
public void setTransactionHelper(RetryingTransactionHelper transactionHelper)
-
setUpdateService
public void setUpdateService(DownloadStatusUpdateService updateService)
-
executeImpl
protected void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
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
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
-
-