public interface ConfigurationMgrIf
Modifier and Type | Method and Description |
---|---|
void |
editConfiguration(java.lang.String key,
java.lang.String value)
Deprecated.
From version 6.3.0.0 you should use the Administration APIs (KKAdminIf) instead.
|
ConfigDataIf[] |
getConfigData(java.lang.String key)
Returns the ConfigData items with the specified key or all ConfigData items if the key is
null.
|
ConfigDataIf[] |
getConfigData(java.lang.String sessionId,
java.lang.String key)
Returns the ConfigData items with the specified key or all ConfigData items if the key is
null.
|
KKConfiguration |
getConfiguration(boolean checkReturnByApi,
java.lang.String key)
Returns a Configuration object referenced by the key passed in as a parameter.
|
KKConfiguration |
getConfiguration(java.lang.String key)
Returns a Configuration object referenced by the key passed in as a parameter.
|
KKConfiguration |
getConfigurationNoCache(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 and that have been defined to be returned via the API.
|
KKConfiguration[] |
getConfigurations(boolean checkReturnByApi)
Returns an array of Configuration objects containing all configurations that have been
defined in the system.
|
java.lang.String |
getConfigurationValue(boolean checkReturnByApi,
java.lang.String key)
Returns a Configuration Value for the key passed in as a parameter.
|
java.lang.String |
getConfigurationValue(boolean checkReturnByApi,
java.lang.String key,
boolean logIfNotFound)
Returns a Configuration Value for the key passed in as a parameter.
|
java.lang.String |
getConfigurationValue(java.lang.String key)
Returns a Configuration Value for the key passed in as a parameter.
|
java.math.BigDecimal |
getConfigurationValueAsBigDecimal(boolean checkReturnByApi,
java.lang.String key)
Returns a Configuration Value as a BigDecimal for the key passed in as a parameter
|
java.math.BigDecimal |
getConfigurationValueAsBigDecimal(boolean checkReturnByApi,
java.lang.String key,
java.math.BigDecimal def)
Returns a Configuration Value as a BigDecimal 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(boolean checkReturnByApi,
java.lang.String key,
java.lang.Boolean def)
Returns a Configuration Value as a Boolean 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(boolean checkReturnByApi,
java.lang.String key)
Returns a Configuration Value as an integer for the key passed in as a parameter
|
int |
getConfigurationValueAsInt(boolean checkReturnByApi,
java.lang.String key,
int def)
Returns a Configuration Value as an integer 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.
|
java.lang.Long |
getConfigurationValueAsLong(boolean checkReturnByApi,
java.lang.String key)
Returns a Configuration Value as a Long for the key passed in as a parameter
|
java.lang.Long |
getConfigurationValueAsLong(boolean checkReturnByApi,
java.lang.String key,
java.lang.Long def)
Returns a Configuration Value as a Long for the key passed in as a parameter
|
java.lang.Long |
getConfigurationValueAsLong(java.lang.String key)
Returns a Configuration Value as a Long for the key passed in as a parameter.
|
java.lang.Long |
getConfigurationValueAsLong(java.lang.String key,
java.lang.Long def)
Returns a Configuration Value as a Long for the key passed in as a parameter.
|
void |
refreshConfigs()
Refresh the configuration of the Configuration manager
|
KKConfiguration[] getConfigurations() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException
- an unexpected KKException exceptionKKConfiguration[] getConfigurations(boolean checkReturnByApi) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether each configuration parameter can be returned by
the API. Only those configuration parameters allowed to be returned by the API are
returned.
if false, no check is performed and all configuration parameters are returned.
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException
- an unexpected KKException exceptionKKConfiguration getConfiguration(java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
key
- the keyorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException
- an unexpected KKException exceptionKKConfiguration getConfigurationNoCache(java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
key
- the keyorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException
- an unexpected KKException exceptionKKConfiguration getConfiguration(boolean checkReturnByApi, java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the key of the configuration parameterorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException
- an unexpected KKException exceptionjava.lang.String getConfigurationValue(java.lang.String key) throws com.konakart.app.KKException
key
- the Configuration Keycom.konakart.app.KKException
- an unexpected KKException exceptionjava.lang.String getConfigurationValue(boolean checkReturnByApi, java.lang.String key) throws com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the Configuration Keycom.konakart.app.KKException
- an unexpected KKException exceptionjava.lang.String getConfigurationValue(boolean checkReturnByApi, java.lang.String key, boolean logIfNotFound) throws com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the Configuration KeylogIfNotFound
- if true, a logging message is written if the key isn't foundcom.konakart.app.KKException
- an unexpected KKException exceptionjava.lang.Long getConfigurationValueAsLong(java.lang.String key) throws com.konakart.app.KKException
key
- the Configuration Keycom.konakart.app.KKException
- if there is a problem converting the configuration value into a Long.java.lang.Long getConfigurationValueAsLong(boolean checkReturnByApi, java.lang.String key) throws com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the Configuration Keycom.konakart.app.KKException
- if there is a problem converting the configuration value into a Long.java.lang.Long getConfigurationValueAsLong(java.lang.String key, java.lang.Long def) throws com.konakart.app.KKException
key
- the Configuration Keydef
- default value to return if the key isn't found.com.konakart.app.KKException
- if there is a problem converting the configuration value into a Long.java.lang.Long getConfigurationValueAsLong(boolean checkReturnByApi, java.lang.String key, java.lang.Long def) throws com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the Configuration Keydef
- default value to return if the key isn't found.com.konakart.app.KKException
- if there is a problem converting the configuration value into a Long.int getConfigurationValueAsInt(boolean checkReturnByApi, java.lang.String key) throws com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the Configuration Keycom.konakart.app.KKException
- if there is a problem converting the configuration value into an integer.int getConfigurationValueAsInt(java.lang.String key) throws com.konakart.app.KKException
key
- the Configuration Keycom.konakart.app.KKException
- if there is a problem converting the configuration value into an integer.int getConfigurationValueAsInt(java.lang.String key, int def) throws com.konakart.app.KKException
key
- the Configuration Keydef
- default value to return if the key isn't found.com.konakart.app.KKException
- if there is a problem converting the configuration value into an integer.int getConfigurationValueAsInt(boolean checkReturnByApi, java.lang.String key, int def) throws com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the Configuration Keydef
- default value to return if the key isn't found.com.konakart.app.KKException
- if there is a problem converting the configuration value into an integer.java.math.BigDecimal getConfigurationValueAsBigDecimal(java.lang.String key) throws com.konakart.app.KKException
key
- the Configuration Keycom.konakart.app.KKException
- if there is a problem converting the configuration value into a BigDecimal.java.math.BigDecimal getConfigurationValueAsBigDecimal(boolean checkReturnByApi, java.lang.String key) throws com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the Configuration Keycom.konakart.app.KKException
- if there is a problem converting the configuration value into a BigDecimal.java.math.BigDecimal getConfigurationValueAsBigDecimal(java.lang.String key, java.math.BigDecimal def) throws com.konakart.app.KKException
key
- the Configuration Keydef
- default value to use if the key doesn't exist.com.konakart.app.KKException
- if there is a problem converting the configuration value into a BigDecimal.java.math.BigDecimal getConfigurationValueAsBigDecimal(boolean checkReturnByApi, java.lang.String key, java.math.BigDecimal def) throws com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the Configuration Keydef
- default value to use if the key doesn't exist.com.konakart.app.KKException
- if there is a problem converting the configuration value into a BigDecimal.java.lang.Boolean getConfigurationValueAsBool(java.lang.String key, java.lang.Boolean def) throws com.konakart.app.KKException
key
- the Configuration Keydef
- the default value to be returned if there's a problemcom.konakart.app.KKException
- an unexpected KKException exceptionjava.lang.Boolean getConfigurationValueAsBool(boolean checkReturnByApi, java.lang.String key, java.lang.Boolean def) throws com.konakart.app.KKException
checkReturnByApi
- if true a check is made on whether this configuration parameter can be returned by
the API. If it can't an Exception is thrown.key
- the Configuration Keydef
- the default value to be returned if there's a problemcom.konakart.app.KKException
- an unexpected KKException exception@Deprecated void editConfiguration(java.lang.String key, java.lang.String value) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
Previously this call allowed the edit of an existing configuration parameter. It threw an exception if the configuration didn't exist.
key
- key whose value will be setvalue
- value to setorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException
- an unexpected KKException exceptionConfigDataIf[] getConfigData(java.lang.String sessionId, java.lang.String key) throws java.lang.Exception
sessionId
- Session Id of the customer.key
- Only return the ConfigData items with this keyjava.lang.Exception
- an unexpected exceptionConfigDataIf[] getConfigData(java.lang.String key) throws java.lang.Exception
key
- Only return the ConfigData items with this key (if null all ConfigData items are
returned)java.lang.Exception
- an unexpected exceptionvoid refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.