Class GroupRoleHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addRole​(java.lang.String strGroupKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Assign a role to group
      static java.util.List<java.lang.String> findGroupRoles​(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find group's roles
      static java.util.List<java.lang.String> findGroupRolesByRoleKey​(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find group's roles
      static void removeRoles​(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete groups for a group
      • Methods inherited from class java.lang.Object

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

      • findGroupRoles

        public static java.util.List<java.lang.String> findGroupRoles​(java.lang.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 java.util.List<java.lang.String> findGroupRolesByRoleKey​(java.lang.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​(java.lang.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​(java.lang.String strGroupKey,
                                   java.lang.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