Package com.xwiki.confluencepro
Class ConfluenceMigrationJobRequest
- java.lang.Object
-
- org.xwiki.job.AbstractRequest
-
- com.xwiki.confluencepro.ConfluenceMigrationJobRequest
-
- All Implemented Interfaces:
Serializable,org.xwiki.job.Request
public class ConfluenceMigrationJobRequest extends org.xwiki.job.AbstractRequestThe request used to configure the confluence migration job.- Since:
- 1.0
- Version:
- $Id$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfluenceMigrationJobRequest(InputStream confluencePackage, org.xwiki.model.reference.DocumentReference statusDocumentReference, Map<String,Object> inputProperties, Map<String,Object> outputProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetConfluencePackage()Map<String,Object>getInputProperties()static List<String>getJobId(org.xwiki.model.reference.DocumentReference statusDocumentReference)Map<String,Object>getOutputProperties()org.xwiki.model.reference.DocumentReferencegetStatusDocumentReference()-
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
-
-
-
-
Constructor Detail
-
ConfluenceMigrationJobRequest
public ConfluenceMigrationJobRequest(InputStream confluencePackage, org.xwiki.model.reference.DocumentReference statusDocumentReference, Map<String,Object> inputProperties, Map<String,Object> outputProperties)
- Parameters:
confluencePackage- the input stream of the confluence zip package.statusDocumentReference- seegetStatusDocumentReference().inputProperties- seegetInputProperties().outputProperties- seegetOutputProperties().
-
-
Method Detail
-
getJobId
public static List<String> getJobId(org.xwiki.model.reference.DocumentReference statusDocumentReference)
- Parameters:
statusDocumentReference- the migration document for which to get the job id- Returns:
- the job id of a migration document
-
getConfluencePackage
public InputStream getConfluencePackage()
- Returns:
- the InputStream of the confluence package that will be used for the migration.
-
getStatusDocumentReference
public org.xwiki.model.reference.DocumentReference getStatusDocumentReference()
- Returns:
- the reference to the document where this job was started.
-
getInputProperties
public Map<String,Object> getInputProperties()
- Returns:
- the input properties for the confluence filter stream.
-
-