Package com.xpn.xwiki.store
Interface AttachmentRecycleBinContentStore
-
@Role public interface AttachmentRecycleBinContentStore
Store the content of a deleted attachment.- Since:
- 9.10RC1
- Version:
- $Id: 40d47a9126e6e74b8a1afca1e152922b2728ff0e $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getHint
String getHint()
- Returns:
- the hint of the component
-
save
void save(XWikiAttachment attachment, Date deleteDate, long index, boolean bTransaction) throws XWikiException
Save attachment to recycle bin.- Parameters:
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)- Throws:
XWikiException
- if error in saving
-
get
DeletedAttachmentContent get(AttachmentReference reference, Date deleteDate, long index, boolean bTransaction) throws XWikiException
- Parameters:
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)- Returns:
- specified deleted attachment from recycle bin. null if not found.
- Throws:
XWikiException
- if error while loading
-
delete
void delete(AttachmentReference reference, Date deleteDate, long index, boolean bTransaction) throws XWikiException
Permanently delete attachment content from recycle bin.- Parameters:
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)- Throws:
XWikiException
- if any error
-
-