Class ContextPopulationConsumer
- java.lang.Object
-
- org.ametys.plugins.core.impl.user.population.ContextPopulationConsumer
-
- All Implemented Interfaces:
PopulationConsumer
,Serviceable
public class ContextPopulationConsumer extends Object implements PopulationConsumer, Serviceable
Implementation ofPopulationConsumer
allowing to know whether a population is used by the contexts or not.
-
-
Field Summary
Fields Modifier and Type Field Description private PopulationContextHelper
_populationContextHelper
The helper for the associations population/context
-
Constructor Summary
Constructors Constructor Description ContextPopulationConsumer()
-
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
-
_populationContextHelper
private PopulationContextHelper _populationContextHelper
The helper for the associations population/context
-
-
Constructor Detail
-
ContextPopulationConsumer
public ContextPopulationConsumer()
-
-
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
-
-