public class SetFOUserPreferencesAction extends SetUserPreferencesAction
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected ObservationManager |
_observationManager
The observation manager.
|
protected SiteManager |
_siteManager
The site manager
|
_INPUT_DATE_FORMATS, _userPrefEP, _userPrefManager
manager
EMPTY_MAP
Constructor and Description |
---|
SetFOUserPreferencesAction() |
Modifier and Type | Method and Description |
---|---|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected Map<String,String> |
getContextVars(Request request)
Get the preferences context variables.
|
protected List<String> |
getPreferenceIds(Request request,
Map<String,Object> parentContext)
Get the preferences to set.
|
protected void |
notifyUserPrefChanged(String siteName,
String context)
Notify observers that user preferences has changed
|
void |
service(ServiceManager serviceManager) |
_getValues, _parseDate, getStorageContext, getUser, setUserPreferences, setUserPreferences
_getCurrentUser
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected ObservationManager _observationManager
protected SiteManager _siteManager
protected CurrentUserProvider _currentUserProvider
public SetFOUserPreferencesAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class SetUserPreferencesAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
act
in interface Action
act
in class SetUserPreferencesAction
Exception
protected void notifyUserPrefChanged(String siteName, String context)
siteName
- The site namecontext
- The user's preferences contextprotected List<String> getPreferenceIds(Request request, Map<String,Object> parentContext)
SetUserPreferencesAction
getPreferenceIds
in class SetUserPreferencesAction
request
- the request.parentContext
- the parent context.protected Map<String,String> getContextVars(Request request)
SetUserPreferencesAction
getContextVars
in class SetUserPreferencesAction
request
- the request.