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 Detail

      • CreateDownloadArchiveAction

        public CreateDownloadArchiveAction()
    • Method Detail

      • 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​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • executeImpl

        protected void executeImpl​(Action action,
                                   org.alfresco.service.cmr.repository.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