public class RoleTestUtil
extends Object
Constructor and Description |
---|
RoleTestUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
addGroupRole(long groupId) |
static long |
addOrganizationRole(long groupId) |
static long |
addRegularRole(long groupId) |
static void |
addResourcePermission(com.liferay.portal.kernel.model.Role role,
String resourceName,
int scope,
String primKey,
String actionId) |
static void |
addResourcePermission(String roleName,
String resourceName,
int scope,
String primKey,
String actionId) |
static com.liferay.portal.kernel.model.Role |
addRole(int roleType) |
static com.liferay.portal.kernel.model.Role |
addRole(String roleName,
int roleType) |
static com.liferay.portal.kernel.model.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) |
public static long addGroupRole(long groupId) throws Exception
Exception
public static long addOrganizationRole(long groupId) throws Exception
Exception
public static long addRegularRole(long groupId) throws Exception
Exception
public static void addResourcePermission(com.liferay.portal.kernel.model.Role role, String resourceName, int scope, String primKey, String actionId) throws Exception
Exception
public static void addResourcePermission(String roleName, String resourceName, int scope, String primKey, String actionId) throws Exception
Exception
public static com.liferay.portal.kernel.model.Role addRole(int roleType) throws Exception
Exception
public static com.liferay.portal.kernel.model.Role addRole(String roleName, int roleType) throws Exception
Exception
public static com.liferay.portal.kernel.model.Role addRole(String roleName, int roleType, String resourceName, int scope, String primKey, String actionId) throws Exception
Exception
public static void removeResourcePermission(String roleName, String resourceName, int scope, String primKey, String actionId) throws Exception
Exception