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 voidhandleEvent(AncestorsUpdateEvent ancestorsUpdateEvent)voidrebuildAll()Rebuilds 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)
-
-
-
Method Detail
-
rebuildAll
public void rebuildAll() throws AncestorRebuildExceptionDescription 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
public void rebuildSpace(Space space) throws AncestorRebuildException
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 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)
-
-