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

java.lang.Object
  extended by fr.paris.lutece.portal.business.group.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_ROLES_FROM_GROUP_ID
           
 
Constructor Summary
GroupRoleDAO()
           
 
Method Summary
 void createRole(java.lang.String strGroupKey, java.lang.String strRoleKey)
          Assign a role to group
 void deleteRoles(java.lang.String strGroupKey)
          Delete roles for a group
 java.util.ArrayList<java.lang.String> selectGroupRoles(java.lang.String strGroupKey)
          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
Constructor Detail

GroupRoleDAO

public GroupRoleDAO()
Method Detail

selectGroupRoles

public java.util.ArrayList<java.lang.String> selectGroupRoles(java.lang.String strGroupKey)
Find group's roles

Specified by:
selectGroupRoles in interface IGroupRoleDAO
Parameters:
strGroupKey - the group key
Returns:
ArrayList the roles key list corresponding to the group

deleteRoles

public void deleteRoles(java.lang.String strGroupKey)
Delete roles for a group

Specified by:
deleteRoles in interface IGroupRoleDAO
Parameters:
strGroupKey - The key of the group
plugin - The Plugin using this data access service

createRole

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

Specified by:
createRole in interface IGroupRoleDAO
Parameters:
strGroupKey - The key of the group
strRoleKey - The key of the role


Copyright © 2007 Mairie de Paris. All Rights Reserved.