|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.emframe.dev.config.GeneralConfig
The GeneralConfig class is used to read and write module or task settings for all users. The settings are written to the file system under the WEB-INF/config directory based upon the sModuleID and sTaskID strings used to create the GeneralConfig object. Each unique sModuleID and sTaskID combination are given a separate file in the file system to avoid setting collisions. No security is inforced on these setting files, meaning that the settings written by a particular module or task are available to the iManager system and all other modules or tasks if they know the sModuleID and sTaskID combination used.
| Constructor Summary | |
GeneralConfig(java.lang.String sModuleID,
java.lang.String sTaskID)
Construct a GeneralConfig object based on the sModuleID and sTaskID passed in. |
|
| Method Summary | |
void |
addSettingValue(java.lang.String sName,
java.lang.String sValue)
Add a String value to the end of the String array of values for a setting. |
java.lang.Object |
getObjectSetting(java.lang.String sName)
Get a setting's first value as a serialized Object. |
java.lang.Object[] |
getObjectSettings(java.lang.String sName)
Get all of a setting's values as a serialized Object array. |
java.lang.String |
getSetting(java.lang.String sName)
Get a setting's first value as a String. |
java.lang.String |
getSetting(java.lang.String sName,
java.lang.String sDefaultValue)
Get a setting's first value as a String. |
java.lang.String[] |
getSettingNames()
Get a String array of all setting names available for this sModuleID and sTaskID. |
java.lang.String[] |
getSettings(java.lang.String sName)
Get all of a setting's values as a String array. |
void |
removeSetting(java.lang.String sName)
Removes all setting values from a setting. |
void |
removeSettingValue(java.lang.String sName,
java.lang.String sValue)
Remove a String value from the String array of values for a setting. |
void |
setObjectSetting(java.lang.String sName,
java.lang.Object oValue)
Set a setting to be a serialized Object value. |
void |
setObjectSetting(java.lang.String sName,
java.lang.Object[] oaValues)
Set a setting to be a serialized Object array of values. |
void |
setSetting(java.lang.String sName,
java.lang.String sValue)
Set a setting to be a single String value. |
void |
setSetting(java.lang.String sName,
java.lang.String[] saValues)
Set a setting to be a String array of values. |
void |
writeSettings()
Writes settings to file system storage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeneralConfig(java.lang.String sModuleID,
java.lang.String sTaskID)
sModuleID - Configuration Module ID or nullsTaskID - Configuration Task ID or null| Method Detail |
public void addSettingValue(java.lang.String sName,
java.lang.String sValue)
throws ConfigException
sName - Name of the settingsValue - Value to add to the current values already present
ConfigException - If the current logged in user is unable to perform the operationremoveSettingValue(java.lang.String, java.lang.String),
writeSettings()public java.lang.Object getObjectSetting(java.lang.String sName)
sName - Name of the setting
setObjectSetting(java.lang.String, java.lang.Object)public java.lang.Object[] getObjectSettings(java.lang.String sName)
sName - Name of the setting
setObjectSetting(java.lang.String, java.lang.Object)public java.lang.String getSetting(java.lang.String sName)
sName - Name of the setting
setSetting(java.lang.String, java.lang.String)
public java.lang.String getSetting(java.lang.String sName,
java.lang.String sDefaultValue)
sName - Name of the settingsDefaultValue - Value to be returned of no value is found
setSetting(java.lang.String, java.lang.String)public java.lang.String[] getSettingNames()
public java.lang.String[] getSettings(java.lang.String sName)
sName - Name of the setting
setSetting(java.lang.String, java.lang.String)
public void removeSetting(java.lang.String sName)
throws ConfigException
sName - Name of setting
ConfigException - If the current logged in user is unable to perform the operationwriteSettings()
public void removeSettingValue(java.lang.String sName,
java.lang.String sValue)
throws ConfigException
sName - Name of the settingsValue - Value to be removed
ConfigException - If the current logged in user is unable to perform the operationaddSettingValue(java.lang.String, java.lang.String),
writeSettings()
public void setObjectSetting(java.lang.String sName,
java.lang.Object oValue)
throws ConfigException
sName - Name of the settingoValue - Value to set, all other values will be overwritten
ConfigException - If the current logged in user is unable to perform the operationgetObjectSetting(java.lang.String),
writeSettings()
public void setObjectSetting(java.lang.String sName,
java.lang.Object[] oaValues)
throws ConfigException
sName - Name of the settingoaValues - Values to be set, all other values will be overwritten
ConfigException - If the current logged in user is unable to perform the operationgetObjectSettings(java.lang.String),
writeSettings()
public void setSetting(java.lang.String sName,
java.lang.String sValue)
throws ConfigException
sName - Name of the settingsValue - Value to set, all other values will be overwritten
ConfigException - If the current logged in user is unable to perform the operationgetSetting(java.lang.String),
writeSettings()
public void setSetting(java.lang.String sName,
java.lang.String[] saValues)
throws ConfigException
sName - Name of the settingsaValues - Values to be set, all other values will be overwritten
ConfigException - If the current logged in user is unable to perform the operationgetSettings(java.lang.String),
writeSettings()
public void writeSettings()
throws ConfigException
ConfigException - If the current logged in user is unable to perform the operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||