@Test void toStringReturnsFullName() { XWikiDocument doc = new XWikiDocument(new DocumentReference("Wiki", "Space", "Page")); assertEquals("Space.Page", new Document(doc, new XWikiContext()).toString()); assertEquals("Main.WebHome", new Document(new XWikiDocument(), new XWikiContext()).toString()); }
@Override public String toString() { return this.doc.toString(); }
Document extends Api { @Override public String toString() { return this.doc.toString(); } }
Document extends Api { @Override public String toString() { return this.doc.toString(); } Document(XWikiDocument doc, XWikiContext context); }
Document extends Api { @Override public String toString() { return this.doc.toString(); } Document(XWikiDocument doc, XWikiContext context); XWikiDocument getDocument(); long getId(); DocumentReference getDocumentReference(); DocumentReference getDocumentReferenceWithLocale(); PageReference getPageReference(); PageReference getPageReferenceWithLocale(); @Deprecated String getName(); String getSpace(); String getWiki(); String getFullName(); String getPrefixedFullName(); Version getRCSVersion(); String getVersion(); String getPreviousVersion(); String getTitle(); String getDisplayTitle(); String getPlainTitle(); String getRenderedTitle(String syntaxId); String getFormat(); String getAuthor(); DocumentReference getAuthorReference(); String getContentAuthor(); DocumentReference getContentAuthorReference(); Date getDate(); Date getContentUpdateDate(); Date getCreationDate(); String getParent(); DocumentReference getParentReference(); String getCreator(); DocumentReference getCreatorReference(); String getContent(); XDOM getXDOM(); Syntax getSyntax(); @Deprecated String getSyntaxId(); @Deprecated String getLanguage(); Locale getLocale(); String getTemplate(); @Deprecated String getRealLanguage(); Locale getRealLocale(); @Deprecated String getDefaultLanguage(); Locale getDefaultLocale(); void setDefaultLocale(Locale defaultLocale); String getDefaultTemplate(); String getComment(); boolean isMinorEdit(); @Unstable List<Locale> getTranslationLocales(); String getTranslatedContent(); String getTranslatedContent(String locale); Document getTranslatedDocument(String locale); Document getTranslatedDocument(); @Unstable String displayDocument(Syntax targetSyntax); @Unstable String displayDocument(Syntax targetSyntax, boolean restricted); @Unstable String displayDocument(); @Unstable String displayDocument(boolean restricted); String getRenderedContent(); String getRenderedContent(boolean transformationContextIsolated); @Deprecated String getRenderedContent(String text); String getRenderedContent(String text, String syntaxId); String getRenderedContentRestricted(String text, String syntaxId); String getRenderedContent(String text, String sourceSyntaxId, String targetSyntaxId); String getRenderedContent(Syntax targetSyntax); String getEscapedContent(); String getArchive(); XWikiDocumentArchive getDocumentArchive(); boolean isNew(); String getAttachmentURL(String filename); String getAttachmentURL(String filename, String action); String getAttachmentURL(String filename, String action, String queryString); String getAttachmentRevisionURL(String filename, String version); String getAttachmentRevisionURL(String filename, String version, String queryString); String getURL(); String getURL(String action); String getURL(String action, String queryString); String getExternalURL(); String getExternalURL(String action); String getExternalURL(String action, String queryString); String getParentURL(); Class getxWikiClass(); Class[] getxWikiClasses(); int createNewObject(String classname); Object newObject(String classname); boolean isFromCache(); int getObjectNumbers(String classname); Map<String, Vector<Object>> getxWikiObjects(); Vector<Object> getObjects(String className); Object getFirstObject(String fieldname); Object getObject(String classname, String key, String value, boolean failover); Vector<Object> getObjects(String classname, String key, String value); Object getObject(String classname, String key, String value); Object getObject(String classname); Object getObject(String classname, boolean create); Object getObject(String classname, int nb); Object getObject(ObjectReference objectReference); String getXMLContent(); String toXML(); org.dom4j.Document toXMLDocument(); Version[] getRevisions(); String[] getRecentRevisions(); String[] getRecentRevisions(int nb); List<String> getRevisions(RevisionCriteria criteria); RevisionInfo getRevisionInfo(String version); List<Attachment> getAttachmentList(); Vector<Object> getComments(); Vector<Object> getComments(boolean asc); void use(Object object); void use(String className); void use(String className, int nb); String getActiveClass(); String displayPrettyName(String fieldname); String displayPrettyName(String fieldname, Object obj); String displayPrettyName(String fieldname, boolean showMandatory); String displayPrettyName(String fieldname, boolean showMandatory, Object obj); String displayPrettyName(String fieldname, boolean showMandatory, boolean before); String displayPrettyName(String fieldname, boolean showMandatory, boolean before, Object obj); String displayTooltip(String fieldname); String displayTooltip(String fieldname, Object obj); String display(String fieldname); String display(String fieldname, String mode); String display(String fieldname, String mode, String prefix); String display(String fieldname, Object obj); String display(String fieldname, String type, Object obj, String wrappingSyntaxId); String display(String fieldname, String mode, Object obj); String display(String fieldname, String mode, String prefix, Object obj); String displayForm(String className, String header, String format); String displayForm(String className, String header, String format, boolean linebreak); String displayForm(String className); String displayRendered(com.xpn.xwiki.api.PropertyClass pclass, String prefix, Collection object); String displayView(com.xpn.xwiki.api.PropertyClass pclass, String prefix, Collection object); String displayEdit(com.xpn.xwiki.api.PropertyClass pclass, String prefix, Collection object); String displayHidden(com.xpn.xwiki.api.PropertyClass pclass, String prefix, Collection object); List<String> getIncludedPages(); List<String> getIncludedMacros(); List<String> getLinkedPages(); Attachment getAttachment(String filename); List<Delta> getContentDiff(Document origdoc, Document newdoc); List<Delta> getXMLDiff(Document origdoc, Document newdoc); List<Delta> getRenderedContentDiff(Document origdoc, Document newdoc); List<MetaDataDiff> getMetaDataDiff(Document origdoc, Document newdoc); List<List<ObjectDiff>> getObjectDiff(Document origdoc, Document newdoc); List<List<ObjectDiff>> getClassDiff(Document origdoc, Document newdoc); List<AttachmentDiff> getAttachmentDiff(Document origdoc, Document newdoc); List<Delta> getLastChanges(); DocumentStats getCurrentMonthPageStats(String action); DocumentStats getCurrentMonthSpaceStats(String action); List<RefererStats> getCurrentMonthRefStats(); boolean checkAccess(String right); boolean hasAccessLevel(String level); @Override boolean hasAccessLevel(String level, String user); boolean hasAccess(Right right, DocumentReference userReference); boolean getLocked(); String getLockingUser(); Date getLockingDate(); java.lang.Object get(String classOrFieldName); java.lang.Object getValue(String fieldName); java.lang.Object getValue(String fieldName, Object object); String getTextArea(); Map<String, Map<String, java.lang.Object>> getTOC(int init, int max, boolean numbered); String getTags(); List<String> getTagList(); List<String> getTagsPossibleValues(); void insertText(String text, String marker); @Override boolean equals(java.lang.Object arg0); boolean same(XWikiDocument document); List<String> getBacklinks(); @Unstable List<DocumentReference> getBackLinkedReferences(); List<XWikiLink> getLinks(); List<DocumentSection> getSections(); List<String> getChildren(); @Unstable List<DocumentReference> getChildrenReferences(); List<String> getChildren(int nb, int start); String getDefaultEditMode(); String getDefaultEditURL(); String getEditURL(String action, String mode); String getEditURL(String action, String mode, String locale); boolean isCurrentUserCreator(); boolean isCurrentUserPage(); boolean isCurrentLocalUserPage(); boolean isCreator(String username); void set(String fieldname, java.lang.Object value); void set(String fieldname, java.lang.Object value, Object obj); void setTitle(String title); void setCustomClass(String customClass); void setParent(String parent); void setContent(String content); void setContent(XDOM content); void setSyntax(Syntax syntax); void setSyntaxId(String syntaxId); void setDefaultTemplate(String dtemplate); void setComment(String comment); void setMinorEdit(boolean isMinor); void save(); void save(String comment); void save(String comment, boolean minorEdit); void saveWithProgrammingRights(); void saveWithProgrammingRights(String comment); void saveWithProgrammingRights(String comment, boolean minorEdit); void saveAsAuthor(); void saveAsAuthor(String comment); void saveAsAuthor(String comment, boolean minorEdit); com.xpn.xwiki.api.Object addObjectFromRequest(); com.xpn.xwiki.api.Object addObjectFromRequest(String className); List<Object> addObjectsFromRequest(String className); com.xpn.xwiki.api.Object addObjectFromRequest(String className, String prefix); List<Object> addObjectsFromRequest(String className, String prefix); com.xpn.xwiki.api.Object updateObjectFromRequest(String className); List<Object> updateObjectsFromRequest(String className); com.xpn.xwiki.api.Object updateObjectFromRequest(String className, String prefix); List<Object> updateObjectsFromRequest(String className, String prefix); boolean isAdvancedContent(); boolean isProgrammaticContent(); boolean removeObject(Object object); boolean removeObjects(String className); void delete(); void deleteAsAuthor(); void deleteWithProgrammingRights(); String getVersionHashCode(); int addAttachments(); int addAttachments(String fieldName); Attachment addAttachment(String fileName, InputStream iStream); Attachment addAttachment(String fileName, byte[] data); boolean validate(); boolean validate(String[] classNames); String getValidationScript(); void setValidationScript(String validationScript); void rename(DocumentReference newReference); void rename(String newDocumentName, List<String> backlinkDocumentNames); void rename(String newDocumentName, List<String> backlinkDocumentNames, List<String> childDocumentNames); void rename(DocumentReference newReference, List<DocumentReference> backlinkDocumentNames,
        List<DocumentReference> childDocumentNames); Document getDocumentRevision(String revision); Document getPreviousDocument(); boolean isMostRecent(); @Override String toString(); boolean convertSyntax(String targetSyntaxId); boolean isHidden(); void setHidden(boolean hidden); void dropPermissions(); boolean isTranslation(); @Unstable int getLocalReferenceMaxLength(); }
Document extends Api { @Override public String toString() { return this.doc.toString(); } Document(XWikiDocument doc, XWikiContext context); XWikiDocument getDocument(); long getId(); DocumentReference getDocumentReference(); DocumentReference getDocumentReferenceWithLocale(); PageReference getPageReference(); PageReference getPageReferenceWithLocale(); @Deprecated String getName(); String getSpace(); String getWiki(); String getFullName(); String getPrefixedFullName(); Version getRCSVersion(); String getVersion(); String getPreviousVersion(); String getTitle(); String getDisplayTitle(); String getPlainTitle(); String getRenderedTitle(String syntaxId); String getFormat(); String getAuthor(); DocumentReference getAuthorReference(); String getContentAuthor(); DocumentReference getContentAuthorReference(); Date getDate(); Date getContentUpdateDate(); Date getCreationDate(); String getParent(); DocumentReference getParentReference(); String getCreator(); DocumentReference getCreatorReference(); String getContent(); XDOM getXDOM(); Syntax getSyntax(); @Deprecated String getSyntaxId(); @Deprecated String getLanguage(); Locale getLocale(); String getTemplate(); @Deprecated String getRealLanguage(); Locale getRealLocale(); @Deprecated String getDefaultLanguage(); Locale getDefaultLocale(); void setDefaultLocale(Locale defaultLocale); String getDefaultTemplate(); String getComment(); boolean isMinorEdit(); @Unstable List<Locale> getTranslationLocales(); String getTranslatedContent(); String getTranslatedContent(String locale); Document getTranslatedDocument(String locale); Document getTranslatedDocument(); @Unstable String displayDocument(Syntax targetSyntax); @Unstable String displayDocument(Syntax targetSyntax, boolean restricted); @Unstable String displayDocument(); @Unstable String displayDocument(boolean restricted); String getRenderedContent(); String getRenderedContent(boolean transformationContextIsolated); @Deprecated String getRenderedContent(String text); String getRenderedContent(String text, String syntaxId); String getRenderedContentRestricted(String text, String syntaxId); String getRenderedContent(String text, String sourceSyntaxId, String targetSyntaxId); String getRenderedContent(Syntax targetSyntax); String getEscapedContent(); String getArchive(); XWikiDocumentArchive getDocumentArchive(); boolean isNew(); String getAttachmentURL(String filename); String getAttachmentURL(String filename, String action); String getAttachmentURL(String filename, String action, String queryString); String getAttachmentRevisionURL(String filename, String version); String getAttachmentRevisionURL(String filename, String version, String queryString); String getURL(); String getURL(String action); String getURL(String action, String queryString); String getExternalURL(); String getExternalURL(String action); String getExternalURL(String action, String queryString); String getParentURL(); Class getxWikiClass(); Class[] getxWikiClasses(); int createNewObject(String classname); Object newObject(String classname); boolean isFromCache(); int getObjectNumbers(String classname); Map<String, Vector<Object>> getxWikiObjects(); Vector<Object> getObjects(String className); Object getFirstObject(String fieldname); Object getObject(String classname, String key, String value, boolean failover); Vector<Object> getObjects(String classname, String key, String value); Object getObject(String classname, String key, String value); Object getObject(String classname); Object getObject(String classname, boolean create); Object getObject(String classname, int nb); Object getObject(ObjectReference objectReference); String getXMLContent(); String toXML(); org.dom4j.Document toXMLDocument(); Version[] getRevisions(); String[] getRecentRevisions(); String[] getRecentRevisions(int nb); List<String> getRevisions(RevisionCriteria criteria); RevisionInfo getRevisionInfo(String version); List<Attachment> getAttachmentList(); Vector<Object> getComments(); Vector<Object> getComments(boolean asc); void use(Object object); void use(String className); void use(String className, int nb); String getActiveClass(); String displayPrettyName(String fieldname); String displayPrettyName(String fieldname, Object obj); String displayPrettyName(String fieldname, boolean showMandatory); String displayPrettyName(String fieldname, boolean showMandatory, Object obj); String displayPrettyName(String fieldname, boolean showMandatory, boolean before); String displayPrettyName(String fieldname, boolean showMandatory, boolean before, Object obj); String displayTooltip(String fieldname); String displayTooltip(String fieldname, Object obj); String display(String fieldname); String display(String fieldname, String mode); String display(String fieldname, String mode, String prefix); String display(String fieldname, Object obj); String display(String fieldname, String type, Object obj, String wrappingSyntaxId); String display(String fieldname, String mode, Object obj); String display(String fieldname, String mode, String prefix, Object obj); String displayForm(String className, String header, String format); String displayForm(String className, String header, String format, boolean linebreak); String displayForm(String className); String displayRendered(com.xpn.xwiki.api.PropertyClass pclass, String prefix, Collection object); String displayView(com.xpn.xwiki.api.PropertyClass pclass, String prefix, Collection object); String displayEdit(com.xpn.xwiki.api.PropertyClass pclass, String prefix, Collection object); String displayHidden(com.xpn.xwiki.api.PropertyClass pclass, String prefix, Collection object); List<String> getIncludedPages(); List<String> getIncludedMacros(); List<String> getLinkedPages(); Attachment getAttachment(String filename); List<Delta> getContentDiff(Document origdoc, Document newdoc); List<Delta> getXMLDiff(Document origdoc, Document newdoc); List<Delta> getRenderedContentDiff(Document origdoc, Document newdoc); List<MetaDataDiff> getMetaDataDiff(Document origdoc, Document newdoc); List<List<ObjectDiff>> getObjectDiff(Document origdoc, Document newdoc); List<List<ObjectDiff>> getClassDiff(Document origdoc, Document newdoc); List<AttachmentDiff> getAttachmentDiff(Document origdoc, Document newdoc); List<Delta> getLastChanges(); DocumentStats getCurrentMonthPageStats(String action); DocumentStats getCurrentMonthSpaceStats(String action); List<RefererStats> getCurrentMonthRefStats(); boolean checkAccess(String right); boolean hasAccessLevel(String level); @Override boolean hasAccessLevel(String level, String user); boolean hasAccess(Right right, DocumentReference userReference); boolean getLocked(); String getLockingUser(); Date getLockingDate(); java.lang.Object get(String classOrFieldName); java.lang.Object getValue(String fieldName); java.lang.Object getValue(String fieldName, Object object); String getTextArea(); Map<String, Map<String, java.lang.Object>> getTOC(int init, int max, boolean numbered); String getTags(); List<String> getTagList(); List<String> getTagsPossibleValues(); void insertText(String text, String marker); @Override boolean equals(java.lang.Object arg0); boolean same(XWikiDocument document); List<String> getBacklinks(); @Unstable List<DocumentReference> getBackLinkedReferences(); List<XWikiLink> getLinks(); List<DocumentSection> getSections(); List<String> getChildren(); @Unstable List<DocumentReference> getChildrenReferences(); List<String> getChildren(int nb, int start); String getDefaultEditMode(); String getDefaultEditURL(); String getEditURL(String action, String mode); String getEditURL(String action, String mode, String locale); boolean isCurrentUserCreator(); boolean isCurrentUserPage(); boolean isCurrentLocalUserPage(); boolean isCreator(String username); void set(String fieldname, java.lang.Object value); void set(String fieldname, java.lang.Object value, Object obj); void setTitle(String title); void setCustomClass(String customClass); void setParent(String parent); void setContent(String content); void setContent(XDOM content); void setSyntax(Syntax syntax); void setSyntaxId(String syntaxId); void setDefaultTemplate(String dtemplate); void setComment(String comment); void setMinorEdit(boolean isMinor); void save(); void save(String comment); void save(String comment, boolean minorEdit); void saveWithProgrammingRights(); void saveWithProgrammingRights(String comment); void saveWithProgrammingRights(String comment, boolean minorEdit); void saveAsAuthor(); void saveAsAuthor(String comment); void saveAsAuthor(String comment, boolean minorEdit); com.xpn.xwiki.api.Object addObjectFromRequest(); com.xpn.xwiki.api.Object addObjectFromRequest(String className); List<Object> addObjectsFromRequest(String className); com.xpn.xwiki.api.Object addObjectFromRequest(String className, String prefix); List<Object> addObjectsFromRequest(String className, String prefix); com.xpn.xwiki.api.Object updateObjectFromRequest(String className); List<Object> updateObjectsFromRequest(String className); com.xpn.xwiki.api.Object updateObjectFromRequest(String className, String prefix); List<Object> updateObjectsFromRequest(String className, String prefix); boolean isAdvancedContent(); boolean isProgrammaticContent(); boolean removeObject(Object object); boolean removeObjects(String className); void delete(); void deleteAsAuthor(); void deleteWithProgrammingRights(); String getVersionHashCode(); int addAttachments(); int addAttachments(String fieldName); Attachment addAttachment(String fileName, InputStream iStream); Attachment addAttachment(String fileName, byte[] data); boolean validate(); boolean validate(String[] classNames); String getValidationScript(); void setValidationScript(String validationScript); void rename(DocumentReference newReference); void rename(String newDocumentName, List<String> backlinkDocumentNames); void rename(String newDocumentName, List<String> backlinkDocumentNames, List<String> childDocumentNames); void rename(DocumentReference newReference, List<DocumentReference> backlinkDocumentNames,
        List<DocumentReference> childDocumentNames); Document getDocumentRevision(String revision); Document getPreviousDocument(); boolean isMostRecent(); @Override String toString(); boolean convertSyntax(String targetSyntaxId); boolean isHidden(); void setHidden(boolean hidden); void dropPermissions(); boolean isTranslation(); @Unstable int getLocalReferenceMaxLength();  }