public class UserPopulation extends Object
Modifier and Type | Field and Description |
---|---|
protected List<CredentialProvider> |
_credentialProviders
The list of the credential providers
|
protected boolean |
_enabled
The enabled nature of the population.
|
protected String |
_id
The id
|
protected I18nizableText |
_label
The label
|
protected List<UserDirectory> |
_userDirectories
The list of the user directories
|
Constructor and Description |
---|
UserPopulation()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the user directories and credential providers of this population.
|
void |
enable(boolean enabled)
Enables/disables a population.
|
CredentialProvider |
getCredentialProvider(String id)
Get the selected CredentialProvider
|
List<CredentialProvider> |
getCredentialProviders()
Get the associated
CredentialProvider s |
String |
getId()
Get the id of the population.
|
I18nizableText |
getLabel()
Get the label of the population.
|
List<UserDirectory> |
getUserDirectories()
Get the associated
UserDirectory s |
UserDirectory |
getUserDirectory(String id)
Get the selected UserDirectory
|
boolean |
isEnabled()
Tells if the population is enabled.
|
void |
resetCredentialProviders()
Reset the credential providers, i.e.
|
void |
resetUserDirectories()
Reset the user directories, i.e.
|
void |
setCredentialProviders(List<CredentialProvider> credentialProviders)
Set the credential providers
|
void |
setId(String id)
Set the id of the population.
|
void |
setLabel(I18nizableText label)
Set the label of the population.
|
void |
setUserDirectories(List<UserDirectory> userDirectories)
Set the user directories
|
String |
toString() |
protected I18nizableText _label
protected boolean _enabled
protected List<UserDirectory> _userDirectories
protected List<CredentialProvider> _credentialProviders
public UserPopulation()
public I18nizableText getLabel()
public void setLabel(I18nizableText label)
label
- the labelpublic boolean isEnabled()
public void enable(boolean enabled)
enabled
- True to enable the population, false to disable it.public List<UserDirectory> getUserDirectories()
UserDirectory
spublic UserDirectory getUserDirectory(String id)
id
- The id of the directory to getpublic void setUserDirectories(List<UserDirectory> userDirectories)
userDirectories
- The list of UserDirectory
s to set.public void resetUserDirectories()
public List<CredentialProvider> getCredentialProviders()
CredentialProvider
spublic CredentialProvider getCredentialProvider(String id)
id
- The id of the credential provider to getpublic void setCredentialProviders(List<CredentialProvider> credentialProviders)
credentialProviders
- The list of CredentialProvider
s to setpublic void resetCredentialProviders()
public void dispose()