Class EntraIDGroupDirectory
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.extrausermgt.groups.entraid.EntraIDGroupDirectory
- All Implemented Interfaces:
GroupDirectory,LogEnabled,Disposable,Serviceable
public class EntraIDGroupDirectory
extends AbstractLogEnabled
implements GroupDirectory, Serviceable, Disposable
GroupDirectory listing groups from Entra ID (Azure Active Directory).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Returns a particular group.Get the id of theGroupDirectoryModelextension pointReturns all groups.Get groupsgetId()Get the id of the group directory.getLabel()Get the label of the group directory.Get the values of parameters (from group directory model)getUserGroups(UserIdentity userIdentity) Get all groups a particular user is in.voidInitialize the group directory with given parameter values.voidservice(ServiceManager serviceManager) voidSet the id of the group directory.voidsetLabel(I18nizableText label) Set the label of the group directory.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
EntraIDGroupDirectory
public EntraIDGroupDirectory()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getId
Description copied from interface:GroupDirectoryGet the id of the group directory.- Specified by:
getIdin interfaceGroupDirectory- Returns:
- The id of the group directory
-
getLabel
Description copied from interface:GroupDirectoryGet the label of the group directory.- Specified by:
getLabelin interfaceGroupDirectory- Returns:
- The label of the group directory
-
setId
Description copied from interface:GroupDirectorySet the id of the group directory.- Specified by:
setIdin interfaceGroupDirectory- Parameters:
id- The id
-
setLabel
Description copied from interface:GroupDirectorySet the label of the group directory.- Specified by:
setLabelin interfaceGroupDirectory- Parameters:
label- The label
-
getGroupDirectoryModelId
Description copied from interface:GroupDirectoryGet the id of theGroupDirectoryModelextension point- Specified by:
getGroupDirectoryModelIdin interfaceGroupDirectory- Returns:
- the id of extension point
-
getParameterValues
Description copied from interface:GroupDirectoryGet the values of parameters (from group directory model)- Specified by:
getParameterValuesin interfaceGroupDirectory- Returns:
- the parameters' values
-
init
Description copied from interface:GroupDirectoryInitialize the group directory with given parameter values.- Specified by:
initin interfaceGroupDirectory- Parameters:
groupDirectoryModelId- The id of group directory extension pointparamValues- The parameters' values- Throws:
Exception- If an error occured
-
getGroup
Description copied from interface:GroupDirectoryReturns a particular group.- Specified by:
getGroupin interfaceGroupDirectory- Parameters:
groupID- The id of the group.- Returns:
- The group or null if the group does not exist.
-
getUserGroups
Description copied from interface:GroupDirectoryGet all groups a particular user is in.- Specified by:
getUserGroupsin interfaceGroupDirectory- Parameters:
userIdentity- The identity of the user- Returns:
- The groups as a Set of String (group ID), empty if the login does not match.
-
getGroups
Description copied from interface:GroupDirectoryReturns all groups.- Specified by:
getGroupsin interfaceGroupDirectory- Returns:
- The groups as a Set of UserGroup, empty if an error occurs.
-
getGroups
Description copied from interface:GroupDirectoryGet groups- Specified by:
getGroupsin interfaceGroupDirectory- Parameters:
count- The maximum number of groups to sax. (-1 to sax all)offset- The offset to start with, first is 0.parameters- Parameters for saxing user list differently, see implementation.- Returns:
- The matching groups
-
dispose
- Specified by:
disposein interfaceDisposable
-