Class GroupRoleDAO

  • All Implemented Interfaces:
    IGroupRoleDAO

    public class GroupRoleDAO
    extends java.lang.Object
    implements IGroupRoleDAO
    This class provides Data Access methods for Group objects
    • Constructor Summary

      Constructors 
      Constructor Description
      GroupRoleDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createRole​(java.lang.String strGroupKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Assign a role to group
      void deleteRoles​(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete roles for a group
      java.util.List<java.lang.String> selectGroupRoles​(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find group's roles
      java.util.List<java.lang.String> selectGroupRolesByRoleKey​(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find group's roles
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SQL_QUERY_FIND_ROLES_FROM_GROUP_ID

        public static final java.lang.String SQL_QUERY_FIND_ROLES_FROM_GROUP_ID
        See Also:
        Constant Field Values
      • SQL_QUERY_FIND_GROUPS_FROM_ROLE_ID

        public static final java.lang.String SQL_QUERY_FIND_GROUPS_FROM_ROLE_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • GroupRoleDAO

        public GroupRoleDAO()
    • Method Detail

      • selectGroupRoles

        public java.util.List<java.lang.String> selectGroupRoles​(java.lang.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 java.util.List<java.lang.String> selectGroupRolesByRoleKey​(java.lang.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​(java.lang.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​(java.lang.String strGroupKey,
                               java.lang.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