public interface AdminConfigurationMgrIf
| Modifier and Type | Method and Description |
|---|---|
AdminConfigurationGroup[] |
getAllConfigurationGroups()
Returns an array of all the Configuration Group objects
|
KKConfiguration[] |
getAllConfigurations()
Returns an array of all the Configuration objects
|
AdminConfigData[] |
getConfigData(java.lang.String key)
Returns the AdminConfigData items with the specified key or all AdminConfigData items if the
key is null.
|
KKConfiguration |
getConfiguration(java.lang.String key)
Returns a Configuration object referenced by the specified key.
|
KKConfiguration |
getConfigurationFromDb(java.lang.String key)
Returns a Configuration object from the database referenced by the specified key
|
AdminConfigurationGroup[] |
getConfigurationGroupsByTitle(java.lang.String title)
Returns an array of AdminConfigurationGroup objects with the specified title
|
java.lang.String[] |
getConfigurationInfo(java.lang.String[] validationKeys)
Get the configuration values for the given keys
|
int |
getConfigurationIntValue(java.lang.String key)
Returns a Configuration Value for the specified key as an integer
|
int |
getConfigurationIntValueOrDefault(java.lang.String key,
int defaultVal)
Returns a Configuration Value for the specified key as an integer - or a default value
|
KKConfiguration[] |
getConfigurationsByGroup(int configGroup)
Returns an array of Configuration objects for the specified configuration group id
|
java.lang.String |
getConfigurationValue(java.lang.String key)
Returns a Configuration Value for the specified key
|
java.lang.String |
getConfigurationValue(java.lang.String key,
java.lang.String def)
Returns a Configuration Value for the specified key or the default if the configuration key
can't be found
|
boolean |
getConfigurationValueAsBool(java.lang.String key,
boolean defaultVal)
Returns a Configuration Value for the specified key as a boolean - or the specified default
value
|
java.lang.String |
getPropertyValue(java.lang.String propKey) |
java.lang.String |
getPropertyValue(java.lang.String propKey,
java.lang.String def)
Get the property value as a String if found, otherwise return the default
|
boolean |
getPropertyValueAsBool(java.lang.String propKey,
boolean def)
Get the property value as a boolean if found, otherwise return the default
|
int |
getPropertyValueAsInt(java.lang.String propKey,
int def)
Get the property value as an int if found, otherwise return the default
|
long |
getPropertyValueAsLong(java.lang.String propKey,
long def)
Get the property value as a long if found, otherwise return the default
|
long |
getRefreshCacheRequest() |
int[] |
insertConfigData(AdminConfigData[] configs)
Insert the AdminConfigData items.
|
void |
insertConfigs(KKConfiguration[] config)
Insert one or more new configuration parameters
|
int |
insertConfiguration(KKConfiguration config)
Insert a configuration object
|
int |
insertConfigurationGroup(AdminConfigurationGroup configGroup)
Insert a configuration group
|
void |
refreshConfigs()
Refresh the ConfigurationMgr Cache
|
void |
removeConfigData(int id)
Remove the AdminConfigData item from the Database.
|
void |
removeConfigs(java.lang.String[] configKeys)
Remove one or more configuration parameters
|
void |
removeConfigsByIds(int[] configIds)
Remove one or more configuration parameters
|
void |
saveConfigs(KKConfiguration[] configs,
KKConfiguration[] origConfigs)
Saves an array of KKConfiguration objects to the database.
|
boolean |
setConfigurationValue(java.lang.String key,
java.lang.String value)
Sets a Configuration Value for the specified key
|
void |
setRefreshCacheRequest(long refreshCacheRequest) |
void |
updateConfigCaches()
Updates any caches we have made of the configuration variables
|
void |
updateConfigData(AdminConfigData[] configs)
Update the AdminConfigData items.
|
void |
updateConfiguration(KKConfiguration newConf)
Updates a KKConfiguration object
|
void |
updateConfigurationGroup(AdminConfigurationGroup newConf)
Updates an AdminConfigurationGroup object
|
KKConfiguration[] getConfigurationsByGroup(int configGroup) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
configGroup - the Configuration GroupIdorg.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)KKConfiguration[] getAllConfigurations() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
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)AdminConfigurationGroup[] getAllConfigurationGroups() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
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)java.lang.String[] getConfigurationInfo(java.lang.String[] validationKeys)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
validationKeys - an arrray of configuration keysorg.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)KKAdminException - an unexpected exception in the KonaKart Admin engineKKConfiguration getConfiguration(java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
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)KKAdminException - an unexpected exception in the KonaKart Admin engineKKConfiguration getConfigurationFromDb(java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
key - thConfiguration 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)KKAdminException - an unexpected exception in the KonaKart Admin enginejava.lang.String getConfigurationValue(java.lang.String key)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
key - the Configuration 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)KKAdminException - an unexpected exception in the KonaKart Admin enginejava.lang.String getConfigurationValue(java.lang.String key,
java.lang.String def)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
key - the Configuration keydef - the default to use if the configuration key can't be foundorg.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)KKAdminException - an unexpected exception in the KonaKart Admin engineint getConfigurationIntValue(java.lang.String key)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
key - the configuration 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)KKAdminException - an unexpected exception in the KonaKart Admin engineint getConfigurationIntValueOrDefault(java.lang.String key,
int defaultVal)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
key - the configuration keydefaultVal - the default value to be returned if the key isn't foundorg.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)KKAdminException - an unexpected exception in the KonaKart Admin engineboolean getConfigurationValueAsBool(java.lang.String key,
boolean defaultVal)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
key - the configuration keydefaultVal - the default value to be returned if the key isn't foundorg.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)KKAdminException - an unexpected exception in the KonaKart Admin engineboolean setConfigurationValue(java.lang.String key,
java.lang.String value)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException
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)KKAdminException - an unexpected exception in the KonaKart Admin enginevoid saveConfigs(KKConfiguration[] configs, KKConfiguration[] origConfigs) throws java.lang.Exception
configs - Configuration array to save. For optimum performance, any records to insert should
be placed at the end of the array and marked with the status
KonakartAdminConstants.STATUS_INSERTED. Any records to be deleted should be marked
with the KonakartAdminConstants.STATUS_DELETED status.origConfigs - Original Configuration array to compare againstjava.lang.Exception - an unexpected exceptionvoid insertConfigs(KKConfiguration[] config) throws org.apache.torque.TorqueException
config - an array of KKConfiguration objects to insertorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)void removeConfigs(java.lang.String[] configKeys)
throws org.apache.torque.TorqueException,
java.lang.Exception
configKeys - an array of configuration key Strings to removeorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)java.lang.Exception - an unexpected exceptionvoid removeConfigsByIds(int[] configIds)
throws org.apache.torque.TorqueException,
java.lang.Exception
configIds - an array of configuration Id ints to removeorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)java.lang.Exception - an unexpected exceptionvoid updateConfigCaches()
throws java.lang.Exception
java.lang.Exception - an unexpected exceptionint insertConfigurationGroup(AdminConfigurationGroup configGroup) throws org.apache.torque.TorqueException, KKAdminException
configGroup - an AdminConfigurationGroup object to insertorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - an unexpected exception in the KonaKart Admin engineint insertConfiguration(KKConfiguration config) throws org.apache.torque.TorqueException, KKAdminException
config - a KKConfiguration object to insertorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - an unexpected exception in the KonaKart Admin enginevoid updateConfiguration(KKConfiguration newConf) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
newConf - the KKConfiguration to updateorg.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)KKAdminException - an unexpected exception in the KonaKart Admin enginevoid updateConfigurationGroup(AdminConfigurationGroup newConf) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
newConf - the AdminConfigurationGroup to updateorg.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)KKAdminException - an unexpected exception in the KonaKart Admin engineAdminConfigurationGroup[] getConfigurationGroupsByTitle(java.lang.String title) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
title - the titleorg.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)KKAdminException - an unexpected exception in the KonaKart Admin engineAdminConfigData[] getConfigData(java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
key - Only return the AdminConfigData items with this key (if null all AdminConfigData
items 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)KKAdminException - an unexpected exception in the KonaKart Admin enginevoid updateConfigData(AdminConfigData[] configs) throws KKAdminException, org.apache.torque.TorqueException
configs - The AdminConfigData items to updateKKAdminException - an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)int[] insertConfigData(AdminConfigData[] configs) throws KKAdminException, org.apache.torque.TorqueException
configs - The AdminConfigData items to insertKKAdminException - an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)void removeConfigData(int id)
throws KKAdminException,
org.apache.torque.TorqueException
id - The id of the AdminConfigData items to removeKKAdminException - an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)java.lang.String getPropertyValue(java.lang.String propKey)
throws KKAdminException
propKey - the propKeyKKAdminException - an unexpected exception in the KonaKart Admin enginejava.lang.String getPropertyValue(java.lang.String propKey,
java.lang.String def)
throws KKAdminException
propKey - the property keydef - the default to use if the key isn't foundKKAdminException - an unexpected exception in the KonaKart Admin engineint getPropertyValueAsInt(java.lang.String propKey,
int def)
throws KKAdminException
propKey - the property keydef - the default to use if the key isn't foundKKAdminException - an unexpected exception in the KonaKart Admin enginelong getPropertyValueAsLong(java.lang.String propKey,
long def)
throws KKAdminException
propKey - the property keydef - the default to use if the key isn't foundKKAdminException - an unexpected exception in the KonaKart Admin engineboolean getPropertyValueAsBool(java.lang.String propKey,
boolean def)
throws KKAdminException
propKey - the property keydef - the default to use if the key isn't foundKKAdminException - an unexpected exception in the KonaKart Admin enginevoid refreshConfigs()
throws KKAdminException
KKAdminException - an unexpected exception in the KonaKart Admin enginelong getRefreshCacheRequest()
void setRefreshCacheRequest(long refreshCacheRequest)
refreshCacheRequest - the refreshCacheRequest to setCopyright © 2018 DS Data Systems UK Ltd.