Class CmsUserSettingsBean

java.lang.Object
org.opencms.gwt.shared.CmsUserSettingsBean
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsUserSettingsBean extends Object implements com.google.gwt.user.client.rpc.IsSerializable
Bean for transferring user preference information between the client and the server.

  • Constructor Details

  • Method Details

    • addSetting

      public void addSetting(String value, CmsXmlContentProperty config, boolean basic)
      Adds a user setting.

      Parameters:
      value - the current value of the user setting
      config - the configuration for the user setting
      basic - true if this is a basic user setting
    • getConfiguration

      Gets the map with the configurations for the individual user settings.

      Returns:
      the user setting configurations, indexed by user setting name
    • getValue

      public String getValue(String key)
      Gets the value for a given user setting.

      Parameters:
      key - the user setting key
      Returns:
      the current value of the user setting
    • isBasic

      public boolean isBasic(String name)
      Returns true if the user setting with the given name is a basic setting
      Parameters:
      name - the user setting name
      Returns:
      true if this is a basic setting