/** * @deprecated since 2.6M1 please do not use this, it is bound to a jrcs based implementation. */ @Deprecated public void setArchive(Archive archive) { if (this.attachment_archive == null) { this.attachment_archive = new XWikiAttachmentArchive(); this.attachment_archive.setAttachment(this); } this.attachment_archive.setRCSArchive(archive); }
/** * {@inheritDoc} * * @see java.lang.Object#clone() */ @Override public Object clone() { XWikiAttachmentArchive attachmentarchive = null; try { attachmentarchive = (XWikiAttachmentArchive) getClass().newInstance(); } catch (Exception e) { // This should not happen LOG.error("Error while attachmentArchive.clone()", e); } attachmentarchive.setAttachment(getAttachment()); attachmentarchive.setRCSArchive(getRCSArchive()); return attachmentarchive; }