/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getDate() */ @Override public Date getDate() { return getDocument().getDate(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getCreator() */ @Override public String getCreator() { return getDocument().getCreator(); }
public void setDocumentArchive(String sarch) throws XWikiException { XWikiDocumentArchive xda = new XWikiDocumentArchive(getId()); xda.setArchive(sarch); setDocumentArchive(xda); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getSyntax() */ @Override public Syntax getSyntax() { return getDocument().getSyntax(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getId() */ @Override public long getId() { return getDocument().getId(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getContentAuthor() */ @Override public String getContentAuthor() { return getDocument().getContentAuthor(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getTranslation() */ @Override public int getTranslation() { return getDocument().getTranslation(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getCustomClass() */ @Override public String getCustomClass() { return getDocument().getCustomClass(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getRelativeParentReference() */ @Override protected EntityReference getRelativeParentReference() { return getDocument().getRelativeParentReference(); }
/** * Export {@link XWikiAttachment} to {@link DeletedAttachment}. * * @param attachment the deleted attachment * @param context the current context, used in the XML export * @throws XWikiException if an exception occurs during the XML export */ protected void setAttachment(XWikiAttachment attachment, XWikiContext context) throws XWikiException { setXml(attachment.toStringXML(true, true, context)); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getXDOM() */ @Override public XDOM getXDOM() { return getDocument().getXDOM(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getDocumentArchive() */ @Override public XWikiDocumentArchive getDocumentArchive() { return getDocument().getDocumentArchive(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getMeta() */ @Override public String getMeta() { return getDocument().getMeta(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getDefaultLanguage() */ @Override public String getDefaultLanguage() { return getDocument().getDefaultLanguage(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getElements() */ @Override public int getElements() { return getDocument().getElements(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getValidationScript() */ @Override public String getValidationScript() { return getDocument().getValidationScript(); }
/** * export {@link XWikiDocument} to {@link XWikiDeletedDocument}. * * @param doc - deleted document * @param context - used in {@link XWikiDocument#toXML(XWikiContext)} * @throws XWikiException in error in {@link XWikiDocument#toXML(XWikiContext)} */ protected void setDocument(XWikiDocument doc, XWikiContext context) throws XWikiException { setXml(doc.toFullXML(context)); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getStore() */ @Override public XWikiStoreInterface getStore() { return getDocument().getStore(); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getTags(com.xpn.xwiki.XWikiContext) */ @Override public String getTags(XWikiContext context) { return getDocument().getTags(context); }
/** * {@inheritDoc} * * @see com.xpn.xwiki.doc.XWikiDocument#getDocumentArchive(com.xpn.xwiki.XWikiContext) */ @Override public XWikiDocumentArchive getDocumentArchive(XWikiContext context) throws XWikiException { return getDocument().getDocumentArchive(context); }