Class HibernatePageAncestorManager
- java.lang.Object
-
- com.atlassian.confluence.pages.ancestors.HibernatePageAncestorManager
-
- All Implemented Interfaces:
PageAncestorManager
public class HibernatePageAncestorManager extends Object implements 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 Constructor Description HibernatePageAncestorManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
handleEvent(AncestorsUpdateEvent ancestorsUpdateEvent)
void
rebuildAll()
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)
-
-
-
Method Detail
-
rebuildAll
public void rebuildAll() throws AncestorRebuildException
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
public void rebuildSpace(Space space) throws AncestorRebuildException
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 public void setCacheFactory(com.atlassian.cache.CacheFactory ignored)
Deprecated.since 5.10. No longer used.
-
setBatchOperationManager
public void setBatchOperationManager(BatchOperationManager batchOperationManager)
-
handleEvent
@EventListener public void handleEvent(AncestorsUpdateEvent ancestorsUpdateEvent)
-
-