Class GroupRoleHome
- java.lang.Object
-
- fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.GroupRoleHome
-
public final class GroupRoleHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Group right objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddRole(java.lang.String strGroupKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Assign a role to groupstatic java.util.List<java.lang.String>findGroupRoles(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find group's rolesstatic java.util.List<java.lang.String>findGroupRolesByRoleKey(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find group's rolesstatic voidremoveRoles(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete groups for a group
-
-
-
Method Detail
-
findGroupRoles
public static java.util.List<java.lang.String> findGroupRoles(java.lang.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 java.util.List<java.lang.String> findGroupRolesByRoleKey(java.lang.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(java.lang.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(java.lang.String strGroupKey, java.lang.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
-
-