Package com.saperion.settings
Class SaUserSettingImpl
java.lang.Object
com.saperion.settings.SaUserSettingImpl
- All Implemented Interfaces:
SaSetting
,SaUserSetting
,Serializable
System setting implementation. This class holds all system settings
accessible by the class name of the specific
SaUserSettingType
.- Author:
- mak
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Returns the access key the setting is associated to.final <T extends SaUserSettingType>
TReturns the specific user setting.final <T extends SaUserSettingType>
booleanChecks, if the system setting for the given key exists.final <T extends SaUserSettingType>
voidSets the user setting.
-
Constructor Details
-
SaUserSettingImpl
Constructor.- Parameters:
key
- the access key
-
-
Method Details
-
getEntry
Returns the specific user setting.- Specified by:
getEntry
in interfaceSaUserSetting
- Type Parameters:
T
- specializedSaUserSettingType
- Parameters:
klass
- class representing the key the stored setting can be- Returns:
- the concrete
SaUserSettingType
instance
-
setEntry
Sets the user setting.- Specified by:
setEntry
in interfaceSaUserSetting
- Type Parameters:
T
- specializedSaUserSettingType
- Parameters:
klass
- class representing the key the setting is storedsetting
- the concreteSaUserSettingType
instance
-
hasEntry
Checks, if the system setting for the given key exists.- Specified by:
hasEntry
in interfaceSaUserSetting
- Type Parameters:
T
- specializedSaUserSettingType
- Parameters:
klass
- class- Returns:
true
if a system setting exists to the given key, otherwisefalse
-
getAccessKey
Returns the access key the setting is associated to.- Specified by:
getAccessKey
in interfaceSaSetting
- Returns:
- the access key
-