Package org.opencms.gwt
Class CmsClientUserSettingConverter
java.lang.Object
org.opencms.gwt.CmsClientUserSettingConverter
Helper class to deal with loading and saving user preferences from the ADE user interface.
-
Constructor Summary
ConstructorDescriptionCmsClientUserSettingConverter
(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionLoads the current user's preferences into a CmsUserSettingsBean.void
saveSettings
(Map<String, String> settings) Saves the given user preference values.
-
Constructor Details
-
CmsClientUserSettingConverter
public CmsClientUserSettingConverter(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Creates a new instance.- Parameters:
cms
- the current CMS contextrequest
- the current requestresponse
- the current response
-
-
Method Details
-
loadSettings
Loads the current user's preferences into a CmsUserSettingsBean.- Returns:
- the bean representing the current user's preferences
-
saveSettings
Saves the given user preference values.- Parameters:
settings
- the user preference values to save- Throws:
Exception
- if something goes wrong
-