com.atlassian.confluence.pages.ancestors
Class HibernatePageAncestorManager

java.lang.Object
  extended by com.atlassian.confluence.pages.ancestors.HibernatePageAncestorManager
All Implemented Interfaces:
PageAncestorManager

public class HibernatePageAncestorManager
extends java.lang.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
HibernatePageAncestorManager()
           
 
Method Summary
 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 setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
           
 void setPageManager(PageManager pageManager)
           
 void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernatePageAncestorManager

public HibernatePageAncestorManager()
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 interface PageAncestorManager
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 interface PageAncestorManager
Parameters:
space - the space in which ancestors will be rebuilt
Throws:
AncestorRebuildException - if errors occurred during the ancestor rebuilding

setSessionFactory

public void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)

setCacheFactory

public void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)

setPageManager

public void setPageManager(PageManager pageManager)


Copyright © 2003-2010 Atlassian. All Rights Reserved.