Package org.xwiki.filemanager.job
Class PackRequest
- java.lang.Object
-
- org.xwiki.job.AbstractRequest
-
- org.xwiki.filemanager.job.BatchPathRequest
-
- org.xwiki.filemanager.job.PackRequest
-
- All Implemented Interfaces:
Serializable,org.xwiki.job.Request
@Unstable public class PackRequest extends BatchPathRequest
Request used byPackJobto 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
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_OUTPUT_FILE_REFERENCE-
Fields inherited from class org.xwiki.filemanager.job.BatchPathRequest
PROPERTY_PATHS
-
-
Constructor Summary
Constructors Constructor Description PackRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xwiki.model.reference.AttachmentReferencegetOutputFileReference()voidsetOutputFileReference(org.xwiki.model.reference.AttachmentReference outputFileReference)Sets the reference to the output ZIP file that will pack the files and folders specified byBatchPathRequest.getPaths().-
Methods inherited from class org.xwiki.filemanager.job.BatchPathRequest
getPaths, setPaths
-
Methods inherited from class org.xwiki.job.AbstractRequest
containsProperty, equals, getContext, getId, getProperties, getProperty, getProperty, getPropertyNames, hashCode, isInteractive, isRemote, isStatusLogIsolated, isStatusSerialized, isVerbose, removeProperty, setContext, setId, setId, setId, setInteractive, setProperty, setRemote, setStatusLogIsolated, setStatusSerialized, setVerbose
-
-
-
-
Field Detail
-
PROPERTY_OUTPUT_FILE_REFERENCE
public static final String PROPERTY_OUTPUT_FILE_REFERENCE
- See Also:
getOutputFileReference(), Constant Field Values
-
-
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 byBatchPathRequest.getPaths().The
DocumentReferencepart of the givenAttachmentReferencerepresents 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. Thenameproperty of the givenAttachmentReferencewill 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
-
-