public class CreateDownloadArchiveAction extends ActionExecuterAbstractBase
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.actionDefinition, applicableTypes, publicAction
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
name
PARAM_RESULT
Constructor and Description |
---|
CreateDownloadArchiveAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
addParameterDefinitions(List<ParameterDefinition> paramList)
Adds the parameter definitions to the list
|
protected void |
executeImpl(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Create an archive file containing content from the repository.
|
void |
setCheckOutCheckInSerivce(CheckOutCheckInService checkOutCheckInService) |
void |
setContentServiceHelper(ContentServiceHelper contentServiceHelper) |
void |
setDownloadStorage(DownloadStorage downloadStorage) |
void |
setExporterService(ExporterService exporterService) |
void |
setMaximumContentSize(long maximumContentSize)
Set the maximum total size of content that can be added to a single
download.
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setTransactionHelper(RetryingTransactionHelper transactionHelper) |
void |
setUpdateService(DownloadStatusUpdateService updateService) |
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
setBeanName
public void setCheckOutCheckInSerivce(CheckOutCheckInService checkOutCheckInService)
public void setContentServiceHelper(ContentServiceHelper contentServiceHelper)
public void setDownloadStorage(DownloadStorage downloadStorage)
public void setExporterService(ExporterService exporterService)
public void setMaximumContentSize(long maximumContentSize)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setTransactionHelper(RetryingTransactionHelper transactionHelper)
public void setUpdateService(DownloadStatusUpdateService updateService)
protected void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ExporterService
with custom exporters to create the
archive files.executeImpl
in class ActionExecuterAbstractBase
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 actionprotected void addParameterDefinitions(List<ParameterDefinition> paramList)
ParameterizedItemAbstractBase
addParameterDefinitions
in class ParameterizedItemAbstractBase
paramList
- the parameter definitions listCopyright © 2005–2017 Alfresco Software. All rights reserved.