Package org.ametys.core.group
Class GroupDirectoriesDataSourceConsumer
java.lang.Object
org.ametys.core.group.GroupDirectoriesDataSourceConsumer
- All Implemented Interfaces:
DataSourceConsumer
,Component
,Serviceable
public class GroupDirectoriesDataSourceConsumer
extends Object
implements DataSourceConsumer, Component, Serviceable
Implementation of
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.datasource.DataSourceConsumer
DataSourceConsumer.TypeOfUse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the ids of the used data sourcesDetermines if a data source is usedvoid
service
(ServiceManager manager)
-
Constructor Details
-
GroupDirectoriesDataSourceConsumer
public GroupDirectoriesDataSourceConsumer()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
isInUse
Description copied from interface:DataSourceConsumer
Determines if a data source is used- Specified by:
isInUse
in interfaceDataSourceConsumer
- Parameters:
id
- The id of data source to check- Returns:
- true if the data source is currently in use
-
getUsedDataSourceIds
Description copied from interface:DataSourceConsumer
Retrieve the ids of the used data sources- Specified by:
getUsedDataSourceIds
in interfaceDataSourceConsumer
- Returns:
- the set of ids of the data source(s) used by this data source customer
-