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
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:
-
Field Summary
FieldsFields inherited from class org.xwiki.filemanager.job.BatchPathRequest
PROPERTY_PATHSFields inherited from interface org.xwiki.job.Request
PROPERTY_CONTEXT, PROPERTY_INTERACTIVE, PROPERTY_REMOTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.xwiki.model.reference.AttachmentReferencevoidsetOutputFileReference(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, setPathsMethods 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 Details
-
PROPERTY_OUTPUT_FILE_REFERENCE
-
-
Constructor Details
-
PackRequest
public PackRequest()
-
-
Method Details
-
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
-