Class CollectionDataSourceConsumer
java.lang.Object
org.ametys.plugins.contentio.synchronize.impl.CollectionDataSourceConsumer
- All Implemented Interfaces:
DataSourceConsumer,Component,Serviceable
public class CollectionDataSourceConsumer
extends Object
implements DataSourceConsumer, Component, Serviceable
Implementation of
DataSourceConsumer allowing to know whether a data source is used by the collections of synchronizable contents 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SynchronizableContentsCollectionDAOThe DAO for synchronizable contents collectionsThe extension point for synchronizable contents collection modelsstatic final StringAvalon Role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the ids of the used data sourcesDetermines if a data source is usedvoidservice(ServiceManager manager)
-
Field Details
-
ROLE
Avalon Role -
_synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections -
_synchronizeContentsCollectionModelEP
The extension point for synchronizable contents collection models
-
-
Constructor Details
-
CollectionDataSourceConsumer
public CollectionDataSourceConsumer()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
isInUse
Description copied from interface:DataSourceConsumerDetermines if a data source is used- Specified by:
isInUsein 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:DataSourceConsumerRetrieve the ids of the used data sources- Specified by:
getUsedDataSourceIdsin interfaceDataSourceConsumer- Returns:
- the set of ids of the data source(s) used by this data source customer
-