use of org.xwiki.store.filesystem.internal.DeletedAttachmentFileProvider in project xwiki-platform by xwiki.
the class FilesystemAttachmentRecycleBinContentStore method delete.
@Override
public void delete(AttachmentReference reference, Date deleteDate, long index, boolean bTransaction) throws XWikiException {
DeletedAttachmentFileProvider provider = this.fileTools.getDeletedAttachmentFileProvider(reference, index);
StartableTransactionRunnable tr = getDeletedAttachmentPurgeRunnable(provider);
try {
tr.start();
} catch (Exception e) {
throw new XWikiException(XWikiException.MODULE_XWIKI_STORE, XWikiException.MODULE_XWIKI, "Failed to delete deleted attachment [" + reference + "]", e);
}
}
Aggregations