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
Helper for associating
UserPopulation
s to contexts for FO application.
Overrides PopulationContextHelper.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
-
Method Summary
Modifier and TypeMethodDescriptiongetUserPopulationsOnContext
(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 Details
-
SitePopulationContextHelper
public SitePopulationContextHelper()
-
-
Method Details
-
getUserPopulationsOnContext
Description copied from class:PopulationContextHelper
Gets the populations linked to the given context (need the population to be enabled)- Overrides:
getUserPopulationsOnContext
in classPopulationContextHelper
- Parameters:
context
- The contextwithDisabled
- True to also return disabled populations- Returns:
- The ids of populations linked to the context
-