Class GroupRoleDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.GroupRoleDAO
-
- All Implemented Interfaces:
IGroupRoleDAO
public class GroupRoleDAO extends java.lang.Object implements IGroupRoleDAO
This class provides Data Access methods for Group objects
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSQL_QUERY_FIND_GROUPS_FROM_ROLE_IDstatic java.lang.StringSQL_QUERY_FIND_ROLES_FROM_GROUP_ID
-
Constructor Summary
Constructors Constructor Description GroupRoleDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateRole(java.lang.String strGroupKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Assign a role to groupvoiddeleteRoles(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete roles for a groupjava.util.List<java.lang.String>selectGroupRoles(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find group's rolesjava.util.List<java.lang.String>selectGroupRolesByRoleKey(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find group's roles
-
-
-
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
-
-
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:
selectGroupRolesin interfaceIGroupRoleDAO- Parameters:
strGroupKey- the group keyplugin- 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:
selectGroupRolesByRoleKeyin interfaceIGroupRoleDAO- Parameters:
strRoleKey- The Role keyplugin- 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:
deleteRolesin interfaceIGroupRoleDAO- Parameters:
strGroupKey- The key of the groupplugin- 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:
createRolein interfaceIGroupRoleDAO- Parameters:
strGroupKey- The key of the groupstrRoleKey- The key of the roleplugin- Plugin
-
-