Class HibernatePageAncestorManager
java.lang.Object
com.atlassian.confluence.pages.ancestors.HibernatePageAncestorManager
- All Implemented Interfaces:
PageAncestorManager
Stores page ancestors in the ANCESTORS table in the database. Normally this happens
automatically via Hibernate relationships, but sometimes we need to do manual work
to restore the relationships.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEvent(AncestorsUpdateEvent ancestorsUpdateEvent) voidRebuilds all the ancestors for all pages in the Confluence instance.voidrebuildSpace(Space space) Rebuilds all the ancestors for pages within the given space.voidsetBatchOperationManager(BatchOperationManager batchOperationManager) voidsetCacheFactory(com.atlassian.cache.CacheFactory ignored) Deprecated.since 5.10.voidsetSessionFactory(org.hibernate.SessionFactory sessionFactory)
-
Constructor Details
-
HibernatePageAncestorManager
public HibernatePageAncestorManager()
-
-
Method Details
-
rebuildAll
Description copied from interface:PageAncestorManagerRebuilds all the ancestors for all pages in the Confluence instance. This could take a while.- Specified by:
rebuildAllin interfacePageAncestorManager- Throws:
AncestorRebuildException- if errors occurred during the ancestor rebuilding
-
rebuildSpace
Description copied from interface:PageAncestorManagerRebuilds all the ancestors for pages within the given space. This could take a while.- Specified by:
rebuildSpacein interfacePageAncestorManager- Parameters:
space- the space in which ancestors will be rebuilt- Throws:
AncestorRebuildException- if errors occurred during the ancestor rebuilding
-
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory) -
setCacheFactory
Deprecated.since 5.10. No longer used. -
setBatchOperationManager
-
handleEvent
-