|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.store.VoidAttachmentVersioningStore
@Component @Named(value="void") @Singleton public class VoidAttachmentVersioningStore
Void store for attachment versioning when it is disabled. ("xwiki.store.attachment.versioning=0" parameter is set in xwiki.cfg) It says what there is only one version of attachment - latest. It doesn't store anything. It is safe to use with any stores.
Nested Class Summary | |
---|---|
static class |
VoidAttachmentVersioningStore.VoidAttachmentArchive
Void realization of AttachmentArchive. |
Constructor Summary | |
---|---|
VoidAttachmentVersioningStore()
Empty constructor needed for component manager. |
|
VoidAttachmentVersioningStore(XWikiContext context)
Deprecated. 1.6M1. Use ComponentManager.lookup(AttachmentVersioningStore.class) instead. |
Method Summary | |
---|---|
void |
deleteArchive(XWikiAttachment attachment,
XWikiContext context,
boolean transaction)
Permanently delete attachment archive. |
XWikiAttachmentArchive |
loadArchive(XWikiAttachment attachment,
XWikiContext context,
boolean transaction)
Load attachment archive from store. |
void |
saveArchive(XWikiAttachmentArchive archive,
XWikiContext context,
boolean transaction)
Save or update attachment archive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public VoidAttachmentVersioningStore(XWikiContext context)
XWiki
during storage initialization.
context
- The current context.public VoidAttachmentVersioningStore()
Method Detail |
---|
public void deleteArchive(XWikiAttachment attachment, XWikiContext context, boolean transaction) throws XWikiException
AttachmentVersioningStore
deleteArchive
in interface AttachmentVersioningStore
attachment
- The attachment to delete.context
- The current context.transaction
- Should use old transaction (false) or create new (true).
XWikiException
- If an error occurs.public void saveArchive(XWikiAttachmentArchive archive, XWikiContext context, boolean transaction) throws XWikiException
AttachmentVersioningStore
saveArchive
in interface AttachmentVersioningStore
archive
- The attachment archive to save.context
- The current context.transaction
- Should use old transaction (false) or create new (true).
XWikiException
- If an error occurs.public XWikiAttachmentArchive loadArchive(XWikiAttachment attachment, XWikiContext context, boolean transaction) throws XWikiException
AttachmentVersioningStore
loadArchive
in interface AttachmentVersioningStore
attachment
- The attachment of archive.context
- The current context.transaction
- Should use old transaction (false) or create new (true).
XWikiException
- If an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |