com.liferay.portal.upgrade.v6_1_0
Class UpgradeUserGroup
java.lang.Object
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.v6_1_0.UpgradeUserGroup
public class UpgradeUserGroup
- extends UpgradeProcess
|
Method Summary |
protected long |
addGroup(long companyId,
long creatorUserId,
String groupName,
long layoutSetPrototypeId)
|
protected long |
addLayoutSet(long layoutSetId,
long companyId,
long groupId,
long layoutSetPrototypeId,
UserGroupTemplateInfo userGroupTemplateInfo)
|
protected void |
addLayoutSetPrototype(long layoutSetPrototypeId,
long companyId,
String name)
|
protected void |
addPermission(long permissionId,
long companyId,
String actionId,
long resourceId)
|
protected void |
addPermissions(long companyId,
long userId,
long layoutSetPrototypeId)
|
protected long |
addResource(long resourceId,
long codeId,
long primKey)
|
protected void |
addResourcePermission(long resourcePermissionId,
long companyId,
String name,
long primKey,
long ownerId)
|
protected UserGroupTemplateInfo |
buildUserGroupsTemplatesInfo(ResultSet rs)
|
protected void |
doUpgrade()
|
protected long |
getActionIds(String name)
|
protected long |
getClassNameId(String className)
|
protected long |
getGroupId(long companyId,
long classNameId,
long classPK)
|
protected String |
getNameXML(String name)
|
protected long |
getRoleId(long companyId,
String name)
|
protected void |
updateLayout(long oldGroupId,
long newGroupId,
boolean privateLayout)
|
protected void |
updateUserGroup()
|
protected void |
updateUserGroup(long userGroupId,
boolean privateLayout,
long layoutSetPrototypeId)
|
| 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 |
UpgradeUserGroup
public UpgradeUserGroup()
addGroup
protected long addGroup(long companyId,
long creatorUserId,
String groupName,
long layoutSetPrototypeId)
throws Exception
- Throws:
Exception
addLayoutSet
protected long addLayoutSet(long layoutSetId,
long companyId,
long groupId,
long layoutSetPrototypeId,
UserGroupTemplateInfo userGroupTemplateInfo)
throws Exception
- Throws:
Exception
addLayoutSetPrototype
protected void addLayoutSetPrototype(long layoutSetPrototypeId,
long companyId,
String name)
throws Exception
- Throws:
Exception
addPermission
protected void addPermission(long permissionId,
long companyId,
String actionId,
long resourceId)
throws Exception
- Throws:
Exception
addPermissions
protected void addPermissions(long companyId,
long userId,
long layoutSetPrototypeId)
throws Exception
- Throws:
Exception
addResource
protected long addResource(long resourceId,
long codeId,
long primKey)
throws Exception
- Throws:
Exception
addResourcePermission
protected void addResourcePermission(long resourcePermissionId,
long companyId,
String name,
long primKey,
long ownerId)
throws Exception
- Throws:
Exception
buildUserGroupsTemplatesInfo
protected UserGroupTemplateInfo buildUserGroupsTemplatesInfo(ResultSet rs)
throws Exception
- Throws:
Exception
doUpgrade
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade in class UpgradeProcess
- Throws:
Exception
updateUserGroup
protected void updateUserGroup()
throws Exception
- Throws:
Exception
getActionIds
protected long getActionIds(String name)
throws Exception
- Throws:
Exception
getClassNameId
protected long getClassNameId(String className)
throws Exception
- Throws:
Exception
getGroupId
protected long getGroupId(long companyId,
long classNameId,
long classPK)
throws Exception
- Throws:
Exception
getNameXML
protected String getNameXML(String name)
getRoleId
protected long getRoleId(long companyId,
String name)
throws Exception
- Throws:
Exception
updateLayout
protected void updateLayout(long oldGroupId,
long newGroupId,
boolean privateLayout)
throws Exception
- Throws:
Exception
updateUserGroup
protected void updateUserGroup(long userGroupId,
boolean privateLayout,
long layoutSetPrototypeId)
throws Exception
- Throws:
Exception