|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.api.Api
com.xpn.xwiki.api.Document
com.xpn.xwiki.plugin.wikimanager.doc.Wiki
public class Wiki
This class manage wiki document descriptor.
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOGGER
The logging tool. |
| Fields inherited from class com.xpn.xwiki.api.Document |
|---|
cloned, currentObj, doc |
| Fields inherited from class com.xpn.xwiki.api.Api |
|---|
context |
| Constructor Summary | |
|---|---|
Wiki(com.xpn.xwiki.doc.XWikiDocument xdoc,
com.xpn.xwiki.XWikiContext context)
Create instance of wiki descriptor. |
|
| Method Summary | |
|---|---|
boolean |
containsWikiAlias(String domain)
Check if a wiki alias with provided name exists. |
int |
countWikiAliases()
|
void |
delete(boolean deleteDatabase)
Delete the wiki. |
XWikiServer |
getFirstWikiAlias()
|
XWikiServer |
getWikiAlias(int id)
Get wiki alias with provided id. |
XWikiServer |
getWikiAlias(String domain)
Get wiki alias with provided domain name. |
int |
getWikiAliasIdFromDomain(String domain)
Get wiki alias id from domain name. |
Collection<XWikiServer> |
getWikiAliasList()
|
String |
getWikiName()
|
String |
toString()
|
| Methods inherited from class com.xpn.xwiki.api.Api |
|---|
convert, convert, getXWikiContext, hasAdminRights, hasProgrammingRights, hasWikiAdminRights |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOGGER
| Constructor Detail |
|---|
public Wiki(com.xpn.xwiki.doc.XWikiDocument xdoc,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
xdoc - the encapsulated XWikiDocument.context - the XWiki context.
com.xpn.xwiki.XWikiException - error when creating Document.| Method Detail |
|---|
public String getWikiName()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - error when getting XWikiServerClass instance.
public void delete(boolean deleteDatabase)
throws com.xpn.xwiki.XWikiException
deleteDatabase - if true wiki's database is also removed.
com.xpn.xwiki.XWikiException - error deleting the wiki.
public int countWikiAliases()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - when getting the number of wiki aliases.
public int getWikiAliasIdFromDomain(String domain)
throws com.xpn.xwiki.XWikiException
domain - the wiki alias domain name.
com.xpn.xwiki.XWikiException - error when getting wiki alias id from domain name.
public Collection<XWikiServer> getWikiAliasList()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - error when getting aliases.
public XWikiServer getWikiAlias(String domain)
throws com.xpn.xwiki.XWikiException
domain - the domain name of the wiki alias.
com.xpn.xwiki.XWikiException - error when :
XWikiServerClass instance
public XWikiServer getWikiAlias(int id)
throws com.xpn.xwiki.XWikiException
id - the id of the wiki alias.
com.xpn.xwiki.XWikiException - error when creating wiki alias object.
public XWikiServer getFirstWikiAlias()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - error when creating wiki alias object.public boolean containsWikiAlias(String domain)
domain - the domain name of the wiki alias.
public String toString()
toString in class DocumentObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||