Class RoleTestUtil
Object
com.liferay.portal.kernel.test.util.RoleTestUtil
- Author:
- Roberto Díaz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
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)
-
Constructor Details
-
RoleTestUtil
public RoleTestUtil()
-
-
Method Details
-
addGroupRole
- Throws:
Exception
-
addOrganizationRole
- Throws:
Exception
-
addRegularRole
- Throws:
Exception
-
addResourcePermission
public static void addResourcePermission(com.liferay.portal.kernel.model.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
- Throws:
Exception
-
addRole
public static com.liferay.portal.kernel.model.Role addRole(String roleName, int roleType) throws Exception - Throws:
Exception
-
addRole
public static com.liferay.portal.kernel.model.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
-