public class SetODFCartUserPreferencesAction extends SetFOUserPreferencesAction
Modifier and Type | Field and Description |
---|---|
private List<String> |
_contentIdsError |
protected OdfPageResolver |
_odfPageResolver
The odf page resolver
|
private Map<String,String> |
_preferences |
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
_currentUserProvider, _observationManager, _siteManager
_INPUT_DATE_FORMATS, _userPrefEP, _userPrefManager
manager
EMPTY_MAP
Constructor and Description |
---|
SetODFCartUserPreferencesAction() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
_getValues(Request request,
Map<String,String> contextVars,
UserIdentity user,
Collection<String> preferenceIds,
UserPreferencesErrors errors)
Get the preferences values from the request.
|
private void |
_handleValues(Request request,
Map<String,String> contextVars) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected List<String> |
getPreferenceIds(Request request,
Map<String,Object> parentContext)
Get the preferences to set.
|
void |
service(ServiceManager serviceManager) |
getContextVars, notifyUserPrefChanged
_parseDate, getStorageContext, getUser, setUserPreferences, setUserPreferences
_getCurrentUser
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _resolver
protected OdfPageResolver _odfPageResolver
private Map<String,String> _preferences
private List<String> _contentIdsError
public SetODFCartUserPreferencesAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class SetFOUserPreferencesAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
act
in interface Action
act
in class SetFOUserPreferencesAction
Exception
private void _handleValues(Request request, Map<String,String> contextVars)
protected Map<String,String> _getValues(Request request, Map<String,String> contextVars, UserIdentity user, Collection<String> preferenceIds, UserPreferencesErrors errors)
SetUserPreferencesAction
_getValues
in class SetUserPreferencesAction
request
- the request.contextVars
- The context varsuser
- the user.preferenceIds
- a collection of the IDs of preferences to set.errors
- the errors object to fill in.protected List<String> getPreferenceIds(Request request, Map<String,Object> parentContext)
SetUserPreferencesAction
getPreferenceIds
in class SetFOUserPreferencesAction
request
- the request.parentContext
- the parent context.