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 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 context
      request - the current request
      response - 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

      public void saveSettings(Map<String,String> settings) throws Exception
      Saves the given user preference values.

      Parameters:
      settings - the user preference values to save
      Throws:
      Exception - if something goes wrong