@Role
public interface WikiTemplateManager
Modifier and Type | Method and Description |
---|---|
WikiProvisioningJob |
applyTemplate(String wikiId,
String templateId)
Deprecated.
since 7.0M2
|
WikiProvisioningJob |
createWikiFromTemplate(String newWikiId,
String newWikiAlias,
String templateId,
String ownerId,
boolean failOnExist)
Deprecated.
since 7.0M2, use
org.xwiki.platform.wiki.creationjob.WikiCreator#createWiki(WikiCreationRequest request)
instead |
Collection<WikiDescriptor> |
getTemplates()
Get the list of all wiki templates.
|
WikiProvisioningJob |
getWikiProvisioningJob(List<String> jobId)
Deprecated.
since 7.0M2
|
boolean |
isTemplate(String wikiId) |
void |
setTemplate(String wikiId,
boolean value)
Set if the specified wiki is a template or not.
|
Collection<WikiDescriptor> getTemplates() throws WikiTemplateManagerException
WikiTemplateManagerException
- if problems occurvoid setTemplate(String wikiId, boolean value) throws WikiTemplateManagerException
wikiId
- the ID of the wiki to specifyvalue
- whether or not the wiki is a templateWikiTemplateManagerException
- if problems occurboolean isTemplate(String wikiId) throws WikiTemplateManagerException
wikiId
- The id of the wiki to testWikiTemplateManagerException
- if problems occur@Deprecated WikiProvisioningJob createWikiFromTemplate(String newWikiId, String newWikiAlias, String templateId, String ownerId, boolean failOnExist) throws WikiTemplateManagerException
org.xwiki.platform.wiki.creationjob.WikiCreator#createWiki(WikiCreationRequest request)
insteadnewWikiId
- ID of the wiki to createnewWikiAlias
- Default alias of the wiki to createtemplateId
- Id of the template to useownerId
- Id of the wiki ownerfailOnExist
- fail if the wiki id is not availableWikiTemplateManagerException
- if problems occur@Deprecated WikiProvisioningJob applyTemplate(String wikiId, String templateId) throws WikiTemplateManagerException
wikiId
- if of the wiki on which the template will be installedtemplateId
- id of the template to useWikiTemplateManagerException
- if problems occur@Deprecated WikiProvisioningJob getWikiProvisioningJob(List<String> jobId) throws WikiTemplateManagerException
jobId
- id of wiki provisioning jobWikiTemplateManagerException
- if problem occursCopyright © 2004–2021 XWiki. All rights reserved.