Class SitePopulationContextHelper
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.user.population.PopulationContextHelper
-
- org.ametys.plugins.site.population.SitePopulationContextHelper
-
- All Implemented Interfaces:
LogEnabled,Initializable,Component,Serviceable
public class SitePopulationContextHelper extends PopulationContextHelper
Helper for associatingUserPopulations to contexts for FO application. OverridesPopulationContextHelper.getUserPopulationsOnContext(String, boolean)in order to authenticate through Front-Office URLs
-
-
Field Summary
-
Fields inherited from class org.ametys.core.user.population.PopulationContextHelper
__ADMIN_RIGHT_ACCESS, __USER_POPULATIONS_TABLE, _manager, ADMIN_CONTEXT, POPULATION_CONTEXTS_REQUEST_ATTR, ROLE
-
-
Constructor Summary
Constructors Constructor Description SitePopulationContextHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getUserPopulationsOnContext(String context, boolean withDisabled)Gets the populations linked to the given context (need the population to be enabled)-
Methods inherited from class org.ametys.core.user.population.PopulationContextHelper
_getCache, _getCacheAsMap, getCurrentUserProvider, getObservationManager, getRightManager, getSQLConnection, getUserPopulationDAO, getUserPopulationsOnContexts, getUserPopulationsOnContexts, initialize, isLinked, link, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SitePopulationContextHelper
public SitePopulationContextHelper()
-
-
Method Detail
-
getUserPopulationsOnContext
public Set<String> getUserPopulationsOnContext(String context, boolean withDisabled)
Description copied from class:PopulationContextHelperGets the populations linked to the given context (need the population to be enabled)- Overrides:
getUserPopulationsOnContextin classPopulationContextHelper- Parameters:
context- The contextwithDisabled- True to also return disabled populations- Returns:
- The ids of populations linked to the context
-
-