@Component @Named(value="void") @Singleton public class VoidAttachmentVersioningStore extends Object implements AttachmentVersioningStore
Modifier and Type | Class and Description |
---|---|
static class |
VoidAttachmentVersioningStore.VoidAttachmentArchive
Void realization of AttachmentArchive.
|
Constructor and Description |
---|
VoidAttachmentVersioningStore()
Empty constructor needed for component manager.
|
VoidAttachmentVersioningStore(XWikiContext context)
Deprecated.
1.6M1. Use ComponentManager.lookup(AttachmentVersioningStore.class) instead.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteArchive(XWikiAttachment attachment,
XWikiContext context,
boolean transaction)
Permanently delete attachment archive.
|
String |
getHint() |
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.
|
@Deprecated public VoidAttachmentVersioningStore(XWikiContext context)
XWiki
during storage initialization.context
- The current context.public VoidAttachmentVersioningStore()
public String getHint()
getHint
in interface AttachmentVersioningStore
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.Copyright © 2004–2022 XWiki. All rights reserved.