public class LazyXWikiDocument extends XWikiDocument
The following informations are taken into account:
originalDocument remain the property of LazyXWikiDocument object and is not taken from the lazy loaded
document since it depends on how this XWikiDocument object is used (its technical meaning is its state in the
database before any modification but in the case of observation it's used as the previous version of the document).
TODO: we should probably think about a separation of theses two notions in something more clear, something for the
new model.
XWikiDocument.XWikiAttachmentToRemoveCKEY_SDOC, COMMENTSCLASS_REFERENCE, DB_SPACE_SEP, HAS_ATTACHMENTS, HAS_CLASS, HAS_OBJECTS, SHEETCLASS_REFERENCE, SPACE_NAME_SEP, version| Constructor and Description |
|---|
LazyXWikiDocument()
Deprecated.
use
LazyXWikiDocument(DocumentReference) instead |
LazyXWikiDocument(DocumentReference documentReference) |
addAttachment, addAttachment, addAttachment, addObject, addObjectFromRequest, addObjectFromRequest, addObjectFromRequest, addObjectFromRequest, addObjectsFromRequest, addObjectsFromRequest, addObjectsToRemove, addToZip, addToZip, addToZip, addXObject, addXObject, addXObjectFromRequest, addXObjectFromRequest, addXObjectFromRequest, addXObjectFromRequest, addXObjectFromRequest, addXObjectsFromRequest, addXObjectsFromRequest, addXObjectsToRemoveFromVersion, addXObjectToRemove, appendMeta, apply, apply, backupContext, clearAttachmentsToRemove, clone, clone, cloneRename, cloneXObjects, containsXMLWikiDocument, convertSyntax, convertSyntax, copyAttachments, copyDocument, copyDocument, createNewObject, createXObject, display, display, display, display, display, display, display, display, display, display, display, displayDocument, displayDocument, displayDocument, displayDocument, displayEdit, displayForm, displayForm, displayForm, displayForm, displayForm, displayForm, displayHidden, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayPrettyName, displayRendered, displayTooltip, displayTooltip, displayView, duplicate, duplicateXObjects, encodedXMLStringAsUTF8, equals, equalsData, fromXML, fromXML, fromXML, fromXML, fromXML, fromXML, getAttachment, getAttachmentDiff, getAttachmentList, getAttachmentRevisionURL, getAttachmentRevisionURL, getAttachmentStore, getAttachmentsToRemove, getAttachmentURL, getAttachmentURL, getAttachmentURL, getAuthor, getBackLinkedPages, getBackLinkedReferences, getChildren, getChildren, getChildrenReferences, getChildrenReferences, getClassDiff, getComments, getComments, getContentAuthor, getContentDiff, getContentDiff, getContentDiff, getContentOfSection, getCreator, getDatabase, getDefaultEditMode, getDefaultEditURL, getDefaultLanguage, getDeltas, getDocumentReference, getDocumentReferenceWithLocale, getDocumentSection, getEditURL, getEditURL, getElement, getEscapedContent, getExactAttachment, getExternalAttachmentURL, getExternalURL, getExternalURL, getFirstObject, getFirstObject, getFullName, getIncludedMacros, getIncludedPages, getInternalProperty, getInternalPropertyName, getIntValue, getIntValue, getIntValue, getIntValue, getKey, getLanguage, getLastChanges, getListValue, getListValue, getListValue, getLocale, getLocalReferenceMaxLength, getLock, getLongValue, getLongValue, getLongValue, getMetaDataDiff, getMetaDataDiff, getMetaDataDiff, getMinorEdit1, getName, getNextVersion, getObject, getObject, getObject, getObject, getObject, getObjectDiff, getObjectDiff, getObjectDiff, getObjectNumbers, getObjects, getObjectsToRemove, getOriginalDocument, getPageName, getPageReference, getPageReferenceWithLocale, getParent, getParentDoc, getParentURL, getPrefixedFullName, getPreviousVersion, getRealLanguage, getRealLanguage, getRealLocale, getRecentRevisions, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContent, getRenderedContentDiff, getRenderedContentDiff, getRenderedContentDiff, getRenderedTitle, getRenderedTitle, getRevisionInfo, getRevisions, getRevisions, getSections, getSpace, getSpaceName, getStringValue, getStringValue, getStringValue, getStringValue, getSyntaxId, getTagsList, getTemplate, getTemplateDocumentReference, getTranslatedContent, getTranslatedContent, getTranslatedDocument, getTranslatedDocument, getTranslatedDocument, getTranslationList, getTranslationLocales, getUniqueLinkedPages, getUniqueWikiLinkedPages, getURL, getURL, getURL, getURL, getURL, getVersion, getVersionHashCode, getVersioningStore, getWeb, getWikiName, getXClasses, getXMLContent, getXMLDiff, getXObject, getXObject, getXObject, getXObject, getXObject, getXObject, getXObject, getXObject, getXObject, getXObject, getXObject, getXObject, getXObjectProperty, getXObjects, getXObjects, getXObjectSize, getXObjectSize, getXObjectsToRemove, getxWikiClassXML, getxWikiObject, hasElement, hashCode, incrementVersion, insertText, is10Syntax, is10Syntax, isAdvancedContent, isContentDirty, isCreator, isCreator, isCurrentLocalUserPage, isCurrentUserCreator, isCurrentUserPage, isMetaDataDirty, isMinorEdit, isNew, isProgrammaticContent, loadAttachmentContent, loadAttachments, loadAttachmentsContent, loadAttachmentsContentSafe, loadDocumentArchive, merge, mergeXClass, mergeXObjects, mergexWikiClass, mergexWikiObjects, newDocument, newDocument, newDocument, newObject, newXObject, readDocMetaFromForm, readFromForm, readFromTemplate, readFromTemplate, readFromTemplate, readObjectsFromForm, readObjectsFromFormUpdateOrCreate, readTranslationMetaFromForm, removeAttachment, removeAttachment, removeLock, removeObject, removeObjects, removeXObject, removeXObjects, removeXObjects, rename, rename, rename, renameProperties, renameProperties, renderXDOM, resetArchive, resolveClassReference, restoreContext, saveAllAttachments, saveAllAttachments, saveAttachmentContent, saveAttachmentContent, saveAttachmentsContent, setAsContextDoc, setAttachment, setAttachment, setAttachmentList, setAuthor, setAuthorReference, setComment, setContent, setContent, setContentAuthor, setContentAuthorReference, setContentDirty, setContentUpdateDate, setCreationDate, setCreator, setCreatorReference, setCustomClass, setDatabase, setDate, setDBStringListValue, setDBStringListValue, setDefaultLanguage, setDefaultLocale, setDefaultTemplate, setDocumentArchive, setDocumentArchive, setDocumentReference, setElement, setElements, setFormat, setFromCache, setFullName, setFullName, setHidden, setId, setIntValue, setIntValue, setLanguage, setLargeStringValue, setLargeStringValue, setLocale, setLock, setMeta, setMetaDataDirty, setMinorEdit, setMinorEdit1, setMostRecent, setName, setNew, setObject, setOriginalDocument, setParent, setParentReference, setProperty, setProperty, setRCSVersion, setSpace, setStore, setStringListValue, setStringListValue, setStringValue, setStringValue, setSyntax, setSyntaxId, setTags, setTemplate, setTemplateDocumentReference, setTitle, setTranslation, setValidationScript, setVersion, setWeb, setWikiNode, setXClass, setXClassXML, setXObject, setXObject, setXObjects, setXObjects, setXObjectsToRemove, setxWikiClassXML, toFullXML, toString, toXML, toXML, toXML, toXML, toXML, toXML, toXMLDocument, updateDocumentSection, updateObjectFromRequest, updateObjectFromRequest, updateObjectFromRequest, updateObjectsFromRequest, updateObjectsFromRequest, updateXObjectFromRequest, updateXObjectFromRequest, updateXObjectFromRequest, updateXObjectsFromRequest, updateXObjectsFromRequest, validate, validate@Deprecated public LazyXWikiDocument()
LazyXWikiDocument(DocumentReference) insteadpublic LazyXWikiDocument(DocumentReference documentReference)
public org.suigeneris.jrcs.rcs.Version getRCSVersion()
getRCSVersion in class XWikiDocumentpublic String getContent()
getContent in interface DocumentModelBridgegetContent in class XWikiDocumentpublic Map<DocumentReference,List<BaseObject>> getXObjects()
getXObjects in class XWikiDocumentpublic BaseClass getXClass()
getXClass in class XWikiDocumentpublic String getXClassXML()
getXClassXML in class XWikiDocumentpublic DocumentReference getAuthorReference()
getAuthorReference in class XWikiDocumentpublic DocumentReference getContentAuthorReference()
getContentAuthorReference in interface DocumentModelBridgegetContentAuthorReference in class XWikiDocumentpublic DocumentReference getCreatorReference()
getCreatorReference in class XWikiDocumentpublic Date getDate()
getDate in class XWikiDocumentpublic Date getCreationDate()
getCreationDate in interface DocumentModelBridgegetCreationDate in class XWikiDocumentpublic Date getContentUpdateDate()
getContentUpdateDate in class XWikiDocumentpublic String getMeta()
getMeta in class XWikiDocumentpublic String getTitle()
getTitle in interface DocumentModelBridgegetTitle in class XWikiDocumentpublic String getFormat()
getFormat in class XWikiDocumentpublic Locale getDefaultLocale()
getDefaultLocale in class XWikiDocumentpublic int getTranslation()
getTranslation in class XWikiDocumentpublic String getCustomClass()
getCustomClass in class XWikiDocumentpublic EntityReference getRelativeParentReference()
XWikiDocumentXWikiDocument.setParentReference(EntityReference).
You should use XWikiDocument.getParentReference() reference if you want the complete parent reference.
getRelativeParentReference in class XWikiDocumentpublic DocumentReference getParentReference()
getParentReference in class XWikiDocumentpublic int getElements()
getElements in class XWikiDocumentpublic String getDefaultTemplate()
getDefaultTemplate in class XWikiDocumentpublic String getValidationScript()
getValidationScript in class XWikiDocumentpublic String getComment()
getComment in class XWikiDocumentpublic org.xwiki.rendering.syntax.Syntax getSyntax()
getSyntax in interface DocumentModelBridgegetSyntax in class XWikiDocumentpublic Boolean isHidden()
XWikiDocumentisHidden in interface DocumentModelBridgeisHidden in class XWikiDocumenttrue if the document is hidden and does not appear among the results of
XWiki.searchDocuments(String), false otherwise.public XWikiDocumentArchive getDocumentArchive()
getDocumentArchive in class XWikiDocumentXWikiDocumentArchive for this document. If it is not stored in the document, null is
returned.public void loadArchive(XWikiContext context) throws XWikiException
loadArchive in class XWikiDocumentXWikiExceptionpublic XWikiDocumentArchive getDocumentArchive(XWikiContext context) throws XWikiException
getDocumentArchive in class XWikiDocumentXWikiExceptionpublic XWikiStoreInterface getStore()
getStore in class XWikiDocumentpublic long getId()
getId in class XWikiDocumentpublic XWikiStoreInterface getStore(XWikiContext context)
getStore in class XWikiDocumentpublic org.xwiki.rendering.block.XDOM getXDOM()
XWikiDocumentgetXDOM in interface DocumentModelBridgegetXDOM in class XWikiDocumentpublic String getTags(XWikiContext context)
getTags in class XWikiDocumentpublic List<String> getTagsPossibleValues(XWikiContext context)
getTagsPossibleValues in class XWikiDocumentpublic boolean isFromCache()
isFromCache in class XWikiDocumentpublic boolean isMostRecent()
isMostRecent in class XWikiDocumentpublic org.dom4j.Document toXMLDocument(boolean bWithObjects,
boolean bWithRendering,
boolean bWithAttachmentContent,
boolean bWithVersions,
XWikiContext context)
throws XWikiException
XWikiDocumentDOMDocument. You should prefer
XWikiDocument.toXML(OutputStream, boolean, boolean, boolean, boolean, XWikiContext) or
XWikiDocument.toXML(com.xpn.xwiki.internal.xml.XMLWriter, boolean, boolean, boolean, boolean, XWikiContext) when
possible to reduce memory load.toXMLDocument in class XWikiDocumentbWithObjects - include XObjectsbWithRendering - include the rendered contentbWithAttachmentContent - include attachments contentbWithVersions - include archived versionscontext - current XWikiContextDOMDocument containing the serialized document.XWikiException - when an errors occurs during wiki operationspublic Object getWikiNode()
getWikiNode in class XWikiDocumentCopyright © 2004–2022 XWiki. All rights reserved.