Class CollectionPopulationConsumer
- java.lang.Object
-
- org.ametys.plugins.userdirectory.synchronize.CollectionPopulationConsumer
-
- All Implemented Interfaces:
PopulationConsumer
,Serviceable
public class CollectionPopulationConsumer extends Object implements PopulationConsumer, Serviceable
Implementation ofPopulationConsumer
allowing to know whether a population is used by the collections or not.
-
-
Field Summary
Fields Modifier and Type Field Description protected SynchronizableContentsCollectionDAO
_synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections
-
Constructor Summary
Constructors Constructor Description CollectionPopulationConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInUse(String id)
Determines if a user population is usedvoid
service(ServiceManager manager)
-
-
-
Field Detail
-
_synchronizableContentsCollectionDAO
protected SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections
-
-
Constructor Detail
-
CollectionPopulationConsumer
public CollectionPopulationConsumer()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
isInUse
public boolean isInUse(String id)
Description copied from interface:PopulationConsumer
Determines if a user population is used- Specified by:
isInUse
in interfacePopulationConsumer
- Parameters:
id
- The id of population to check- Returns:
- true if the user population is currently in use
-
-