|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.BaseMgr
com.konakart.bl.ConfigurationMgr
public class ConfigurationMgr
Manages all business logic relevant to the management of configurations within the system
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log |
| Fields inherited from class com.konakart.bl.BaseMgr |
|---|
templateBaseDir |
| Constructor Summary | |
|---|---|
ConfigurationMgr(KKEngIf eng)
Constructor |
|
| Method Summary | |
|---|---|
void |
editConfiguration(java.lang.String key,
java.lang.String value)
Sets a Configuration Value for the specified key |
KKConfiguration |
getConfiguration(java.lang.String key)
Returns a Configuration object referenced by the key passed in as a parameter |
KKConfiguration[] |
getConfigurations()
Returns an array of Configuration objects containing all configurations that have been defined in the system. |
java.lang.String |
getConfigurationValue(java.lang.String key)
Returns a Configuration Value for the key passed in as a parameter |
java.math.BigDecimal |
getConfigurationValueAsBigDecimal(java.lang.String key)
Returns a Configuration Value as a BigDecimal for the key passed in as a parameter |
java.math.BigDecimal |
getConfigurationValueAsBigDecimal(java.lang.String key,
java.math.BigDecimal def)
Returns a Configuration Value as a BigDecimal for the key passed in as a parameter |
java.lang.Boolean |
getConfigurationValueAsBool(java.lang.String key,
java.lang.Boolean def)
Returns a Configuration Value as a Boolean for the key passed in as a parameter |
int |
getConfigurationValueAsInt(java.lang.String key)
Returns a Configuration Value as an integer for the key passed in as a parameter |
int |
getConfigurationValueAsInt(java.lang.String key,
int def)
Returns a Configuration Value as an integer for the key passed in as a parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public ConfigurationMgr(KKEngIf eng)
throws java.lang.Exception
eng -
java.lang.Exception| Method Detail |
|---|
public KKConfiguration[] getConfigurations()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
getConfigurations in interface ConfigurationMgrIforg.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public KKConfiguration getConfiguration(java.lang.String key)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
getConfiguration in interface ConfigurationMgrIfkey -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
public java.lang.String getConfigurationValue(java.lang.String key)
throws KKException
getConfigurationValue in interface ConfigurationMgrIfkey - the Configuration Key
KKException
public int getConfigurationValueAsInt(java.lang.String key)
throws KKException
getConfigurationValueAsInt in interface ConfigurationMgrIfkey - the Configuration Key
KKException - if there is a problem converting the configuration value into an integer.
public int getConfigurationValueAsInt(java.lang.String key,
int def)
throws KKException
getConfigurationValueAsInt in interface ConfigurationMgrIfkey - the Configuration Keydef - default value to return if the key isn't found.
KKException - if there is a problem converting the configuration value into an integer.
public java.math.BigDecimal getConfigurationValueAsBigDecimal(java.lang.String key)
throws KKException
getConfigurationValueAsBigDecimal in interface ConfigurationMgrIfkey - the Configuration Key
KKException - if there is a problem converting the configuration value into a BigDecimal.
public java.math.BigDecimal getConfigurationValueAsBigDecimal(java.lang.String key,
java.math.BigDecimal def)
throws KKException
getConfigurationValueAsBigDecimal in interface ConfigurationMgrIfkey - the Configuration Keydef - default value to use if the key doesn't exist.
KKException - if there is a problem converting the configuration value into a BigDecimal.
public java.lang.Boolean getConfigurationValueAsBool(java.lang.String key,
java.lang.Boolean def)
throws KKException
getConfigurationValueAsBool in interface ConfigurationMgrIfkey - the Configuration Keydef - the default value to be returned if there's a problem
KKException
public void editConfiguration(java.lang.String key,
java.lang.String value)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
editConfiguration in interface ConfigurationMgrIfkey - key whose value will be setvalue - value to set
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||