com.atlassian.confluence.upgrade.security
Class LegacyContentPermissionUpgrader

java.lang.Object
  extended by com.atlassian.confluence.upgrade.security.LegacyContentPermissionUpgrader

public class LegacyContentPermissionUpgrader
extends Object

Upgrades old ContentPermissions stored in the CONTENTLOCK table to new ContentPermissions and ContentPermissionsSets stored in the CONTENT_PERM and CONTENT_PERM_SET tables. This allows us to implement MultiplePagePermissions. That is, it allows us to store multiple permissions per page per permission type.


Field Summary
static org.apache.log4j.Category log
           
 
Constructor Summary
LegacyContentPermissionUpgrader()
           
 
Method Summary
 PageDao getPageDao()
           
 net.sf.hibernate.SessionFactory getSessionFactory()
           
 void run()
           
 void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
           
 void setPageDao(PageDao pageDao)
           
 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
 

Field Detail

log

public static final org.apache.log4j.Category log
Constructor Detail

LegacyContentPermissionUpgrader

public LegacyContentPermissionUpgrader()
Method Detail

run

public void run()
         throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

setContentPermissionManager

public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)

getSessionFactory

public net.sf.hibernate.SessionFactory getSessionFactory()

setSessionFactory

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

getPageDao

public PageDao getPageDao()

setPageDao

public void setPageDao(PageDao pageDao)


Copyright © 2003-2011 Atlassian. All Rights Reserved.