fr.paris.lutece.portal.business.group
Class GroupRoleHome

java.lang.Object
  extended by fr.paris.lutece.portal.business.group.GroupRoleHome

public final class GroupRoleHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Group right objects


Method Summary
static void addRole(java.lang.String strGroupKey, java.lang.String strRoleKey)
          Assign a role to group
static java.util.List<java.lang.String> findGroupRoles(java.lang.String strGroupKey)
          Find group's roles
static java.util.List<java.lang.String> findGroupRolesByRoleKey(java.lang.String strRoleKey)
          Find group's roles
static void removeRoles(java.lang.String strGroupKey)
          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 java.util.List<java.lang.String> findGroupRoles(java.lang.String strGroupKey)
Find group's roles

Parameters:
strGroupKey - the login
Returns:
ArrayList the role key list corresponding to the group

findGroupRolesByRoleKey

public static java.util.List<java.lang.String> findGroupRolesByRoleKey(java.lang.String strRoleKey)
Find group's roles

Parameters:
strRoleKey - The Role key
Returns:
ArrayList the groups key list corresponding to the role

removeRoles

public static void removeRoles(java.lang.String strGroupKey)
Delete groups for a group

Parameters:
strGroupKey - The key of the group

addRole

public static void addRole(java.lang.String strGroupKey,
                           java.lang.String strRoleKey)
Assign a role to group

Parameters:
strGroupKey - The key of the group
strRoleKey - The key of the role


Copyright © 2009 Mairie de Paris. All Rights Reserved.