Package org.opencms.gwt.shared
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSetting
(String value, CmsXmlContentProperty config, boolean basic) Adds a user setting.Gets the map with the configurations for the individual user settings.Gets the value for a given user setting.boolean
Returns true if the user setting with the given name is a basic setting
-
Constructor Details
-
CmsUserSettingsBean
public CmsUserSettingsBean()Default constructor.
-
-
Method Details
-
addSetting
Adds a user setting.- Parameters:
value
- the current value of the user settingconfig
- the configuration for the user settingbasic
- 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
Gets the value for a given user setting.- Parameters:
key
- the user setting key- Returns:
- the current value of the user setting
-
isBasic
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
-