com.liferay.portal.upgrade.v6_1_0
Class UpgradePermission

java.lang.Object
  extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
      extended by com.liferay.portal.upgrade.v6_1_0.UpgradePermission

public class UpgradePermission
extends com.liferay.portal.kernel.upgrade.UpgradeProcess

Author:
Alexander Chow, Connor McKay

Constructor Summary
UpgradePermission()
           
 
Method Summary
protected  com.liferay.portal.model.ResourceBlock convertResourcePermissions(long companyId, java.lang.String name, long primKey)
           
protected  void convertResourcePermissions(java.lang.String name, java.lang.String tableName, java.lang.String pkColumnName)
           
protected  void doUpgrade()
           
protected  com.liferay.portal.model.ResourceBlockPermissionsContainer getResourceBlockPermissionsContainer(long companyId, long groupId, java.lang.String name, long primKey)
           
protected  void updatePermissions_1to5(java.lang.String name, boolean community, boolean guest)
           
protected  void updatePermissions_6(java.lang.String name, boolean community, boolean guest)
           
protected  void updatePermissions(java.lang.String name, boolean community, boolean guest)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
getThreshold, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, runSQL, runSQL, runSQLTemplate, runSQLTemplate, tableHasColumn, tableHasData, upgrade, upgrade, upgrade
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradePermission

public UpgradePermission()
Method Detail

convertResourcePermissions

protected com.liferay.portal.model.ResourceBlock convertResourcePermissions(long companyId,
                                                                            java.lang.String name,
                                                                            long primKey)
                                                                     throws com.liferay.portal.kernel.exception.PortalException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

convertResourcePermissions

protected void convertResourcePermissions(java.lang.String name,
                                          java.lang.String tableName,
                                          java.lang.String pkColumnName)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

doUpgrade

protected void doUpgrade()
                  throws java.lang.Exception
Overrides:
doUpgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcess
Throws:
java.lang.Exception

getResourceBlockPermissionsContainer

protected com.liferay.portal.model.ResourceBlockPermissionsContainer getResourceBlockPermissionsContainer(long companyId,
                                                                                                          long groupId,
                                                                                                          java.lang.String name,
                                                                                                          long primKey)
                                                                                                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updatePermissions

protected void updatePermissions(java.lang.String name,
                                 boolean community,
                                 boolean guest)
                          throws java.lang.Exception
Throws:
java.lang.Exception

updatePermissions_1to5

protected void updatePermissions_1to5(java.lang.String name,
                                      boolean community,
                                      boolean guest)
                               throws java.lang.Exception
Throws:
java.lang.Exception

updatePermissions_6

protected void updatePermissions_6(java.lang.String name,
                                   boolean community,
                                   boolean guest)
                            throws java.lang.Exception
Throws:
java.lang.Exception