|
||||||||||
| 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.apache.commons.logging.Log |
LOG
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(java.lang.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(java.lang.String domain)
Get wiki alias with provided domain name. |
int |
getWikiAliasIdFromDomain(java.lang.String domain)
Get wiki alias id from domain name. |
java.util.Collection<XWikiServer> |
getWikiAliasList()
|
java.lang.String |
getWikiName()
|
java.lang.String |
toString()
|
| Methods inherited from class com.xpn.xwiki.api.Document |
|---|
addAttachment, addAttachment, addAttachments, addAttachments, addObjectFromRequest, addObjectFromRequest, addObjectFromRequest, addObjectsFromRequest, addObjectsFromRequest, checkAccess, convertSyntax, createNewObject, delete, deleteDocument, deleteWithProgrammingRights, display, display, display, display, display, display, display, displayEdit, displayForm, displayForm, displayForm, displayHidden, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayRendered, displayTooltip, displayTooltip, displayView, equals, get, getActiveClass, getArchive, getAttachment, getAttachmentDiff, getAttachmentList, getAttachmentRevisionURL, getAttachmentRevisionURL, getAttachmentURL, getAttachmentURL, getAttachmentURL, getAuthor, getBacklinks, getChildren, getChildren, getClassDiff, getComment, getComments, getComments, getContent, getContentAuthor, getContentDiff, getContentUpdateDate, getCreationDate, getCreator, getCurrentMonthPageStats, getCurrentMonthRefStats, getCurrentMonthWebStats, getDate, getDefaultEditMode, getDefaultEditURL, getDefaultLanguage, getDefaultTemplate, getDisplayTitle, getDoc, getDocument, getDocumentArchive, getDocumentRevision, getEditURL, getEditURL, getEscapedContent, getExternalURL, getExternalURL, getExternalURL, getFirstObject, getFormat, getFullName, getId, getIncludedMacros, getIncludedPages, getLanguage, getLastChanges, getLinkedPages, getLinks, getLocked, getLockingDate, getLockingUser, getMetaDataDiff, getName, getObject, getObject, getObject, getObject, getObject, getObjectDiff, getObjectNumbers, getObjects, getObjects, getObjects, getParent, getParentURL, getPrefixedFullName, getPreviousDocument, getPreviousVersion, getRCSVersion, getRealLanguage, getRecentRevisions, getRecentRevisions, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContentDiff, getRenderedTitle, getRevisionInfo, getRevisions, getRevisions, getSpace, getSyntaxId, getTagList, getTags, getTagsPossibleValues, getTemplate, getTextArea, getTitle, getTOC, getTranslatedContent, getTranslatedContent, getTranslatedDocument, getTranslatedDocument, getTranslationList, getURL, getURL, getURL, getValidationScript, getValue, getValue, getVersion, getVersionHashCode, getWeb, getWiki, getXMLContent, getXMLDiff, getxWikiClass, getxWikiClasses, getxWikiObjects, hasAccessLevel, hasAccessLevel, insertText, isAdvancedContent, isCreator, isCurrentLocalUserPage, isCurrentUserCreator, isCurrentUserPage, isFromCache, isMinorEdit, isMostRecent, isNew, isProgrammaticContent, newObject, removeObject, removeObjects, rename, rename, renameDocument, renameDocument, save, save, save, saveDocument, saveWithProgrammingRights, saveWithProgrammingRights, saveWithProgrammingRights, set, set, setComment, setContent, setCustomClass, setDefaultTemplate, setMinorEdit, setParent, setSyntaxId, setTitle, setValidationScript, toXML, toXMLDocument, updateObjectFromRequest, updateObjectFromRequest, updateObjectsFromRequest, updateObjectsFromRequest, use, use, use, validate, validate |
| Methods inherited from class com.xpn.xwiki.api.Api |
|---|
checkProgrammingRights, convert, convert, getXWikiContext, hasAdminRights, hasProgrammingRights |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log LOG
| 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 java.lang.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(java.lang.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 java.util.Collection<XWikiServer> getWikiAliasList()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - error when getting aliases.
public XWikiServer getWikiAlias(java.lang.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(java.lang.String domain)
domain - the domain name of the wiki alias.
public java.lang.String toString()
toString in class com.xpn.xwiki.api.DocumentObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||