Class ZipSearchAction
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
fr.becpg.repo.download.AbstractDownloadArchiveAction
fr.becpg.repo.report.search.actions.ZipSearchAction
- All Implemented Interfaces:
org.alfresco.repo.action.executer.ActionExecuter,org.alfresco.repo.action.executer.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.- Version:
- $Id: $Id
- Author:
- matthieu form Alex Miller code
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AlfrescoRepository<RepositoryEntity> private org.alfresco.service.cmr.coci.CheckOutCheckInServiceprivate ExpressionServiceprivate longstatic final StringConstantNAME="zipSearchAction"static final StringConstantPARAM_TPL_NODEREF="templateNodeRef"private static final StringConstantTEMP_FILE_PREFIX="download"private static final StringConstantTEMP_FILE_SUFFIX=".zip"Fields inherited from class fr.becpg.repo.download.AbstractDownloadArchiveAction
beCPGAuditService, contentService, contentServiceHelper, CREATION_ERROR, downloadStorage, exporterService, mimetypeService, nodeService, transactionHelper, updateServiceFields 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<org.alfresco.service.cmr.action.ParameterDefinition> paramList) protected voidexecuteImpl(org.alfresco.service.cmr.action.Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef) Create an archive file containing content from the repository.voidsetAlfrescoRepository(AlfrescoRepository<RepositoryEntity> alfrescoRepository) Setter for the fieldalfrescoRepository.voidsetCheckOutCheckInService(org.alfresco.service.cmr.coci.CheckOutCheckInService checkOutCheckInService) Setter for the fieldcheckOutCheckInService.voidsetExpressionService(ExpressionService expressionService) Setter for the fieldexpressionService.voidsetMaximumContentSize(long maximumContentSize) Setter for the fieldmaximumContentSize.Methods inherited from class fr.becpg.repo.download.AbstractDownloadArchiveAction
completeDownload, completeExportSearchAudit, completeIfEmpty, createCrawlerParameters, getNodeRefsToExport, maximumContentSizeExceeded, publishStatus, runExport, runExport, setBeCPGAuditService, setContentService, setContentServiceHelper, setDownloadStorage, setExporterService, setMimetypeService, setNodeService, setTransactionHelper, setUpdateServiceMethods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionAccessRestrictions, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setActionAccessRestrictions, setApplicableTypes, setBaseNodeService, setDictionaryService, 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
-
Field Details
-
TEMP_FILE_PREFIX
ConstantTEMP_FILE_PREFIX="download"- See Also:
-
TEMP_FILE_SUFFIX
ConstantTEMP_FILE_SUFFIX=".zip"- See Also:
-
PARAM_TPL_NODEREF
ConstantPARAM_TPL_NODEREF="templateNodeRef"- See Also:
-
NAME
ConstantNAME="zipSearchAction"- See Also:
-
checkOutCheckInService
private org.alfresco.service.cmr.coci.CheckOutCheckInService checkOutCheckInService -
expressionService
-
alfrescoRepository
-
maximumContentSize
private long maximumContentSize
-
-
Constructor Details
-
ZipSearchAction
public ZipSearchAction()
-
-
Method Details
-
setAlfrescoRepository
Setter for the field
alfrescoRepository.- Parameters:
alfrescoRepository- aAlfrescoRepositoryobject
-
setExpressionService
Setter for the field
expressionService.- Parameters:
expressionService- aExpressionServiceobject
-
setCheckOutCheckInService
public void setCheckOutCheckInService(org.alfresco.service.cmr.coci.CheckOutCheckInService checkOutCheckInService) Setter for the field
checkOutCheckInService.- Parameters:
checkOutCheckInService- aCheckOutCheckInServiceobject.
-
setMaximumContentSize
public void setMaximumContentSize(long maximumContentSize) Setter for the field
maximumContentSize.- Parameters:
maximumContentSize- a long.
-
executeImpl
protected void executeImpl(org.alfresco.service.cmr.action.Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef) Create an archive file containing content from the repository. Uses thewith custom exporters to create the archive files.invalid reference
ExporterService- Specified by:
executeImplin classorg.alfresco.repo.action.executer.ActionExecuterAbstractBase
-
addParameterDefinitions
protected void addParameterDefinitions(List<org.alfresco.service.cmr.action.ParameterDefinition> paramList) - Specified by:
addParameterDefinitionsin classorg.alfresco.repo.action.ParameterizedItemAbstractBase
-