|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminConfigurationMgrIf
AdminConfigurationMgrIf
Method Summary | |
---|---|
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 |
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 |
boolean |
getConfigurationValueAsBool(java.lang.String key,
boolean defaultVal)
Returns a Configuration Value for the specified key as a boolean - or the specified default value |
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 |
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 |
updateConfigCaches()
Updates any caches we have made of the configuration variables |
void |
updateConfiguration(KKConfiguration newConf)
Updates a KKConfiguration object |
void |
updateConfigurationGroup(AdminConfigurationGroup newConf)
Updates an AdminConfigurationGroup object |
Method Detail |
---|
KKConfiguration[] getConfigurationsByGroup(int configGroup) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
configGroup
- the Configuration GroupId
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKConfiguration[] getAllConfigurations() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminConfigurationGroup[] getAllConfigurationGroups() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.lang.String[] getConfigurationInfo(java.lang.String[] validationKeys) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
validationKeys
- an arrray of configuration keys
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
KKConfiguration getConfiguration(java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
key
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
java.lang.String getConfigurationValue(java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
key
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
int getConfigurationIntValue(java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
key
- the configuration key
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
int 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 found
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
boolean 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 found
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
boolean 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 set
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
void 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 against
java.lang.Exception
void insertConfigs(KKConfiguration[] config) throws org.apache.torque.TorqueException
config
- an array of KKConfiguration objects to insert
org.apache.torque.TorqueException
void removeConfigs(java.lang.String[] configKeys) throws org.apache.torque.TorqueException
configKeys
- an array of configuration key Strings to remove
org.apache.torque.TorqueException
void removeConfigsByIds(int[] configIds) throws org.apache.torque.TorqueException
configIds
- an array of configuration Id ints to remove
org.apache.torque.TorqueException
void updateConfigCaches() throws java.lang.Exception
java.lang.Exception
int insertConfigurationGroup(AdminConfigurationGroup configGroup) throws org.apache.torque.TorqueException, KKAdminException
configGroup
- an AdminConfigurationGroup object to insert
org.apache.torque.TorqueException
KKAdminException
int insertConfiguration(KKConfiguration config) throws org.apache.torque.TorqueException, KKAdminException
config
- a KKConfiguration object to insert
org.apache.torque.TorqueException
KKAdminException
void updateConfiguration(KKConfiguration newConf) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
newConf
- the KKConfiguration to update
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
void updateConfigurationGroup(AdminConfigurationGroup newConf) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
newConf
- the AdminConfigurationGroup to update
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminConfigurationGroup[] getConfigurationGroupsByTitle(java.lang.String title) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
title
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminConfigData[] 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
com.workingdogs.village.DataSetException
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |