|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.store.XWikiHibernateBaseStore
com.xpn.xwiki.store.hibernate.HibernateAttachmentVersioningStore
@Component @Named(value="hibernate") @Singleton public class HibernateAttachmentVersioningStore
Realization of AttachmentVersioningStore
for Hibernate-based storage.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.xpn.xwiki.store.XWikiHibernateBaseStore |
---|
XWikiHibernateBaseStore.HibernateCallback<T> |
Field Summary |
---|
Fields inherited from class com.xpn.xwiki.store.XWikiHibernateBaseStore |
---|
loggerManager |
Constructor Summary | |
---|---|
HibernateAttachmentVersioningStore()
Empty constructor needed for component manager. |
|
HibernateAttachmentVersioningStore(XWikiContext context)
Deprecated. 1.6M1. Use ComponentManager.lookup(AttachmentVersioningStore.class) instead. |
Method Summary | |
---|---|
void |
deleteArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
Permanently delete attachment archive. |
XWikiAttachmentArchive |
loadArchive(XWikiAttachment attachment,
XWikiContext context,
boolean bTransaction)
Load attachment archive from store. |
void |
saveArchive(XWikiAttachmentArchive archive,
XWikiContext context,
boolean bTransaction)
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 HibernateAttachmentVersioningStore(XWikiContext context)
context
- the current context.public HibernateAttachmentVersioningStore()
Method Detail |
---|
public XWikiAttachmentArchive loadArchive(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) throws XWikiException
AttachmentVersioningStore
loadArchive
in interface AttachmentVersioningStore
attachment
- The attachment of archive.context
- The current context.bTransaction
- Should use old transaction (false) or create new (true).
XWikiException
- If an error occurs.public void saveArchive(XWikiAttachmentArchive archive, XWikiContext context, boolean bTransaction) throws XWikiException
AttachmentVersioningStore
saveArchive
in interface AttachmentVersioningStore
archive
- The attachment archive to save.context
- The current context.bTransaction
- Should use old transaction (false) or create new (true).
XWikiException
- If an error occurs.public void deleteArchive(XWikiAttachment attachment, XWikiContext context, boolean bTransaction) throws XWikiException
AttachmentVersioningStore
deleteArchive
in interface AttachmentVersioningStore
attachment
- The attachment to delete.context
- The current context.bTransaction
- 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 |