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

public class ZipSearchAction extends AbstractDownloadArchiveAction
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 Details

    • TEMP_FILE_PREFIX

      private static final String TEMP_FILE_PREFIX
      Constant TEMP_FILE_PREFIX="download"
      See Also:
    • TEMP_FILE_SUFFIX

      private static final String TEMP_FILE_SUFFIX
      Constant TEMP_FILE_SUFFIX=".zip"
      See Also:
    • PARAM_TPL_NODEREF

      public static final String PARAM_TPL_NODEREF
      Constant PARAM_TPL_NODEREF="templateNodeRef"
      See Also:
    • NAME

      public static final String NAME
      Constant NAME="zipSearchAction"
      See Also:
    • checkOutCheckInService

      private org.alfresco.service.cmr.coci.CheckOutCheckInService checkOutCheckInService
    • expressionService

      private ExpressionService expressionService
    • alfrescoRepository

      private AlfrescoRepository<RepositoryEntity> alfrescoRepository
    • maximumContentSize

      private long maximumContentSize
  • Constructor Details

    • ZipSearchAction

      public ZipSearchAction()
  • Method Details

    • setAlfrescoRepository

      public void setAlfrescoRepository(AlfrescoRepository<RepositoryEntity> alfrescoRepository)

      Setter for the field alfrescoRepository.

      Parameters:
      alfrescoRepository - a AlfrescoRepository object
    • setExpressionService

      public void setExpressionService(ExpressionService expressionService)

      Setter for the field expressionService.

      Parameters:
      expressionService - a ExpressionService object
    • setCheckOutCheckInService

      public void setCheckOutCheckInService(org.alfresco.service.cmr.coci.CheckOutCheckInService checkOutCheckInService)

      Setter for the field checkOutCheckInService.

      Parameters:
      checkOutCheckInService - a CheckOutCheckInService object.
    • 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 the
      invalid reference
      ExporterService
      with custom exporters to create the archive files.
      Specified by:
      executeImpl in class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
    • addParameterDefinitions

      protected void addParameterDefinitions(List<org.alfresco.service.cmr.action.ParameterDefinition> paramList)
      Specified by:
      addParameterDefinitions in class org.alfresco.repo.action.ParameterizedItemAbstractBase