Class ZipSearchAction
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
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
public class ZipSearchAction
extends org.alfresco.repo.action.executer.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.- Version:
- $Id: $Id
- Author:
- matthieu form Alex Miller code
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AlfrescoRepository<RepositoryEntity>private org.alfresco.service.cmr.coci.CheckOutCheckInServiceprivate org.alfresco.service.cmr.repository.ContentServiceprivate org.alfresco.repo.download.ContentServiceHelperprivate static final Stringprivate org.alfresco.repo.download.DownloadStorageprivate org.alfresco.service.cmr.view.ExporterServiceprivate ExpressionServiceprivate static final org.slf4j.Loggerprivate static final org.apache.commons.logging.Logprivate longstatic final StringConstantNAME="zipSearchAction"private org.alfresco.service.cmr.repository.NodeServicestatic final StringConstantPARAM_TPL_NODEREF="templateNodeRef"private static final Stringprivate static final Stringprivate org.alfresco.repo.transaction.RetryingTransactionHelperprivate org.alfresco.repo.download.DownloadStatusUpdateServiceFields 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) private voidarchiveCreationComplete(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, File tempFile, ZipSearchDownloadExporter handler) private voiddownloadCancelled(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, ZipSearchDownloadExporter handler) 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.private voidmaximumContentSizeExceeded(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, long size, long fileCount) voidsetAlfrescoRepository(AlfrescoRepository<RepositoryEntity> alfrescoRepository) Setter for the fieldalfrescoRepository.voidsetCheckOutCheckInService(org.alfresco.service.cmr.coci.CheckOutCheckInService checkOutCheckInService) Setter for the fieldcheckOutCheckInService.voidsetContentService(org.alfresco.service.cmr.repository.ContentService contentService) Setter for the fieldcontentService.voidsetContentServiceHelper(org.alfresco.repo.download.ContentServiceHelper contentServiceHelper) Setter for the fieldcontentServiceHelper.voidsetDownloadStorage(org.alfresco.repo.download.DownloadStorage downloadStorage) Setter for the fielddownloadStorage.voidsetExporterService(org.alfresco.service.cmr.view.ExporterService exporterService) Setter for the fieldexporterService.voidsetExpressionService(ExpressionService expressionService) Setter for the fieldexpressionService.voidsetMaximumContentSize(long maximumContentSize) Setter for the fieldmaximumContentSize.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the fieldnodeService.voidsetTransactionHelper(org.alfresco.repo.transaction.RetryingTransactionHelper transactionHelper) Setter for the fieldtransactionHelper.voidsetUpdateService(org.alfresco.repo.download.DownloadStatusUpdateService updateService) Setter for the fieldupdateService.Methods 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
-
log
private static final org.slf4j.Logger log -
CREATION_ERROR
- See Also:
-
TEMP_FILE_PREFIX
- See Also:
-
TEMP_FILE_SUFFIX
- See Also:
-
PARAM_TPL_NODEREF
ConstantPARAM_TPL_NODEREF="templateNodeRef"- See Also:
-
logger
private static final org.apache.commons.logging.Log logger -
NAME
ConstantNAME="zipSearchAction"- See Also:
-
checkOutCheckInService
private org.alfresco.service.cmr.coci.CheckOutCheckInService checkOutCheckInService -
contentServiceHelper
private org.alfresco.repo.download.ContentServiceHelper contentServiceHelper -
downloadStorage
private org.alfresco.repo.download.DownloadStorage downloadStorage -
exporterService
private org.alfresco.service.cmr.view.ExporterService exporterService -
nodeService
private org.alfresco.service.cmr.repository.NodeService nodeService -
transactionHelper
private org.alfresco.repo.transaction.RetryingTransactionHelper transactionHelper -
updateService
private org.alfresco.repo.download.DownloadStatusUpdateService updateService -
contentService
private org.alfresco.service.cmr.repository.ContentService contentService -
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.
-
setContentServiceHelper
public void setContentServiceHelper(org.alfresco.repo.download.ContentServiceHelper contentServiceHelper) Setter for the field
contentServiceHelper.- Parameters:
contentServiceHelper- aContentServiceHelperobject.
-
setDownloadStorage
public void setDownloadStorage(org.alfresco.repo.download.DownloadStorage downloadStorage) Setter for the field
downloadStorage.- Parameters:
downloadStorage- aDownloadStorageobject.
-
setExporterService
public void setExporterService(org.alfresco.service.cmr.view.ExporterService exporterService) Setter for the field
exporterService.- Parameters:
exporterService- aExporterServiceobject.
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the field
nodeService.- Parameters:
nodeService- aNodeServiceobject.
-
setTransactionHelper
public void setTransactionHelper(org.alfresco.repo.transaction.RetryingTransactionHelper transactionHelper) Setter for the field
transactionHelper.- Parameters:
transactionHelper- aRetryingTransactionHelperobject.
-
setUpdateService
public void setUpdateService(org.alfresco.repo.download.DownloadStatusUpdateService updateService) Setter for the field
updateService.- Parameters:
updateService- aDownloadStatusUpdateServiceobject.
-
setContentService
public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService) Setter for the field
contentService.- Parameters:
contentService- aContentServiceobject.
-
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 theExporterServicewith custom exporters to create the archive files.- 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
-
maximumContentSizeExceeded
private void maximumContentSizeExceeded(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, long size, long fileCount) -
archiveCreationComplete
private void archiveCreationComplete(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, File tempFile, ZipSearchDownloadExporter handler) -
downloadCancelled
private void downloadCancelled(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, ZipSearchDownloadExporter handler)
-