Class GroupRoleHome
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.GroupRoleHome
This class provides instances management methods (create, find, ...) for Group right objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidAssign a role to groupfindGroupRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find group's rolesfindGroupRolesByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find group's rolesstatic voidremoveRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete groups for a group
-
Method Details
-
findGroupRoles
public static List<String> findGroupRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find group's roles- Parameters:
strGroupKey- the loginplugin- Plugin- Returns:
- ArrayList the role key list corresponding to the group
-
findGroupRolesByRoleKey
public static List<String> findGroupRolesByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find group's roles- Parameters:
strRoleKey- The Role keyplugin- Plugin- Returns:
- ArrayList the groups key list corresponding to the role
-
removeRoles
public static void removeRoles(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete groups for a group- Parameters:
strGroupKey- The key of the groupplugin- Plugin
-
addRole
public static void addRole(String strGroupKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Assign a role to group- Parameters:
strGroupKey- The key of the groupstrRoleKey- The key of the roleplugin- Plugin
-