Package org.ametys.core.userpref
Interface UserPreferenceProvider
-
- All Known Implementing Classes:
NewsletterUserPreferenceProvider
,StaticUserPreferenceProvider
public interface UserPreferenceProvider
Interface for classes providing user preferences.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_VAR_WORKSPACE
The optional context variable including the current Ametys workspace (admin...)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<UserPreference>
getPreferences(Map<String,String> contextVars)
Get this provider's preferences.
-
-
-
Field Detail
-
CONTEXT_VAR_WORKSPACE
static final String CONTEXT_VAR_WORKSPACE
The optional context variable including the current Ametys workspace (admin...)- See Also:
- Constant Field Values
-
-
Method Detail
-
getPreferences
Collection<UserPreference> getPreferences(Map<String,String> contextVars)
Get this provider's preferences.- Parameters:
contextVars
- a Map of context variables.- Returns:
- a Collection of preferences for the context.
-
-