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 ofDataSourceConsumerallowing 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
Fields Modifier and Type Field Description protected SynchronizableContentsCollectionDAO_synchronizableContentsCollectionDAOThe DAO for synchronizable contents collectionsprotected SynchronizeContentsCollectionModelExtensionPoint_synchronizeContentsCollectionModelEPThe extension point for synchronizable contents collection modelsstatic StringROLEAvalon Role
-
Constructor Summary
Constructors Constructor Description CollectionDataSourceConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,DataSourceConsumer.TypeOfUse>getUsedDataSourceIds()Retrieve the ids of the used data sourcesDataSourceConsumer.TypeOfUseisInUse(String id)Determines if a data source is usedvoidservice(ServiceManager manager)
-
-
-
Field Detail
-
_synchronizableContentsCollectionDAO
protected SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections
-
_synchronizeContentsCollectionModelEP
protected SynchronizeContentsCollectionModelExtensionPoint _synchronizeContentsCollectionModelEP
The extension point for synchronizable contents collection models
-
-
Constructor Detail
-
CollectionDataSourceConsumer
public CollectionDataSourceConsumer()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
isInUse
public DataSourceConsumer.TypeOfUse isInUse(String id)
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
public Map<String,DataSourceConsumer.TypeOfUse> 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
-
-