|
||||||||||
| 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.applicationmanager.core.doc.objects.classes.DefaultXObjectDocument
com.xpn.xwiki.plugin.wikimanager.doc.XWikiServer
public class XWikiServer
This class manage an XWiki document containing XWiki.XWikiServerClass object. It add some specifics methods, getters and setters for this type of object and fields.
| Field Summary |
|---|
| Fields inherited from class com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.DefaultXObjectDocument |
|---|
isNew, objectId, sclass |
| Fields inherited from class com.xpn.xwiki.api.Document |
|---|
cloned, currentObj, doc |
| Fields inherited from class com.xpn.xwiki.api.Api |
|---|
context |
| Fields inherited from interface com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.XObjectDocument |
|---|
SPACE_DOC_SEPARATOR, WIKI_SPACE_SEPARATOR |
| Constructor Summary | |
|---|---|
XWikiServer(com.xpn.xwiki.doc.XWikiDocument xdoc,
int objectId,
com.xpn.xwiki.XWikiContext context)
Create new XWikiServer managing provided XWikiDocument. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
|
java.lang.String |
getHomePage()
|
java.net.URL |
getHomePageUrl()
|
java.lang.String |
getOwner()
|
boolean |
getSecure()
|
java.lang.String |
getServer()
|
java.net.URL |
getServerUrl()
|
java.net.URL |
getServerUrl(java.lang.String spaceName,
java.lang.String pageName)
Get the complete URL of the provided wiki page. |
java.lang.String |
getState()
|
java.lang.String |
getVisibility()
|
java.lang.String |
getWikiLanguage()
|
java.lang.String |
getWikiName()
|
java.lang.String |
getWikiPrettyName()
|
java.net.URL |
getWikiUrl(java.lang.String pageFullName)
Get the complete URL of the provided wiki page. |
boolean |
isWikiTemplate()
|
void |
setDescription(java.lang.String description)
Modify the description of the wiki. |
void |
setHomePage(java.lang.String homePage)
Modify the home page of the wiki. |
void |
setIsWikiTemplate(boolean isWikiTemplate)
|
void |
setOwner(java.lang.String owner)
Modify the owner of the wiki. |
void |
setSecure(boolean secure)
Modify the secure mode of the wiki. |
void |
setServer(java.lang.String server)
Modify the domain name of the wiki. |
void |
setState(java.lang.String state)
Modify the state of the wiki. |
void |
setVisibility(java.lang.String visibility)
Modify the visibility of the wiki. |
void |
setWikiLanguage(java.lang.String language)
Modify the language of the wiki. |
void |
setWikiName(java.lang.String wikiName)
Modify the name of the application. |
void |
setWikiPrettyName(java.lang.String wikiPrettyName)
Modify the pretty name of the application. |
java.lang.String |
toString()
|
| Methods inherited from class com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.DefaultXObjectDocument |
|---|
delete, getBaseObject, getBooleanValue, getDocumentApi, getIntValue, getLargeStringValue, getListValue, getObjectApi, getObjectId, getStringListValue, getStringValue, getXClassManager, isNew, mergeObject, reload, saveDocument, setBooleanValue, setFullName, setIntValue, setLargeStringValue, setListValue, setStringListValue, setStringValue |
| Methods inherited from class com.xpn.xwiki.api.Document |
|---|
addAttachment, addAttachment, addAttachments, addAttachments, addObjectFromRequest, addObjectFromRequest, addObjectFromRequest, addObjectsFromRequest, addObjectsFromRequest, checkAccess, convertSyntax, createNewObject, 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, isProgrammaticContent, newObject, removeObject, removeObjects, rename, rename, renameDocument, renameDocument, save, save, save, 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 |
| Constructor Detail |
|---|
public XWikiServer(com.xpn.xwiki.doc.XWikiDocument xdoc,
int objectId,
com.xpn.xwiki.XWikiContext context)
throws com.xpn.xwiki.XWikiException
xdoc - the encapsulated XWikiDocument.objectId - the id of the XWiki object included in the document to manage.context - the XWiki context.
com.xpn.xwiki.XWikiException - error when:
DefaultXObjectDocument.reload(XWikiContext)| Method Detail |
|---|
public java.lang.String getWikiName()
setWikiName(String)public void setWikiName(java.lang.String wikiName)
wikiName - the new name of the wiki.public java.lang.String getWikiPrettyName()
setWikiPrettyName(String)public void setWikiPrettyName(java.lang.String wikiPrettyName)
wikiPrettyName - the new name of the wiki.public java.lang.String getOwner()
public void setOwner(java.lang.String owner)
owner - the new owner of the wiki.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new description of the wiki.public java.lang.String getServer()
public void setServer(java.lang.String server)
server - the new domain name of the wiki.public java.lang.String getVisibility()
public void setVisibility(java.lang.String visibility)
visibility - the new visibility of the wiki. Can be:
public java.lang.String getWikiLanguage()
public void setWikiLanguage(java.lang.String language)
language - the new language of the wiki.public java.lang.String getState()
public void setState(java.lang.String state)
state - the new state of the wiki.public boolean getSecure()
public void setSecure(boolean secure)
secure - true if wiki is in secure mode (https), false if in simple non-secure (http) mode.public java.lang.String getHomePage()
public void setHomePage(java.lang.String homePage)
homePage - the new home page of the wiki.public void setIsWikiTemplate(boolean isWikiTemplate)
isWikiTemplate - true if it's a wiki template, false otherwise.public boolean isWikiTemplate()
public java.lang.String toString()
toString in class com.xpn.xwiki.api.DocumentObject.toString()
public java.net.URL getServerUrl()
throws java.net.MalformedURLException
URL of the wiki.
java.net.MalformedURLException - error occurred when creating the URL.
public java.net.URL getHomePageUrl()
throws java.net.MalformedURLException
URL of the wiki home page.
java.net.MalformedURLException - error occurred when creating the URL.
public java.net.URL getWikiUrl(java.lang.String pageFullName)
throws java.net.MalformedURLException
URL of the provided wiki page.
pageFullName - the page full name for which to get the complete URL.
URL of the provided wiki page.
java.net.MalformedURLException - error occurred when creating the URL.
public java.net.URL getServerUrl(java.lang.String spaceName,
java.lang.String pageName)
throws java.net.MalformedURLException
URL of the provided wiki page.
spaceName - the space name of the page for which to get the complete URL.pageName - the name of the page for which to get the complete URL.
URL of the provided wiki page.
java.net.MalformedURLException - error occurred when creating the URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||