|
||||||||||
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.XWikiHibernateVersioningStore
@Component @Named(value="hibernate") @Singleton public class XWikiHibernateVersioningStore
Realization of XWikiVersioningStoreInterface
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 | |
---|---|
XWikiHibernateVersioningStore()
Empty constructor needed for component manager. |
|
XWikiHibernateVersioningStore(String hibpath)
Deprecated. 1.6M1. use ComponentManager.lookup(XWikiVersioningStoreInterface.class) instead. |
|
XWikiHibernateVersioningStore(XWikiContext context)
Deprecated. 1.6M1. use ComponentManager.lookup(XWikiVersioningStoreInterface.class) instead. |
|
XWikiHibernateVersioningStore(XWiki xwiki,
XWikiContext context)
Deprecated. 1.6M1. use ComponentManager.lookup(XWikiVersioningStoreInterface.class) instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public XWikiHibernateVersioningStore(XWiki xwiki, XWikiContext context)
xwiki
- The xwiki objectcontext
- The current context@Deprecated public XWikiHibernateVersioningStore(String hibpath)
hibpath
- path to hibernate.hbm.xml file@Deprecated public XWikiHibernateVersioningStore(XWikiContext context)
context
- The current contextXWikiHibernateVersioningStore(XWiki, XWikiContext)
public XWikiHibernateVersioningStore()
Method Detail |
---|
public org.suigeneris.jrcs.rcs.Version[] getXWikiDocVersions(XWikiDocument doc, XWikiContext context) throws XWikiException
getXWikiDocVersions
in interface XWikiVersioningStoreInterface
XWikiException
public XWikiDocumentArchive getXWikiDocumentArchive(XWikiDocument doc, XWikiContext context) throws XWikiException
getXWikiDocumentArchive
in interface XWikiVersioningStoreInterface
XWikiException
public void loadXWikiDocArchive(XWikiDocumentArchive archivedoc, boolean bTransaction, XWikiContext context) throws XWikiException
loadXWikiDocArchive
in interface XWikiVersioningStoreInterface
XWikiException
public void saveXWikiDocArchive(XWikiDocumentArchive archivedoc, boolean bTransaction, XWikiContext context) throws XWikiException
saveXWikiDocArchive
in interface XWikiVersioningStoreInterface
XWikiException
public XWikiDocument loadXWikiDoc(XWikiDocument basedoc, String sversion, XWikiContext context) throws XWikiException
loadXWikiDoc
in interface XWikiVersioningStoreInterface
XWikiException
public void resetRCSArchive(XWikiDocument doc, boolean bTransaction, XWikiContext context) throws XWikiException
resetRCSArchive
in interface XWikiVersioningStoreInterface
XWikiException
public void updateXWikiDocArchive(XWikiDocument doc, boolean bTransaction, XWikiContext context) throws XWikiException
updateXWikiDocArchive
in interface XWikiVersioningStoreInterface
XWikiException
protected List<XWikiRCSNodeInfo> loadAllRCSNodeInfo(XWikiContext context, long id, boolean bTransaction) throws XWikiException
context
- the XWiki contextid
- XWikiRCSNodeContent.getId()
bTransaction
- should store to use old transaction(false) or create new (true)
XWikiException
- if any errorpublic XWikiRCSNodeContent loadRCSNodeContent(XWikiRCSNodeId id, boolean bTransaction, XWikiContext context) throws XWikiException
XWikiVersioningStoreInterface
XWikiRCSNodeContent
by demand. Used in XWikiRCSNodeInfo#getContent(XWikiContext)
loadRCSNodeContent
in interface XWikiVersioningStoreInterface
id
- = XWikiRCSNodeContent.getId()
XWikiException
public void deleteArchive(XWikiDocument doc, boolean bTransaction, XWikiContext context) throws XWikiException
XWikiVersioningStoreInterface
deleteArchive
in interface XWikiVersioningStoreInterface
doc
- - deleted document
XWikiException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |