Search in sources :

Example 1 with XWikiHibernateDeletedDocumentContent

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;
}
Also used : XWikiHibernateDeletedDocumentContent(com.xpn.xwiki.internal.store.hibernate.XWikiHibernateDeletedDocumentContent) XWikiDeletedDocument(com.xpn.xwiki.doc.XWikiDeletedDocument) XWikiDeletedDocumentContent(com.xpn.xwiki.doc.XWikiDeletedDocumentContent)

Aggregations

XWikiDeletedDocument (com.xpn.xwiki.doc.XWikiDeletedDocument)1 XWikiDeletedDocumentContent (com.xpn.xwiki.doc.XWikiDeletedDocumentContent)1 XWikiHibernateDeletedDocumentContent (com.xpn.xwiki.internal.store.hibernate.XWikiHibernateDeletedDocumentContent)1