@Role
public interface AttachmentRecycleBinContentStore
Modifier and Type | Method and Description |
---|---|
void |
delete(AttachmentReference reference,
Date deleteDate,
long index,
boolean bTransaction)
Permanently delete attachment content from recycle bin.
|
DeletedAttachmentContent |
get(AttachmentReference reference,
Date deleteDate,
long index,
boolean bTransaction) |
String |
getHint() |
void |
save(XWikiAttachment attachment,
Date deleteDate,
long index,
boolean bTransaction)
Save attachment to recycle bin.
|
String getHint()
void save(XWikiAttachment attachment, Date deleteDate, long index, boolean bTransaction) throws XWikiException
attachment
- the attachment to savedeleteDate
- the date of the deleteindex
- the index of the deleted attachmentbTransaction
- indicate if the store should use old transaction(false) or create new (true)XWikiException
- if error in savingDeletedAttachmentContent get(AttachmentReference reference, Date deleteDate, long index, boolean bTransaction) throws XWikiException
reference
- the reference of the deleted attachmentdeleteDate
- the date of the deleteindex
- the index of the deleted attachmentbTransaction
- indicate if the store should use old transaction(false) or create new (true)XWikiException
- if error while loadingvoid delete(AttachmentReference reference, Date deleteDate, long index, boolean bTransaction) throws XWikiException
reference
- the reference of the deleted attachmentdeleteDate
- the date of the deleteindex
- the index of the deleted attachmentbTransaction
- indicate if the store should use old transaction(false) or create new (true)XWikiException
- if any errorCopyright © 2004–2022 XWiki. All rights reserved.