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
Modifier and TypeFieldDescriptionprotected List<CredentialProvider>
The list of the credential providersprotected boolean
The enabled nature of the population.protected String
The idprotected I18nizableText
The labelprotected List<UserDirectory>
The list of the user directories -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose the user directories and credential providers of this population.void
enable
(boolean enabled) Enables/disables a population.Get the selected CredentialProviderGet the associatedCredentialProvider
sgetId()
Get the id of the population.getLabel()
Get the label of the population.Get the associatedUserDirectory
sGet the selected UserDirectoryboolean
Tells if the population is enabled.void
Reset the credential providers, i.e.void
Reset the user directories, i.e.void
setCredentialProviders
(List<CredentialProvider> credentialProviders) Set the credential providersvoid
Set the id of the population.void
setLabel
(I18nizableText label) Set the label of the population.void
setUserDirectories
(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 associatedUserDirectory
s- 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 ofUserDirectory
s to set.
-
resetUserDirectories
Reset the user directories, i.e. remove all the user directories linked to this population. -
getCredentialProviders
Get the associatedCredentialProvider
s- 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 ofCredentialProvider
s 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
-