public class GroupDirectoriesDataSourceConsumer extends Object implements DataSourceConsumer, Component, Serviceable
DataSourceConsumer
allowing to know whether a data source is used by the group directories or not.
It also allows to retrieve the data source ids that are currently in use.Modifier and Type | Field and Description |
---|---|
private GroupDirectoryDAO |
_groupDirectoryDAO |
private GroupDirectoryFactory |
_groupDirectoryFactory |
Constructor and Description |
---|
GroupDirectoriesDataSourceConsumer() |
Modifier and Type | Method and Description |
---|---|
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 GroupDirectoryDAO _groupDirectoryDAO
private GroupDirectoryFactory _groupDirectoryFactory
public GroupDirectoriesDataSourceConsumer()
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 checkpublic Set<String> getUsedDataSourceIds()
DataSourceConsumer
getUsedDataSourceIds
in interface DataSourceConsumer