|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsrc.server.UserSettings
Keeps track of user specific settings for modules. This can be used by the modules to simplify their handling of user specific settings. It stores a key/value pair connected to a UserId and module.
| Constructor Summary | |
UserSettings(java.lang.String userId,
Module module)
Stores settings for a module connected to a specific userId. |
|
| Method Summary | |
java.lang.String |
get(java.lang.String settingName)
Get a stored user specific setting. |
void |
set(java.lang.String settingName,
java.lang.String settingValue)
Set a stored user specific setting. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UserSettings(java.lang.String userId,
Module module)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException
userId - The userId to connect the settings to.module - The ModuleClass that the settings should be connected to.
java.lang.IllegalArgumentException - If the userId is not valid.
java.lang.IllegalStateException - If the module has not specified any settings in its
configuration.| Method Detail |
public java.lang.String get(java.lang.String settingName)
throws java.lang.IllegalArgumentException
settingName - The name of the setting.
java.lang.IllegalArgumentException - If the settingName is not valid.
public void set(java.lang.String settingName,
java.lang.String settingValue)
throws java.lang.IllegalArgumentException
settingName - The name to set the setting for.settingValue - The value to set the setting to.
java.lang.IllegalArgumentException - If the settingName is not valid.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||