public class CollectionDataSourceConsumer extends Object implements DataSourceConsumer, Component, Serviceable
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.| Modifier and Type | Field and Description |
|---|---|
protected SynchronizableContentsCollectionDAO |
_synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections
|
protected SynchronizeContentsCollectionModelExtensionPoint |
_synchronizeContentsCollectionModelEP
The extension point for synchronizable contents collection models
|
static String |
ROLE
Avalon Role
|
| Constructor and Description |
|---|
CollectionDataSourceConsumer() |
| 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) |
protected SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
protected SynchronizeContentsCollectionModelExtensionPoint _synchronizeContentsCollectionModelEP
public CollectionDataSourceConsumer()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic boolean isInUse(String id)
DataSourceConsumerisInUse in interface DataSourceConsumerid - The id of data source to checkpublic Set<String> getUsedDataSourceIds()
DataSourceConsumergetUsedDataSourceIds in interface DataSourceConsumer