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

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

public final class GroupRoleDAO
extends java.lang.Object
implements IGroupRoleDAO

This class provides Data Access methods for Group objects


Field Summary
static java.lang.String SQL_QUERY_FIND_GROUPS_FROM_ROLE_ID
           
static java.lang.String SQL_QUERY_FIND_ROLES_FROM_GROUP_ID
           
 
Constructor Summary
GroupRoleDAO()
           
 
Method Summary
 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
clone, equals, finalize, 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


Copyright © 2010 Mairie de Paris. All Rights Reserved.