Class WikiCreationRequest
java.lang.Object
org.xwiki.job.AbstractRequest
org.xwiki.platform.wiki.creationjob.WikiCreationRequest
- All Implemented Interfaces:
Serializable
,org.xwiki.job.Request
public class WikiCreationRequest
extends org.xwiki.job.AbstractRequest
A wiki creation request containing all information about a wiki to create.
- Since:
- 7.0M2
- Version:
- $Id: aaed44f70989e6b6c6bf4b0d1c3ae59cbfda6c9f $
- See Also:
-
Field Summary
Fields inherited from interface org.xwiki.job.Request
PROPERTY_CONTEXT, PROPERTY_INTERACTIVE, PROPERTY_REMOTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
org.xwiki.extension.ExtensionId
boolean
boolean
void
void
setDescription
(String description) void
setExtensionId
(String extensionId, String version) Set the id of the main extension of the wiki to create.void
setExtensionId
(org.xwiki.extension.ExtensionId extensionId) Set the id of the main extension of the wiki to create.void
setFailOnExist
(boolean failOnExist) void
setMembers
(List<String> members) void
setMembershipType
(MembershipType membershipType) void
setOwnerId
(String ownerId) void
setPrettyName
(String prettyName) void
setTemplate
(boolean isTemplate) void
setTemplateId
(String templateId) Set the id of the template of the wiki to create.void
setUserScope
(UserScope userScope) void
void
setWikiSource
(WikiSource wikiSource) 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 Details
-
WikiCreationRequest
public WikiCreationRequest()Default constructor. -
WikiCreationRequest
public WikiCreationRequest(org.xwiki.job.Request request) - Parameters:
request
- the request to copy
-
-
Method Details
-
getWikiId
- Returns:
- id of the wiki to create
-
setWikiId
- Parameters:
wikiId
- id of the wiki to create
-
getPrettyName
- Returns:
- pretty name of the wiki to create
-
setPrettyName
- Parameters:
prettyName
- pretty name of the wiki to create
-
getAlias
- Returns:
- default alias of the wiki to create
-
setAlias
- Parameters:
alias
- default alias of the wiki to create
-
getDescription
- Returns:
- the description field of the wiki to create
-
setDescription
- Parameters:
description
- the description field of the wiki to create
-
isTemplate
public boolean isTemplate()- Returns:
- if the wiki to create will be a template or no
-
setTemplate
public void setTemplate(boolean isTemplate) - Parameters:
isTemplate
- if the wiki to create will be a template or no
-
getTemplateId
- Returns:
- id of the template used to fill the wiki to create
-
setTemplateId
Set the id of the template of the wiki to create. Do not forget to use setWikiSource() too.- Parameters:
templateId
- id of the template used to fill the wiki to create
-
getExtensionId
public org.xwiki.extension.ExtensionId getExtensionId()- Returns:
- id of the main extension of the wiki to create
-
setExtensionId
public void setExtensionId(org.xwiki.extension.ExtensionId extensionId) Set the id of the main extension of the wiki to create. Do not forget to use setWikiSource() too.- Parameters:
extensionId
- id of the main extension of the wiki to create
-
setExtensionId
Set the id of the main extension of the wiki to create. Do not forget to use setWikiSource() too.- Parameters:
extensionId
- id of the main extension of the wiki to createversion
- version of the extension
-
getOwnerId
- Returns:
- id of the owner of the wiki to create
-
setOwnerId
- Parameters:
ownerId
- id of the owner of the wiki to create
-
getUserScope
- Returns:
- the user scope of the wiki to create
-
setUserScope
- Parameters:
userScope
- the user scope of the wiki to create
-
getMembershipType
- Returns:
- the membership type of the wiki to create
-
setMembershipType
- Parameters:
membershipType
- the membership type of the wiki to create
-
getMembers
- Returns:
- the list of the members to add in the wiki to create
-
setMembers
- Parameters:
members
- the list of the members to add in the wiki to create
-
isFailOnExist
public boolean isFailOnExist()- Returns:
- whether or not the wiki creation should fail if the database already exists
-
setFailOnExist
public void setFailOnExist(boolean failOnExist) - Parameters:
failOnExist
- whether or not the wiki creation should fail if the database already exists
-
getWikiSource
- Returns:
- source of the wiki to create
-
setWikiSource
- Parameters:
wikiSource
- source of the wiki to create
-