java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.GroupRoleHome

public final class GroupRoleHome extends Object
This class provides instances management methods (create, find, ...) for Group right objects
  • Method Details

    • findGroupRoles

      public static List<String> findGroupRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find group's roles
      Parameters:
      strGroupKey - the login
      plugin - Plugin
      Returns:
      ArrayList the role key list corresponding to the group
    • findGroupRolesByRoleKey

      public static List<String> findGroupRolesByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find group's roles
      Parameters:
      strRoleKey - The Role key
      plugin - Plugin
      Returns:
      ArrayList the groups key list corresponding to the role
    • removeRoles

      public static void removeRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete groups for a group
      Parameters:
      strGroupKey - The key of the group
      plugin - Plugin
    • addRole

      public static void addRole(String strGroupKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Assign a role to group
      Parameters:
      strGroupKey - The key of the group
      strRoleKey - The key of the role
      plugin - Plugin