Package org.ametys.core.user.population
Class UserPopulation
java.lang.Object
org.ametys.core.user.population.UserPopulation
This class represents a population of users.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<CredentialProvider> The list of the credential providersprotected booleanThe enabled nature of the population.protected StringThe idprotected I18nizableTextThe labelprotected List<UserDirectory> The list of the user directories -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose the user directories and credential providers of this population.voidenable(boolean enabled) Enables/disables a population.Get the selected CredentialProviderGet the associatedCredentialProvidersgetId()Get the id of the population.getLabel()Get the label of the population.Get the associatedUserDirectorysGet the selected UserDirectorybooleanTells if the population is enabled.voidReset the credential providers, i.e.voidReset the user directories, i.e.voidsetCredentialProviders(List<CredentialProvider> credentialProviders) Set the credential providersvoidSet the id of the population.voidsetLabel(I18nizableText label) Set the label of the population.voidsetUserDirectories(List<UserDirectory> userDirectories) Set the user directoriestoString()
-
Field Details
-
_id
The id -
_label
The label -
_enabled
The enabled nature of the population. True if enabled, false otherwise. -
_userDirectories
The list of the user directories -
_credentialProviders
The list of the credential providers
-
-
Constructor Details
-
UserPopulation
public UserPopulation()Default constructor
-
-
Method Details
-
getLabel
Get the label of the population.- Returns:
- the label of the population
-
setLabel
Set the label of the population.- Parameters:
label- the label
-
isEnabled
Tells if the population is enabled.- Returns:
- True if the population is enabled, false otherwise
-
enable
Enables/disables a population.- Parameters:
enabled- True to enable the population, false to disable it.
-
getId
Get the id of the population.- Returns:
- the id of the population
-
setId
Set the id of the population.- Parameters:
id- the id
-
getUserDirectories
Get the associatedUserDirectorys- Returns:
- The associated user directories
-
getUserDirectory
Get the selected UserDirectory- Parameters:
id- The id of the directory to get- Returns:
- The associated user directory or null
-
setUserDirectories
Set the user directories- Parameters:
userDirectories- The list ofUserDirectorys to set.
-
resetUserDirectories
Reset the user directories, i.e. remove all the user directories linked to this population. -
getCredentialProviders
Get the associatedCredentialProviders- Returns:
- The associated credential providers
-
getCredentialProvider
Get the selected CredentialProvider- Parameters:
id- The id of the credential provider to get- Returns:
- The associated credential provider or null
-
setCredentialProviders
Set the credential providers- Parameters:
credentialProviders- The list ofCredentialProviders to set
-
resetCredentialProviders
Reset the credential providers, i.e. remove all the credential providers linked to this population. -
dispose
Dispose the user directories and credential providers of this population. -
toString
-