|
||||||||||
| 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
public class Document
| Field Summary | |
|---|---|
protected boolean |
cloned
|
protected Object |
currentObj
|
protected XWikiDocument |
doc
|
| Fields inherited from class com.xpn.xwiki.api.Api |
|---|
context |
| Constructor Summary | |
|---|---|
Document(XWikiDocument doc,
XWikiContext context)
|
|
| Method Summary | |
|---|---|
Attachment |
addAttachment(java.lang.String fileName,
byte[] data)
|
Attachment |
addAttachment(java.lang.String fileName,
java.io.InputStream iStream)
|
int |
addAttachments()
|
int |
addAttachments(java.lang.String fieldName)
|
Object |
addObjectFromRequest()
|
Object |
addObjectFromRequest(java.lang.String className)
|
Object |
addObjectFromRequest(java.lang.String className,
java.lang.String prefix)
|
java.util.List |
addObjectsFromRequest(java.lang.String className)
|
java.util.List |
addObjectsFromRequest(java.lang.String className,
java.lang.String prefix)
|
boolean |
checkAccess(java.lang.String right)
|
int |
createNewObject(java.lang.String classname)
|
void |
delete()
|
protected void |
deleteDocument()
Remove document from the wiki. |
void |
deleteWithProgrammingRights()
|
java.lang.String |
display(java.lang.String fieldname)
|
java.lang.String |
display(java.lang.String fieldname,
Object obj)
|
java.lang.String |
display(java.lang.String fieldname,
java.lang.String mode)
|
java.lang.String |
display(java.lang.String fieldname,
java.lang.String mode,
Object obj)
|
java.lang.String |
display(java.lang.String fieldname,
java.lang.String mode,
java.lang.String prefix)
|
java.lang.String |
display(java.lang.String fieldname,
java.lang.String mode,
java.lang.String prefix,
Object obj)
|
java.lang.String |
displayEdit(PropertyClass pclass,
java.lang.String prefix,
Collection object)
|
java.lang.String |
displayForm(java.lang.String className)
|
java.lang.String |
displayForm(java.lang.String className,
java.lang.String header,
java.lang.String format)
|
java.lang.String |
displayForm(java.lang.String className,
java.lang.String header,
java.lang.String format,
boolean linebreak)
|
java.lang.String |
displayHidden(PropertyClass pclass,
java.lang.String prefix,
Collection object)
|
java.lang.String |
displayPrettyName(java.lang.String fieldname)
|
java.lang.String |
displayPrettyName(java.lang.String fieldname,
boolean showMandatory)
|
java.lang.String |
displayPrettyName(java.lang.String fieldname,
boolean showMandatory,
boolean before)
|
java.lang.String |
displayPrettyName(java.lang.String fieldname,
boolean showMandatory,
boolean before,
Object obj)
|
java.lang.String |
displayPrettyName(java.lang.String fieldname,
boolean showMandatory,
Object obj)
|
java.lang.String |
displayPrettyName(java.lang.String fieldname,
Object obj)
|
java.lang.String |
displayRendered(PropertyClass pclass,
java.lang.String prefix,
Collection object)
|
java.lang.String |
displayTooltip(java.lang.String fieldname)
|
java.lang.String |
displayTooltip(java.lang.String fieldname,
Object obj)
|
java.lang.String |
displayView(PropertyClass pclass,
java.lang.String prefix,
Collection object)
|
boolean |
equals(java.lang.Object arg0)
|
java.lang.Object |
get(java.lang.String classOrFieldName)
|
java.lang.String |
getActiveClass()
|
java.lang.String |
getArchive()
return the archive of the document in a string format |
Attachment |
getAttachment(java.lang.String filename)
|
java.util.List |
getAttachmentDiff(Document origdoc,
Document newdoc)
|
java.util.List<Attachment> |
getAttachmentList()
|
java.lang.String |
getAttachmentRevisionURL(java.lang.String filename,
java.lang.String version)
return the URL for accessing to the archive of the attachment "filename" at the version "version" |
java.lang.String |
getAttachmentRevisionURL(java.lang.String filename,
java.lang.String version,
java.lang.String querystring)
return the URL for accessing to the archive of the attachment "filename" at the version "version" and with the given queryString parameters |
java.lang.String |
getAttachmentURL(java.lang.String filename)
return the URL of download for the the given attachment name |
java.lang.String |
getAttachmentURL(java.lang.String filename,
java.lang.String action)
return the URL of the given action for the the given attachment name |
java.lang.String |
getAttachmentURL(java.lang.String filename,
java.lang.String action,
java.lang.String queryString)
return the URL of the given action for the the given attachment name with "queryString" parameters |
java.lang.String |
getAuthor()
return the name of the last author of the document |
java.util.List |
getBacklinks()
|
java.util.List |
getClassDiff(Document origdoc,
Document newdoc)
|
java.lang.String |
getComment()
return the comment of the latest update of the document |
java.util.Vector<Object> |
getComments()
|
java.util.Vector<Object> |
getComments(boolean asc)
|
java.lang.String |
getContent()
return the content of the document |
java.lang.String |
getContentAuthor()
return the name of the last author of the content of the document |
java.util.List |
getContentDiff(Document origdoc,
Document newdoc)
|
java.util.Date |
getContentUpdateDate()
return the date of the last modification of the content |
java.util.Date |
getCreationDate()
return the date of the creation of the document |
java.lang.String |
getCreator()
return the name of the creator of the document |
DocumentStats |
getCurrentMonthPageStats(java.lang.String action)
|
java.util.List |
getCurrentMonthRefStats()
|
DocumentStats |
getCurrentMonthWebStats(java.lang.String action)
|
java.util.Date |
getDate()
return the modification date |
java.lang.String |
getDefaultEditURL()
|
java.lang.String |
getDefaultLanguage()
return the language of the default document |
java.lang.String |
getDefaultTemplate()
|
java.lang.String |
getDisplayTitle()
|
protected XWikiDocument |
getDoc()
|
XWikiDocument |
getDocument()
this function is accessible only if you have the programming rights give access to the priviledged API of the Document |
XWikiDocumentArchive |
getDocumentArchive()
this function is accessible only if you have the programming rights return the archive of the document |
Document |
getDocumentRevision(java.lang.String revision)
Allow to easily access any revision of a document |
java.lang.String |
getEditURL(java.lang.String action,
java.lang.String mode)
|
java.lang.String |
getEditURL(java.lang.String action,
java.lang.String mode,
java.lang.String language)
|
java.lang.String |
getEscapedContent()
return a escaped version of the content of this document |
java.lang.String |
getExternalURL()
return the full URL of the document |
java.lang.String |
getExternalURL(java.lang.String action)
return the full URL of the document for the given action |
java.lang.String |
getExternalURL(java.lang.String action,
java.lang.String querystring)
|
Object |
getFirstObject(java.lang.String fieldname)
|
java.lang.String |
getFormat()
|
java.lang.String |
getFullName()
return the fullName of a document if a document has for name "MyDoc" and space "MySpace", the fullname is "MySpace.MyDoc" In a wiki, all the documents have a different fullName. |
long |
getId()
return the ID of the document. |
java.util.List |
getIncludedMacros()
|
java.util.List<java.lang.String> |
getIncludedPages()
|
java.lang.String |
getLanguage()
return the language of the document if it's a traduction, otherwise, it return default |
java.util.List |
getLastChanges()
|
java.util.List |
getLinkedPages()
|
java.util.List |
getLinks()
|
boolean |
getLocked()
|
java.util.Date |
getLockingDate()
|
java.lang.String |
getLockingUser()
|
java.util.List |
getMetaDataDiff(Document origdoc,
Document newdoc)
|
java.lang.String |
getName()
return the name of a document. |
Object |
getObject(java.lang.String classname)
|
Object |
getObject(java.lang.String classname,
boolean create)
get the object of the given className. |
Object |
getObject(java.lang.String classname,
int nb)
|
Object |
getObject(java.lang.String classname,
java.lang.String key,
java.lang.String value)
|
Object |
getObject(java.lang.String classname,
java.lang.String key,
java.lang.String value,
boolean failover)
|
java.util.List |
getObjectDiff(Document origdoc,
Document newdoc)
|
int |
getObjectNumbers(java.lang.String classname)
|
java.util.Vector<Object> |
getObjects(java.lang.String classname)
|
java.util.Vector<Object> |
getObjects(java.lang.String classname,
java.lang.String key,
java.lang.String value)
Select a subset of objects from a given class, filtered on a "key = value" criteria. |
protected java.util.Vector<Object> |
getObjects(java.util.Vector<BaseObject> objects)
|
java.lang.String |
getParent()
return the name of the parent document |
java.lang.String |
getParentURL()
|
java.lang.String |
getPrefixedFullName()
|
Document |
getPreviousDocument()
Allow to easily access the previous revision of a document |
java.lang.String |
getPreviousVersion()
return a String with the previous version of the document. |
org.suigeneris.jrcs.rcs.Version |
getRCSVersion()
|
java.lang.String |
getRealLanguage()
return the real language of the document |
java.lang.String[] |
getRecentRevisions()
|
java.lang.String[] |
getRecentRevisions(int nb)
|
java.lang.String |
getRenderedContent()
return the content of the document rendererd |
java.lang.String |
getRenderedContent(java.lang.String text)
Deprecated. since 1.6M1 use getRenderedContent(String, String) |
java.lang.String |
getRenderedContent(java.lang.String text,
java.lang.String syntaxId)
|
java.util.List |
getRenderedContentDiff(Document origdoc,
Document newdoc)
|
RevisionInfo |
getRevisionInfo(java.lang.String version)
Get information about a document version : author, date, etc. |
org.suigeneris.jrcs.rcs.Version[] |
getRevisions()
|
java.util.List<java.lang.String> |
getRevisions(RevisionCriteria criteria)
Get document versions matching criterias like author, minimum creation date, etc. |
java.lang.String |
getSpace()
return the name of the space of the document for example if the fullName of a document is "MySpace.Mydoc", the name is MySpace |
java.lang.String |
getSyntaxId()
|
java.util.List |
getTagList()
|
java.lang.String |
getTags()
|
java.util.List |
getTagsPossibleValues()
|
java.lang.String |
getTemplate()
|
java.lang.String |
getTextArea()
|
java.lang.String |
getTitle()
return the title of a document |
java.util.Map |
getTOC(int init,
int max,
boolean numbered)
Returns data needed for a generation of Table of Content for this document. |
java.lang.String |
getTranslatedContent()
return the tranlated document's content if the wiki is multilingual, the language is first checked in the URL, the cookie, the user profile and finally the wiki configuration if not, the language is the one on the wiki configuration |
java.lang.String |
getTranslatedContent(java.lang.String language)
return the translated content in the given language |
Document |
getTranslatedDocument()
return the tranlated Document if the wiki is multilingual, the language is first checked in the URL, the cookie, the user profile and finally the wiki configuration if not, the language is the one on the wiki configuration |
Document |
getTranslatedDocument(java.lang.String language)
return the translated document in the given document |
java.util.List |
getTranslationList()
return the list of possible traduction for this document |
java.lang.String |
getURL()
return the URL of this document in view mode |
java.lang.String |
getURL(java.lang.String action)
return the URL of this document with the given action |
java.lang.String |
getURL(java.lang.String action,
java.lang.String querystring)
return the URL of this document with the given action and queryString as parameters |
java.lang.String |
getValidationScript()
Retrieves the validation script associated with this document, a Velocity script that is executed when validating the document data. |
java.lang.Object |
getValue(java.lang.String fieldName)
|
java.lang.Object |
getValue(java.lang.String fieldName,
Object object)
|
java.lang.String |
getVersion()
return a String with the version of the document. |
java.lang.String |
getVersionHashCode()
|
java.lang.String |
getWeb()
Deprecated. use getSpace() instead of this function |
java.lang.String |
getWiki()
|
java.lang.String |
getXMLContent()
|
java.util.List |
getXMLDiff(Document origdoc,
Document newdoc)
|
Class |
getxWikiClass()
|
Class[] |
getxWikiClasses()
|
java.util.Map<java.lang.String,java.util.Vector<Object>> |
getxWikiObjects()
|
boolean |
hasAccessLevel(java.lang.String level)
|
boolean |
hasAccessLevel(java.lang.String level,
java.lang.String user)
Check if the current user has an access level on a given document. |
void |
insertText(java.lang.String text,
java.lang.String marker)
|
boolean |
isAdvancedContent()
|
boolean |
isCreator(java.lang.String username)
|
boolean |
isCurrentLocalUserPage()
|
boolean |
isCurrentUserCreator()
|
boolean |
isCurrentUserPage()
|
boolean |
isFromCache()
|
boolean |
isMinorEdit()
|
boolean |
isMostRecent()
|
boolean |
isNew()
|
boolean |
isProgrammaticContent()
|
Object |
newObject(java.lang.String classname)
|
boolean |
removeObject(Object obj)
|
boolean |
removeObjects(java.lang.String className)
|
void |
rename(java.lang.String newDocumentName)
Rename the current document and all the backlinks leading to it. |
void |
rename(java.lang.String newDocumentName,
java.util.List backlinkDocumentNames)
Rename the current document and all the links pointing to it in the list of passed backlink documents. |
void |
renameDocument(java.lang.String newDocumentName)
Deprecated. use rename(String) instead |
void |
renameDocument(java.lang.String newDocumentName,
java.util.List backlinkDocumentNames)
Deprecated. use rename(String, java.util.List) instead |
void |
save()
|
void |
save(java.lang.String comment)
|
void |
save(java.lang.String comment,
boolean minorEdit)
|
protected void |
saveDocument(java.lang.String comment,
boolean minorEdit)
|
void |
saveWithProgrammingRights()
|
void |
saveWithProgrammingRights(java.lang.String comment)
|
void |
saveWithProgrammingRights(java.lang.String comment,
boolean minorEdit)
|
void |
set(java.lang.String fieldname,
java.lang.Object value)
|
void |
set(java.lang.String fieldname,
java.lang.Object value,
Object obj)
|
void |
setComment(java.lang.String comment)
|
void |
setContent(java.lang.String content)
|
void |
setCustomClass(java.lang.String customClass)
|
void |
setDefaultTemplate(java.lang.String dtemplate)
|
void |
setMinorEdit(boolean isMinor)
|
void |
setParent(java.lang.String parent)
|
void |
setTitle(java.lang.String title)
|
void |
setValidationScript(java.lang.String validationScript)
Sets a new validation script for this document, a Velocity script that is executed when validating the document data. |
java.lang.String |
toString()
|
java.lang.String |
toXML()
|
org.dom4j.Document |
toXMLDocument()
|
Object |
updateObjectFromRequest(java.lang.String className)
|
Object |
updateObjectFromRequest(java.lang.String className,
java.lang.String prefix)
|
java.util.List |
updateObjectsFromRequest(java.lang.String className)
|
java.util.List |
updateObjectsFromRequest(java.lang.String className,
java.lang.String prefix)
|
void |
use(Object object)
|
void |
use(java.lang.String className)
|
void |
use(java.lang.String className,
int nb)
|
boolean |
validate()
|
boolean |
validate(java.lang.String[] classNames)
|
| Methods inherited from class com.xpn.xwiki.api.Api |
|---|
convert, convert, getXWikiContext, hasAdminRights, hasProgrammingRights |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected XWikiDocument doc
protected boolean cloned
protected Object currentObj
| Constructor Detail |
|---|
public Document(XWikiDocument doc,
XWikiContext context)
| Method Detail |
|---|
public XWikiDocument getDocument()
protected XWikiDocument getDoc()
public long getId()
public java.lang.String getName()
public java.lang.String getSpace()
public java.lang.String getWiki()
@Deprecated public java.lang.String getWeb()
getSpace() instead of this function
public java.lang.String getFullName()
public java.lang.String getPrefixedFullName()
public org.suigeneris.jrcs.rcs.Version getRCSVersion()
public java.lang.String getVersion()
public java.lang.String getPreviousVersion()
public java.lang.String getTitle()
public java.lang.String getDisplayTitle()
public java.lang.String getFormat()
public java.lang.String getAuthor()
public java.lang.String getContentAuthor()
public java.util.Date getDate()
public java.util.Date getContentUpdateDate()
public java.util.Date getCreationDate()
public java.lang.String getParent()
public java.lang.String getCreator()
public java.lang.String getContent()
public java.lang.String getLanguage()
public java.lang.String getTemplate()
public java.lang.String getRealLanguage()
throws XWikiException
XWikiExceptionpublic java.lang.String getDefaultLanguage()
public java.lang.String getDefaultTemplate()
public java.lang.String getComment()
public boolean isMinorEdit()
public java.util.List getTranslationList()
throws XWikiException
XWikiException
public java.lang.String getTranslatedContent()
throws XWikiException
XWikiException
public java.lang.String getTranslatedContent(java.lang.String language)
throws XWikiException
XWikiException
public Document getTranslatedDocument(java.lang.String language)
throws XWikiException
XWikiException
public Document getTranslatedDocument()
throws XWikiException
XWikiException
public java.lang.String getRenderedContent()
throws XWikiException
XWikiException
@Deprecated
public java.lang.String getRenderedContent(java.lang.String text)
throws XWikiException
getRenderedContent(String, String)
text - the text to render
XWikiException
public java.lang.String getRenderedContent(java.lang.String text,
java.lang.String syntaxId)
throws XWikiException
text - the text to rendersyntaxId - the id of the Syntax used by the passed text (for example: "xwiki/1.0")
XWikiException
public java.lang.String getEscapedContent()
throws XWikiException
XWikiException
public java.lang.String getArchive()
throws XWikiException
XWikiException
public XWikiDocumentArchive getDocumentArchive()
throws XWikiException
XWikiExceptionpublic boolean isNew()
public java.lang.String getAttachmentURL(java.lang.String filename)
filename - the name of the attachment
public java.lang.String getAttachmentURL(java.lang.String filename,
java.lang.String action)
public java.lang.String getAttachmentURL(java.lang.String filename,
java.lang.String action,
java.lang.String queryString)
queryString - parameters added to the URL
public java.lang.String getAttachmentRevisionURL(java.lang.String filename,
java.lang.String version)
public java.lang.String getAttachmentRevisionURL(java.lang.String filename,
java.lang.String version,
java.lang.String querystring)
public java.lang.String getURL()
public java.lang.String getURL(java.lang.String action)
public java.lang.String getURL(java.lang.String action,
java.lang.String querystring)
public java.lang.String getExternalURL()
public java.lang.String getExternalURL(java.lang.String action)
public java.lang.String getExternalURL(java.lang.String action,
java.lang.String querystring)
public java.lang.String getParentURL()
throws XWikiException
XWikiExceptionpublic Class getxWikiClass()
public Class[] getxWikiClasses()
public int createNewObject(java.lang.String classname)
throws XWikiException
XWikiException
public Object newObject(java.lang.String classname)
throws XWikiException
XWikiExceptionpublic boolean isFromCache()
public int getObjectNumbers(java.lang.String classname)
public java.util.Map<java.lang.String,java.util.Vector<Object>> getxWikiObjects()
protected java.util.Vector<Object> getObjects(java.util.Vector<BaseObject> objects)
public java.util.Vector<Object> getObjects(java.lang.String classname)
public Object getFirstObject(java.lang.String fieldname)
public Object getObject(java.lang.String classname,
java.lang.String key,
java.lang.String value,
boolean failover)
public java.util.Vector<Object> getObjects(java.lang.String classname,
java.lang.String key,
java.lang.String value)
classname - The type of objects to return.key - The name of the property used for filtering.value - The required value.
objects matching the criteria. If no objects are found, or if the key is an
empty String, then an empty vector is returned.
public Object getObject(java.lang.String classname,
java.lang.String key,
java.lang.String value)
public Object getObject(java.lang.String classname)
public Object getObject(java.lang.String classname,
boolean create)
public Object getObject(java.lang.String classname,
int nb)
public java.lang.String getXMLContent()
throws XWikiException
XWikiException
public java.lang.String toXML()
throws XWikiException
XWikiException
public org.dom4j.Document toXMLDocument()
throws XWikiException
XWikiException
public org.suigeneris.jrcs.rcs.Version[] getRevisions()
throws XWikiException
XWikiException
public java.lang.String[] getRecentRevisions()
throws XWikiException
XWikiException
public java.lang.String[] getRecentRevisions(int nb)
throws XWikiException
XWikiException
public java.util.List<java.lang.String> getRevisions(RevisionCriteria criteria)
throws XWikiException
criteria - criteria used to match versions
XWikiException
public RevisionInfo getRevisionInfo(java.lang.String version)
throws XWikiException
version - the version you want to get information about
XWikiExceptionpublic java.util.List<Attachment> getAttachmentList()
public java.util.Vector<Object> getComments()
public java.util.Vector<Object> getComments(boolean asc)
public void use(Object object)
public void use(java.lang.String className)
public void use(java.lang.String className,
int nb)
public java.lang.String getActiveClass()
public java.lang.String displayPrettyName(java.lang.String fieldname)
public java.lang.String displayPrettyName(java.lang.String fieldname,
Object obj)
public java.lang.String displayPrettyName(java.lang.String fieldname,
boolean showMandatory)
public java.lang.String displayPrettyName(java.lang.String fieldname,
boolean showMandatory,
Object obj)
public java.lang.String displayPrettyName(java.lang.String fieldname,
boolean showMandatory,
boolean before)
public java.lang.String displayPrettyName(java.lang.String fieldname,
boolean showMandatory,
boolean before,
Object obj)
public java.lang.String displayTooltip(java.lang.String fieldname)
public java.lang.String displayTooltip(java.lang.String fieldname,
Object obj)
public java.lang.String display(java.lang.String fieldname)
public java.lang.String display(java.lang.String fieldname,
java.lang.String mode)
public java.lang.String display(java.lang.String fieldname,
java.lang.String mode,
java.lang.String prefix)
public java.lang.String display(java.lang.String fieldname,
Object obj)
public java.lang.String display(java.lang.String fieldname,
java.lang.String mode,
Object obj)
public java.lang.String display(java.lang.String fieldname,
java.lang.String mode,
java.lang.String prefix,
Object obj)
public java.lang.String displayForm(java.lang.String className,
java.lang.String header,
java.lang.String format)
public java.lang.String displayForm(java.lang.String className,
java.lang.String header,
java.lang.String format,
boolean linebreak)
public java.lang.String displayForm(java.lang.String className)
public java.lang.String displayRendered(PropertyClass pclass,
java.lang.String prefix,
Collection object)
throws XWikiException
XWikiException
public java.lang.String displayView(PropertyClass pclass,
java.lang.String prefix,
Collection object)
public java.lang.String displayEdit(PropertyClass pclass,
java.lang.String prefix,
Collection object)
public java.lang.String displayHidden(PropertyClass pclass,
java.lang.String prefix,
Collection object)
public java.util.List<java.lang.String> getIncludedPages()
public java.util.List getIncludedMacros()
public java.util.List getLinkedPages()
public Attachment getAttachment(java.lang.String filename)
public java.util.List getContentDiff(Document origdoc,
Document newdoc)
throws XWikiException,
org.suigeneris.jrcs.diff.DifferentiationFailedException
XWikiException
org.suigeneris.jrcs.diff.DifferentiationFailedException
public java.util.List getXMLDiff(Document origdoc,
Document newdoc)
throws XWikiException,
org.suigeneris.jrcs.diff.DifferentiationFailedException
XWikiException
org.suigeneris.jrcs.diff.DifferentiationFailedException
public java.util.List getRenderedContentDiff(Document origdoc,
Document newdoc)
throws XWikiException,
org.suigeneris.jrcs.diff.DifferentiationFailedException
XWikiException
org.suigeneris.jrcs.diff.DifferentiationFailedException
public java.util.List getMetaDataDiff(Document origdoc,
Document newdoc)
throws XWikiException
XWikiException
public java.util.List getObjectDiff(Document origdoc,
Document newdoc)
throws XWikiException
XWikiException
public java.util.List getClassDiff(Document origdoc,
Document newdoc)
throws XWikiException
XWikiException
public java.util.List getAttachmentDiff(Document origdoc,
Document newdoc)
throws XWikiException
XWikiException
public java.util.List getLastChanges()
throws XWikiException,
org.suigeneris.jrcs.diff.DifferentiationFailedException
XWikiException
org.suigeneris.jrcs.diff.DifferentiationFailedExceptionpublic DocumentStats getCurrentMonthPageStats(java.lang.String action)
public DocumentStats getCurrentMonthWebStats(java.lang.String action)
public java.util.List getCurrentMonthRefStats()
throws XWikiException
XWikiExceptionpublic boolean checkAccess(java.lang.String right)
public boolean hasAccessLevel(java.lang.String level)
public boolean hasAccessLevel(java.lang.String level,
java.lang.String user)
Api
hasAccessLevel in class Apilevel - The name of the right to verify (eg "programming", "admin", "register", etc).user - The document for which to verify the right.
public boolean getLocked()
public java.lang.String getLockingUser()
public java.util.Date getLockingDate()
public java.lang.Object get(java.lang.String classOrFieldName)
public java.lang.Object getValue(java.lang.String fieldName)
public java.lang.Object getValue(java.lang.String fieldName,
Object object)
public java.lang.String getTextArea()
public java.util.Map getTOC(int init,
int max,
boolean numbered)
init - an intial level where the TOC generation should start atmax - maximum level TOC is generated fornumbered - if should generate numbering for headings
public java.lang.String getTags()
public java.util.List getTagList()
public java.util.List getTagsPossibleValues()
public void insertText(java.lang.String text,
java.lang.String marker)
throws XWikiException
XWikiExceptionpublic boolean equals(java.lang.Object arg0)
equals in class java.lang.Object
public java.util.List getBacklinks()
throws XWikiException
XWikiException
public java.util.List getLinks()
throws XWikiException
XWikiException
public java.lang.String getDefaultEditURL()
throws XWikiException
XWikiException
public java.lang.String getEditURL(java.lang.String action,
java.lang.String mode)
throws XWikiException
XWikiException
public java.lang.String getEditURL(java.lang.String action,
java.lang.String mode,
java.lang.String language)
public boolean isCurrentUserCreator()
public boolean isCurrentUserPage()
public boolean isCurrentLocalUserPage()
public boolean isCreator(java.lang.String username)
public void set(java.lang.String fieldname,
java.lang.Object value)
public void set(java.lang.String fieldname,
java.lang.Object value,
Object obj)
public void setTitle(java.lang.String title)
public void setCustomClass(java.lang.String customClass)
public void setParent(java.lang.String parent)
public void setContent(java.lang.String content)
public void setDefaultTemplate(java.lang.String dtemplate)
public void setComment(java.lang.String comment)
public void setMinorEdit(boolean isMinor)
public void save()
throws XWikiException
XWikiException
public void save(java.lang.String comment)
throws XWikiException
XWikiException
public void save(java.lang.String comment,
boolean minorEdit)
throws XWikiException
XWikiException
public void saveWithProgrammingRights()
throws XWikiException
XWikiException
public void saveWithProgrammingRights(java.lang.String comment)
throws XWikiException
XWikiException
public void saveWithProgrammingRights(java.lang.String comment,
boolean minorEdit)
throws XWikiException
XWikiException
protected void saveDocument(java.lang.String comment,
boolean minorEdit)
throws XWikiException
XWikiException
public Object addObjectFromRequest()
throws XWikiException
XWikiException
public Object addObjectFromRequest(java.lang.String className)
throws XWikiException
XWikiException
public java.util.List addObjectsFromRequest(java.lang.String className)
throws XWikiException
XWikiException
public Object addObjectFromRequest(java.lang.String className,
java.lang.String prefix)
throws XWikiException
XWikiException
public java.util.List addObjectsFromRequest(java.lang.String className,
java.lang.String prefix)
throws XWikiException
XWikiException
public Object updateObjectFromRequest(java.lang.String className)
throws XWikiException
XWikiException
public java.util.List updateObjectsFromRequest(java.lang.String className)
throws XWikiException
XWikiException
public Object updateObjectFromRequest(java.lang.String className,
java.lang.String prefix)
throws XWikiException
XWikiException
public java.util.List updateObjectsFromRequest(java.lang.String className,
java.lang.String prefix)
throws XWikiException
XWikiExceptionpublic boolean isAdvancedContent()
public boolean isProgrammaticContent()
public boolean removeObject(Object obj)
public boolean removeObjects(java.lang.String className)
protected void deleteDocument()
throws XWikiException
cloned.
XWikiException
public void delete()
throws XWikiException
XWikiException
public void deleteWithProgrammingRights()
throws XWikiException
XWikiExceptionpublic java.lang.String getVersionHashCode()
public int addAttachments()
throws XWikiException
XWikiException
public int addAttachments(java.lang.String fieldName)
throws XWikiException
XWikiException
public Attachment addAttachment(java.lang.String fileName,
java.io.InputStream iStream)
public Attachment addAttachment(java.lang.String fileName,
byte[] data)
public boolean validate()
throws XWikiException
XWikiException
public boolean validate(java.lang.String[] classNames)
throws XWikiException
XWikiExceptionpublic java.lang.String getValidationScript()
String representation of the validation script, or an empty string if there is no such
script.public void setValidationScript(java.lang.String validationScript)
validationScript - The new validation script, which can be an empty string or null if the
script should be removed.
@Deprecated
public void renameDocument(java.lang.String newDocumentName)
throws XWikiException
rename(String) instead
XWikiException
public void rename(java.lang.String newDocumentName)
throws XWikiException
renameDocument(String, java.util.List) for more details.
newDocumentName - the new document name. If the space is not specified then defaults to the current space.
XWikiException - in case of an error
@Deprecated
public void renameDocument(java.lang.String newDocumentName,
java.util.List backlinkDocumentNames)
throws XWikiException
rename(String, java.util.List) instead
XWikiException
public void rename(java.lang.String newDocumentName,
java.util.List backlinkDocumentNames)
throws XWikiException
Note: links without a space are renamed with the space added.
newDocumentName - the new document name. If the space is not specified then defaults to the current space.backlinkDocumentNames - the list of documents to parse and for which links will be modified to point to the
new renamed document.
XWikiException - in case of an error
public Document getDocumentRevision(java.lang.String revision)
throws XWikiException
revision - version to access
XWikiException
public Document getPreviousDocument()
throws XWikiException
XWikiExceptionpublic boolean isMostRecent()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getSyntaxId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||