|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Settings
Interface representing application settings stored in the database.
While Setting
is used as a direct interface to the
sscSetting
database table, this interface's methods are what
the rest of the application actually uses to retrieve settings. The
getValue
method looks up a given setting in a Map
returned by this interface's getMap
method. The keys of this
Map
correspond to the code
field of the
sscSetting
database table. The values correspond to the value
field (integerValue
, smallValue
,
mediumValue
, or textValue
) that corresponds
with the value of the valueType
field.
The default "settingsImplementer" is
SettingsBean
.
Method Summary | |
---|---|
java.util.Map |
addSetting(java.util.Map parameters)
|
Settings |
copyAndAlter(java.util.Map settingsToAlter)
Returns a new Settings object that is a copy of this one, but with certain values altered, as represented in the incoming Map. |
Settings |
copyAndAlter(java.lang.String name,
java.lang.String value)
Returns a new Settings object that is a copy of this one, but with a given element altered. |
void |
deleteSetting(java.util.Map parameters)
|
void |
editDeleteUserSettings(java.util.Map parameters)
|
java.util.Map |
editSetting(java.util.Map parameters)
|
java.util.Map |
getMap()
Retrieves the map of settings values for this Settings
instance. |
java.lang.Object |
getValue(java.lang.String key)
Gets the value of a given key in this Settings '
map . |
void |
initialize()
Initializes this Settings instance. |
Setting |
loadSettingFromID(java.util.Map paramaters)
|
java.util.Collection |
loadSettings()
|
java.util.Map |
loadSettingsAndCount(java.util.Map parameters)
|
Settings |
processSettings(java.util.Map parameters)
|
void |
setMap(java.util.Map map)
Sets the map of settings values for this Settings
instance. |
void |
setValue(java.lang.String key,
java.lang.Object value)
Sets the value of a given key in this Settings '
map . |
Method Detail |
---|
java.util.Map getMap()
Settings
instance. The keys of this Map
correspond to the
code
field of the sscSetting
database
table. The values correspond to value field (integerValue
,
smallValue
, mediumValue
, or
textValue
) that corresponds with the value of the
valueType
field.
Map
of settings keys and values for this
Settings
instance.void setMap(java.util.Map map)
Settings
instance.
void setValue(java.lang.String key, java.lang.Object value)
Settings
'
map
.
key
- The key whose value is being setvalue
- The value.
java.lang.Exception
java.lang.Object getValue(java.lang.String key)
Settings
'
map
.
key
- The key whose value is to be retrieved.
java.lang.Exception
void initialize() throws java.lang.Exception
Settings
instance. Populates the
map
property with the results of a query on the
sscSetting
database table.
java.lang.Exception
Settings copyAndAlter(java.lang.String name, java.lang.String value) throws java.lang.Exception
name
- value
-
java.lang.Exception
Settings copyAndAlter(java.util.Map settingsToAlter) throws java.lang.Exception
settingsToAlter
- A Map of new settings to apply to the new object.
java.lang.Exception
java.util.Map loadSettingsAndCount(java.util.Map parameters) throws java.lang.Exception
java.lang.Exception
java.util.Map addSetting(java.util.Map parameters) throws java.lang.Exception
java.lang.Exception
Setting loadSettingFromID(java.util.Map paramaters) throws java.lang.Exception
java.lang.Exception
java.util.Map editSetting(java.util.Map parameters) throws java.lang.Exception
java.lang.Exception
void deleteSetting(java.util.Map parameters) throws java.lang.Exception
java.lang.Exception
void editDeleteUserSettings(java.util.Map parameters) throws java.lang.Exception
java.lang.Exception
Settings processSettings(java.util.Map parameters) throws java.lang.Exception
java.lang.Exception
java.util.Collection loadSettings() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |