public class UserPreferencesExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<UserPreferenceProvider>
UserPreference definitions.| Modifier and Type | Class and Description |
|---|---|
(package private) class |
UserPreferencesExtensionPoint.I18nizableTextComparator |
(package private) class |
UserPreferencesExtensionPoint.UserPrefOrderComparator
Compares user preferences on their "order" attribute.
|
| Modifier and Type | Field and Description |
|---|---|
private UserPreferencesExtensionPoint.UserPrefOrderComparator |
_comparator
User preference parser.
|
static String |
ROLE
Avalon Role
|
_cocoonManager, _context, _manager| Constructor and Description |
|---|
UserPreferencesExtensionPoint() |
| Modifier and Type | Method and Description |
|---|---|
Map<I18nizableText,List<UserPreference>> |
getCategorizedPreferences(Map<String,String> contextVars)
Get all the preferences, classified by group and ordered.
|
protected Map<I18nizableText,List<UserPreference>> |
getCategorizedPreferencesMap(Map<String,String> contextVars)
Compute the grouped preferences map.
|
protected Map<String,UserPreference> |
getPreferencesMap(Map<String,String> contextVars)
Compute the preferences map.
|
UserPreference |
getUserPreference(Map<String,String> contextVars,
String id)
Get all the declared user preferences.
|
Map<String,UserPreference> |
getUserPreferences(Map<String,String> contextVars)
Get all the declared user preferences.
|
void |
initialize() |
void |
validatePreferences(Map<String,String> contextVars,
Map<String,String> values,
UserPreferencesErrors errors)
Validate preference values.
|
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initializeExtensions, servicegetLogger, setLoggerprivate UserPreferencesExtensionPoint.UserPrefOrderComparator _comparator
public UserPreferencesExtensionPoint()
public void initialize() throws Exception
initialize in interface Initializableinitialize in class AbstractThreadSafeComponentExtensionPoint<UserPreferenceProvider>Exceptionpublic UserPreference getUserPreference(Map<String,String> contextVars, String id)
contextVars - The context variables including environment elementsid - The preference idpublic Map<String,UserPreference> getUserPreferences(Map<String,String> contextVars)
contextVars - The context variables including environment elementspublic Map<I18nizableText,List<UserPreference>> getCategorizedPreferences(Map<String,String> contextVars)
contextVars - The context variables including environment elementspublic void validatePreferences(Map<String,String> contextVars, Map<String,String> values, UserPreferencesErrors errors)
contextVars - The context variables including environment elementsvalues - the values.errors - the errors object to fill in.protected Map<String,UserPreference> getPreferencesMap(Map<String,String> contextVars)
contextVars - The context variables including environment elementsprotected Map<I18nizableText,List<UserPreference>> getCategorizedPreferencesMap(Map<String,String> contextVars)
contextVars - The context variables including environment elements