public class GroupRoleDAO extends Object implements IGroupRoleDAO
Modifier and Type | Field and Description |
---|---|
static String |
SQL_QUERY_FIND_GROUPS_FROM_ROLE_ID |
static String |
SQL_QUERY_FIND_ROLES_FROM_GROUP_ID |
Constructor and Description |
---|
GroupRoleDAO() |
Modifier and Type | Method and Description |
---|---|
void |
createRole(String strGroupKey,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Assign a role to group
|
void |
deleteRoles(String strGroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete roles for a group
|
List<String> |
selectGroupRoles(String strGroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find group's roles
|
List<String> |
selectGroupRolesByRoleKey(String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find group's roles
|
public static final String SQL_QUERY_FIND_ROLES_FROM_GROUP_ID
public static final String SQL_QUERY_FIND_GROUPS_FROM_ROLE_ID
public List<String> selectGroupRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectGroupRoles
in interface IGroupRoleDAO
strGroupKey
- the group keyplugin
- Pluginpublic List<String> selectGroupRolesByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectGroupRolesByRoleKey
in interface IGroupRoleDAO
strRoleKey
- The Role keyplugin
- Pluginpublic void deleteRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRoles
in interface IGroupRoleDAO
strGroupKey
- The key of the groupplugin
- Pluginpublic void createRole(String strGroupKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
createRole
in interface IGroupRoleDAO
strGroupKey
- The key of the groupstrRoleKey
- The key of the roleplugin
- PluginCopyright © 2018 City of Paris. All rights reserved.