/** * @return full copy of this archive with specified docId * @param docId - new {@link #getId()} * @param context - used for loading content * @throws XWikiException if any error */ public XWikiDocumentArchive clone(long docId, XWikiContext context) throws XWikiException { XWikiDocumentArchive result = new XWikiDocumentArchive(docId); result.setArchive(getArchive(context)); return result; } }
public void setDocumentArchive(String sarch) throws XWikiException { XWikiDocumentArchive xda = new XWikiDocumentArchive(getId()); xda.setArchive(sarch); setDocumentArchive(xda); }
XWikiDocumentArchive docArchive = new XWikiDocumentArchive(docId); try { docArchive.setArchive(sArchive); } catch (XWikiException e) { LOG.warn("The RCS archive for [" + rs.getString(3)