com.liferay.portal.kernel.test.util
Class RoleTestUtil
java.lang.Object
com.liferay.portal.kernel.test.util.RoleTestUtil
public class RoleTestUtil
- extends Object
|
Method Summary |
static long |
addGroupRole(long groupId)
|
static long |
addOrganizationRole(long groupId)
|
static long |
addRegularRole(long groupId)
|
static void |
addResourcePermission(Role role,
String resourceName,
int scope,
String primKey,
String actionId)
|
static void |
addResourcePermission(String roleName,
String resourceName,
int scope,
String primKey,
String actionId)
|
static Role |
addRole(int roleType)
|
static Role |
addRole(String roleName,
int roleType)
|
static Role |
addRole(String roleName,
int roleType,
String resourceName,
int scope,
String primKey,
String actionId)
|
static void |
removeResourcePermission(String roleName,
String resourceName,
int scope,
String primKey,
String actionId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleTestUtil
public RoleTestUtil()
addGroupRole
public static long addGroupRole(long groupId)
throws Exception
- Throws:
Exception
addOrganizationRole
public static long addOrganizationRole(long groupId)
throws Exception
- Throws:
Exception
addRegularRole
public static long addRegularRole(long groupId)
throws Exception
- Throws:
Exception
addResourcePermission
public static void addResourcePermission(Role role,
String resourceName,
int scope,
String primKey,
String actionId)
throws Exception
- Throws:
Exception
addResourcePermission
public static void addResourcePermission(String roleName,
String resourceName,
int scope,
String primKey,
String actionId)
throws Exception
- Throws:
Exception
addRole
public static Role addRole(int roleType)
throws Exception
- Throws:
Exception
addRole
public static Role addRole(String roleName,
int roleType)
throws Exception
- Throws:
Exception
addRole
public static Role addRole(String roleName,
int roleType,
String resourceName,
int scope,
String primKey,
String actionId)
throws Exception
- Throws:
Exception
removeResourcePermission
public static void removeResourcePermission(String roleName,
String resourceName,
int scope,
String primKey,
String actionId)
throws Exception
- Throws:
Exception