java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.GroupRoleDAO
All Implemented Interfaces:
IGroupRoleDAO

@ApplicationScoped @Named("mylutece-database.databaseGroupRoleDAO") public class GroupRoleDAO extends Object implements IGroupRoleDAO
This class provides Data Access methods for Group objects
  • Field Details

  • Constructor Details

    • GroupRoleDAO

      public GroupRoleDAO()
  • Method Details

    • selectGroupRoles

      public List<String> selectGroupRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find group's roles
      Specified by:
      selectGroupRoles in interface IGroupRoleDAO
      Parameters:
      strGroupKey - the group key
      plugin - Plugin
      Returns:
      ArrayList the roles key list corresponding to the group
    • selectGroupRolesByRoleKey

      public List<String> selectGroupRolesByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find group's roles
      Specified by:
      selectGroupRolesByRoleKey in interface IGroupRoleDAO
      Parameters:
      strRoleKey - The Role key
      plugin - Plugin
      Returns:
      ArrayList the groups key list corresponding to the role
    • deleteRoles

      public void deleteRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete roles for a group
      Specified by:
      deleteRoles in interface IGroupRoleDAO
      Parameters:
      strGroupKey - The key of the group
      plugin - Plugin
    • createRole

      public void createRole(String strGroupKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Assign a role to group
      Specified by:
      createRole in interface IGroupRoleDAO
      Parameters:
      strGroupKey - The key of the group
      strRoleKey - The key of the role
      plugin - Plugin