use of com.xpn.xwiki.internal.store.hibernate.XWikiHibernateDeletedDocumentContent in project xwiki-platform by xwiki.
the class XWikiHibernateRecycleBinStore method createXWikiDeletedDocument.
private XWikiDeletedDocument createXWikiDeletedDocument(XWikiDocument doc, String deleter, Date date, XWikiRecycleBinContentStoreInterface contentStore, String batchId) throws XWikiException {
XWikiDeletedDocument trashdoc;
String storeType = null;
XWikiDeletedDocumentContent deletedDocumentContent = null;
if (contentStore != null) {
storeType = contentStore.getHint();
} else {
deletedDocumentContent = new XWikiHibernateDeletedDocumentContent(doc);
}
trashdoc = new XWikiDeletedDocument(doc.getFullName(), doc.getLocale(), storeType, deleter, date, deletedDocumentContent, batchId);
return trashdoc;
}
Aggregations