@Role
@Unstable
public interface WikiDescriptorManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String wikiId)
Check if a wiki corresponding to an Id exists.
|
Collection<WikiDescriptor> |
getAll()
Get the list of all wikis descriptors.
|
Collection<String> |
getAllIds()
Get the list of all wikis identifiers.
|
WikiDescriptor |
getByAlias(String wikiAlias)
Get a wiki from one of its aliases.
|
WikiDescriptor |
getById(String wikiId)
Get a wiki from its Id.
|
String |
getCurrentWikiId() |
WikiDescriptor |
getMainWikiDescriptor() |
String |
getMainWikiId() |
void |
saveDescriptor(WikiDescriptor descriptor)
Save the given descriptor and all its property groups.
|
Collection<WikiDescriptor> getAll() throws WikiManagerException
WikiManagerException - if problems occurCollection<String> getAllIds() throws WikiManagerException
WikiManagerException - if problems occurWikiDescriptor getByAlias(String wikiAlias) throws WikiManagerException
wikiAlias - Alias of the wiki to retrieveWikiManagerException - if problems occurWikiDescriptor getById(String wikiId) throws WikiManagerException
wikiId - Id of the wiki to retrieve.WikiManagerException - if problems occurWikiDescriptor getMainWikiDescriptor() throws WikiManagerException
WikiManagerException - if problems occurString getMainWikiId()
String getCurrentWikiId()
boolean exists(String wikiId) throws WikiManagerException
wikiId - The id of the wiki to test.WikiManagerException - if problems occurvoid saveDescriptor(WikiDescriptor descriptor) throws WikiManagerException
descriptor - descriptor to saveWikiManagerException - if problem occursCopyright © 2004–2014 XWiki. All rights reserved.