Class GroupRoleDAO
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.GroupRoleDAO
- All Implemented Interfaces:
IGroupRoleDAO
@ApplicationScoped
@Named("mylutece-database.databaseGroupRoleDAO")
public class GroupRoleDAO
extends Object
implements IGroupRoleDAO
This class provides Data Access methods for Group objects
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateRole(String strGroupKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Assign a role to groupvoiddeleteRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete roles for a groupselectGroupRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find group's rolesselectGroupRolesByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find group's roles
-
Field Details
-
SQL_QUERY_FIND_ROLES_FROM_GROUP_ID
- See Also:
-
SQL_QUERY_FIND_GROUPS_FROM_ROLE_ID
- See Also:
-
-
Constructor Details
-
GroupRoleDAO
public GroupRoleDAO()
-
-
Method Details
-
selectGroupRoles
public List<String> selectGroupRoles(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 List<String> selectGroupRolesByRoleKey(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
Delete roles for a group- Specified by:
deleteRolesin interfaceIGroupRoleDAO- Parameters:
strGroupKey- The key of the groupplugin- Plugin
-
createRole
public void createRole(String strGroupKey, 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
-