Class RoleTestUtil

Object
com.liferay.portal.kernel.test.util.RoleTestUtil

public class RoleTestUtil extends Object
Author:
Roberto Díaz
  • Constructor Details

    • RoleTestUtil

      public RoleTestUtil()
  • Method Details

    • 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(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

      public static com.liferay.portal.kernel.model.Role addRole(int roleType) throws Exception
      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