public class PopulationDataSourceConsumer extends Object implements DataSourceConsumer, Component, Serviceable
DataSourceConsumer
allowing to know whether a data source is used by the populations or not.
It also allows to retrieve the data source ids that are currently in use.Modifier and Type | Field and Description |
---|---|
private CredentialProviderFactory |
_credentialProviderFactory
The credential providers factory
|
private UserDirectoryFactory |
_userDirectoryFactory
The user directories factory
|
private UserPopulationDAO |
_userPopulationDAO
The DAO for
UserPopulation s |
static String |
ROLE
Avalon Role
|
Constructor and Description |
---|
PopulationDataSourceConsumer() |
Modifier and Type | Method and Description |
---|---|
private boolean |
_isInUseByCredentialProviders(String id) |
private boolean |
_isInUseByUserDirectories(String id) |
Set<String> |
getUsedDataSourceIds()
Retrieve the ids of the used data sources
|
boolean |
isInUse(String id)
Determines if a data source is used
|
void |
service(ServiceManager manager) |
private UserPopulationDAO _userPopulationDAO
UserPopulation
sprivate UserDirectoryFactory _userDirectoryFactory
private CredentialProviderFactory _credentialProviderFactory
public PopulationDataSourceConsumer()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public boolean isInUse(String id)
DataSourceConsumer
isInUse
in interface DataSourceConsumer
id
- The id of data source to checkprivate boolean _isInUseByUserDirectories(String id)
private boolean _isInUseByCredentialProviders(String id)
public Set<String> getUsedDataSourceIds()
DataSourceConsumer
getUsedDataSourceIds
in interface DataSourceConsumer