Liferay 6.2-ce-ga5

com.liferay.portal.upgrade.v6_1_0
Class UpgradePermission

java.lang.Object
  extended by com.liferay.portal.kernel.dao.db.BaseDBProcess
      extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
          extended by com.liferay.portal.upgrade.v6_1_0.UpgradePermission
All Implemented Interfaces:
DBProcess
Direct Known Subclasses:
UpgradePermission

public class UpgradePermission
extends UpgradeProcess


Constructor Summary
UpgradePermission()
           
 
Method Summary
protected  ResourceBlock convertResourcePermissions(String tableName, String pkColumnName, long companyId, long groupId, String name, long primKey)
           
protected  void convertResourcePermissions(String name, String tableName, String pkColumnName)
           
protected  void doUpgrade()
           
protected  ResourceBlockPermissionsContainer getResourceBlockPermissionsContainer(long companyId, long groupId, String name, long primKey)
           
protected  void updatePermissions(String name, boolean community, boolean guest)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
doHasTable, getThreshold, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, tableHasColumn, tableHasData, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
 
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
runSQL, runSQL, runSQLTemplate, runSQLTemplate
 
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 ResourceBlock convertResourcePermissions(String tableName,
                                                   String pkColumnName,
                                                   long companyId,
                                                   long groupId,
                                                   String name,
                                                   long primKey)
                                            throws SystemException
Throws:
SystemException

convertResourcePermissions

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

doUpgrade

protected void doUpgrade()
                  throws Exception
Overrides:
doUpgrade in class UpgradeProcess
Throws:
Exception

getResourceBlockPermissionsContainer

protected ResourceBlockPermissionsContainer getResourceBlockPermissionsContainer(long companyId,
                                                                                 long groupId,
                                                                                 String name,
                                                                                 long primKey)
                                                                          throws SystemException
Throws:
SystemException

updatePermissions

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

Liferay 6.2-ce-ga5