fr.paris.lutece.plugins.mylutece.modules.database.authentication.business
Class GroupRoleHome

java.lang.Object
  extended by 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 Summary
static void addRole(String strGroupKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Assign a role to group
static List<String> findGroupRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find group's roles
static List<String> findGroupRolesByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find group's roles
static void removeRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete groups for a group
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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


Copyright © 2014 Mairie de Paris. All Rights Reserved.