public class SaUserSettingImpl extends Object implements SaUserSetting, Serializable
SaUserSettingType
.Constructor and Description |
---|
SaUserSettingImpl(String key)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessKey()
Returns the access key the setting is associated to.
|
<T extends SaUserSettingType> |
getEntry(Class<T> klass)
Returns the specific user setting.
|
<T extends SaUserSettingType> |
hasEntry(Class<T> klass)
Checks, if the system setting for the given key exists.
|
<T extends SaUserSettingType> |
setEntry(Class<T> klass,
T setting)
Sets the user setting.
|
public SaUserSettingImpl(String key)
key
- the access keypublic final <T extends SaUserSettingType> T getEntry(Class<T> klass)
getEntry
in interface SaUserSetting
T
- specialized SaUserSettingType
klass
- class representing the key the stored setting can beSaUserSettingType
instancepublic final <T extends SaUserSettingType> void setEntry(Class<T> klass, T setting)
setEntry
in interface SaUserSetting
T
- specialized SaUserSettingType
klass
- class representing the key the setting is storedsetting
- the concrete SaUserSettingType
instancepublic final <T extends SaUserSettingType> boolean hasEntry(Class<T> klass)
hasEntry
in interface SaUserSetting
T
- specialized SaUserSettingType
klass
- classtrue
if a system setting exists to the given key,
otherwise false
public final String getAccessKey()
getAccessKey
in interface SaSetting
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.