Class RoleTestUtil
Object
com.liferay.portal.kernel.test.util.RoleTestUtil
- Author:
- Roberto Díaz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longaddGroupRole(long groupId) static longaddOrganizationRole(long groupId) static longaddRegularRole(long groupId) static voidaddResourcePermission(com.liferay.portal.kernel.model.Role role, String resourceName, int scope, String primKey, String actionId) static voidaddResourcePermission(String roleName, String resourceName, int scope, String primKey, String actionId) static com.liferay.portal.kernel.model.RoleaddRole(int roleType) static com.liferay.portal.kernel.model.Rolestatic com.liferay.portal.kernel.model.RoleaddRole(String roleName, int roleType, String resourceName, int scope, String primKey, String actionId) static voidremoveResourcePermission(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
-