Class CreateDownloadArchiveAction

All Implemented Interfaces:
ActionExecuter, LoggingAwareExecuter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

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.
Author:
Alex Miller
  • Constructor Details

    • CreateDownloadArchiveAction

      public CreateDownloadArchiveAction()
  • Method Details

    • 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(NodeService nodeService)
    • setTransactionHelper

      public void setTransactionHelper(RetryingTransactionHelper transactionHelper)
    • setUpdateService

      public void setUpdateService(DownloadStatusUpdateService updateService)
    • setDictionaryService

      public void setDictionaryService(DictionaryService dictionaryService)
      Description copied from class: ActionExecuterAbstractBase
      Set the dictionary service
      Overrides:
      setDictionaryService in class ActionExecuterAbstractBase
      Parameters:
      dictionaryService - the dictionary service
    • executeImpl

      protected void executeImpl(Action action, NodeRef actionedUponNodeRef)
      Create an archive file containing content from the repository. Uses the ExporterService with custom exporters to create the archive files.
      Specified by:
      executeImpl in class ActionExecuterAbstractBase
      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(List<ParameterDefinition> paramList)
      Description copied from class: ParameterizedItemAbstractBase
      Adds the parameter definitions to the list
      Specified by:
      addParameterDefinitions in class ParameterizedItemAbstractBase
      Parameters:
      paramList - the parameter definitions list