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 TypeMethodDescriptionvoid
handleEvent
(AncestorsUpdateEvent ancestorsUpdateEvent) void
Rebuilds all the ancestors for all pages in the Confluence instance.void
rebuildSpace
(Space space) Rebuilds all the ancestors for pages within the given space.void
setBatchOperationManager
(BatchOperationManager batchOperationManager) void
setCacheFactory
(com.atlassian.cache.CacheFactory ignored) Deprecated.since 5.10.void
setSessionFactory
(org.hibernate.SessionFactory sessionFactory)
-
Constructor Details
-
HibernatePageAncestorManager
public HibernatePageAncestorManager()
-
-
Method Details
-
rebuildAll
Description copied from interface:PageAncestorManager
Rebuilds all the ancestors for all pages in the Confluence instance. This could take a while.- Specified by:
rebuildAll
in interfacePageAncestorManager
- Throws:
AncestorRebuildException
- if errors occurred during the ancestor rebuilding
-
rebuildSpace
Description copied from interface:PageAncestorManager
Rebuilds all the ancestors for pages within the given space. This could take a while.- Specified by:
rebuildSpace
in 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
-