@Role
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.
|
WikiDescriptor |
getCurrentWikiDescriptor() |
String |
getCurrentWikiId() |
default WikiReference |
getCurrentWikiReference() |
WikiDescriptor |
getMainWikiDescriptor() |
String |
getMainWikiId() |
default boolean |
isMainWiki(String wikiId) |
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()
@Unstable default WikiReference getCurrentWikiReference()
WikiDescriptor getCurrentWikiDescriptor() throws WikiManagerException
WikiManagerException
- if problems occurboolean 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 occursdefault boolean isMainWiki(String wikiId)
wikiId
- the identifier of the wikiCopyright © 2004–2021 XWiki. All rights reserved.