Class PackRequest

  • All Implemented Interfaces:
    Serializable, org.xwiki.job.Request

    @Unstable
    public class PackRequest
    extends BatchPathRequest
    Request used by PackJob to pack multiple files and folders (including the child files and sub-folders) in a single ZIP archive.
    Since:
    2.0M2
    Version:
    $Id$
    See Also:
    Serialized Form
    • Constructor Detail

      • PackRequest

        public PackRequest()
    • Method Detail

      • getOutputFileReference

        public org.xwiki.model.reference.AttachmentReference getOutputFileReference()
        Returns:
        the reference to the output ZIP file that contains the files and folders specified by BatchPathRequest.getPaths()
      • setOutputFileReference

        public void setOutputFileReference​(org.xwiki.model.reference.AttachmentReference outputFileReference)
        Sets the reference to the output ZIP file that will pack the files and folders specified by BatchPathRequest.getPaths().

        The DocumentReference part of the given AttachmentReference represents the document that is going to be used to access the output ZIP file. This means that only users with view right on this document can access the output file. The name property of the given AttachmentReference will be used as the name of the output ZIP file.

        The output file is a temporary file (deleted automatically when the server is stopped) that can be accessed as a temporary resource.

        Parameters:
        outputFileReference - the reference to the output ZIP file