Liferay 6.0.5

com.liferay.portal.upgrade.v4_3_5
Class UpgradePermission

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

public class UpgradePermission
extends UpgradeProcess


Constructor Summary
UpgradePermission()
           
 
Method Summary
protected  void copyPermissions(long defaultUserId, long guestGroupId)
           
protected  void deletePermissionIds(List<Long> permissionIds, long guestGroupId)
           
protected  void deletePermissionIds(String className, String tableName, String tablePKCol, long guestGroupId)
           
protected  void deletePermissionIds(String className, String tableName1, String tablePKCol1, String tableName2, String tablePKCol2, long guestGroupId)
           
protected  void deletePortletPermissionIds(long plid, long guestGroupId)
           
protected  void doUpgrade()
           
protected  long getDefaultUserId(long companyId)
           
protected  long getGuestGroupId(long companyId)
           
protected  List<Long> getPermissionIds(String primKey, long guestGroupId)
           
protected  List<Long> getPermissionIds(String className, String primKey, long guestGroupId)
           
protected  List<Long> getPermissionIds(String className, String tableName, String tablePKCol, long guestGroupId)
           
protected  List<Long> getPermissionIds(String className, String tableName1, String tablePKCol1, String tableName2, String tablePKCol2, long guestGroupId)
           
protected  List<Long> getPlids(long guestGroupId)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
getThreshold, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, runSQL, runSQL, runSQLTemplate, runSQLTemplate, 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

copyPermissions

protected void copyPermissions(long defaultUserId,
                               long guestGroupId)
                        throws Exception
Throws:
Exception

deletePermissionIds

protected void deletePermissionIds(String className,
                                   String tableName,
                                   String tablePKCol,
                                   long guestGroupId)
                            throws Exception
Throws:
Exception

deletePermissionIds

protected void deletePermissionIds(String className,
                                   String tableName1,
                                   String tablePKCol1,
                                   String tableName2,
                                   String tablePKCol2,
                                   long guestGroupId)
                            throws Exception
Throws:
Exception

deletePermissionIds

protected void deletePermissionIds(List<Long> permissionIds,
                                   long guestGroupId)
                            throws Exception
Throws:
Exception

deletePortletPermissionIds

protected void deletePortletPermissionIds(long plid,
                                          long guestGroupId)
                                   throws Exception
Throws:
Exception

doUpgrade

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

getDefaultUserId

protected long getDefaultUserId(long companyId)
                         throws Exception
Throws:
Exception

getGuestGroupId

protected long getGuestGroupId(long companyId)
                        throws Exception
Throws:
Exception

getPermissionIds

protected List<Long> getPermissionIds(String primKey,
                                      long guestGroupId)
                               throws Exception
Throws:
Exception

getPermissionIds

protected List<Long> getPermissionIds(String className,
                                      String tableName,
                                      String tablePKCol,
                                      long guestGroupId)
                               throws Exception
Throws:
Exception

getPermissionIds

protected List<Long> getPermissionIds(String className,
                                      String tableName1,
                                      String tablePKCol1,
                                      String tableName2,
                                      String tablePKCol2,
                                      long guestGroupId)
                               throws Exception
Throws:
Exception

getPermissionIds

protected List<Long> getPermissionIds(String className,
                                      String primKey,
                                      long guestGroupId)
                               throws Exception
Throws:
Exception

getPlids

protected List<Long> getPlids(long guestGroupId)
                       throws Exception
Throws:
Exception

Liferay 6.0.5