|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Role public interface XWikiRecycleBinStoreInterface
Interface for RecycleBin feature (XWIKI-543) store system.
Method Summary | |
---|---|
void |
deleteFromRecycleBin(XWikiDocument doc,
long index,
XWikiContext context,
boolean bTransaction)
Permanently delete document from recycle bin. |
XWikiDeletedDocument[] |
getAllDeletedDocuments(XWikiDocument doc,
XWikiContext context,
boolean bTransaction)
|
XWikiDeletedDocument |
getDeletedDocument(XWikiDocument doc,
long index,
XWikiContext context,
boolean bTransaction)
|
XWikiDocument |
restoreFromRecycleBin(XWikiDocument doc,
long index,
XWikiContext context,
boolean bTransaction)
|
void |
saveToRecycleBin(XWikiDocument doc,
String deleter,
Date date,
XWikiContext context,
boolean bTransaction)
Save document to recycle bin. |
Method Detail |
---|
void saveToRecycleBin(XWikiDocument doc, String deleter, Date date, XWikiContext context, boolean bTransaction) throws XWikiException
doc
- - document to savedeleter
- - the user which delete documentdate
- - date of delete actionbTransaction
- - should use old transaction(false) or create new (true)context
- - used while saving
XWikiException
- if error in savingXWikiDocument restoreFromRecycleBin(XWikiDocument doc, long index, XWikiContext context, boolean bTransaction) throws XWikiException
doc
- - document to restoreindex
- - what deleted document to restore. see XWikiDeletedDocument.getId()
context
- - used while loadingbTransaction
- - should use old transaction(false) or create new (true)
XWikiException
- if error while loadingXWikiDeletedDocument getDeletedDocument(XWikiDocument doc, long index, XWikiContext context, boolean bTransaction) throws XWikiException
doc
- - deleted documentindex
- - what deleted document to restore. see XWikiDeletedDocument.getId()
context
- - used while loadingbTransaction
- - should use old transaction(false) or create new (true)
XWikiException
- if error while loadingXWikiDeletedDocument[] getAllDeletedDocuments(XWikiDocument doc, XWikiContext context, boolean bTransaction) throws XWikiException
doc
- - the deleted documentcontext
- - used to loadbTransaction
- - should use old transaction(false) or create new (true)
XWikiException
- - if error in loadingvoid deleteFromRecycleBin(XWikiDocument doc, long index, XWikiContext context, boolean bTransaction) throws XWikiException
doc
- - document to deleteindex
- - which instance document in recycle bin to deletecontext
- - used for environmentbTransaction
- - should use old transaction(false) or create new (true)
XWikiException
- if eny error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |