Package ome.services.blitz.impl
Class ConfigI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.ConfigI
-
- All Implemented Interfaces:
_IConfigOperations,_ServiceInterfaceOperations,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class ConfigI extends AbstractAmdServant implements _IConfigOperations
Implementation of the IConfig service.- Since:
- 3.0-Beta4
- See Also:
IConfig
-
-
Constructor Summary
Constructors Constructor Description ConfigI(ome.api.IConfig service, BlitzExecutor be)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetClientConfigDefaults_async(AMD_IConfig_getClientConfigDefaults __cb, Ice.Current __current)Reads the etc/omero.properties file and returns all the key/value pairs that are found there which match the prefix omero.client.voidgetClientConfigValues_async(AMD_IConfig_getClientConfigValues __cb, Ice.Current __current)Retrieves configuration values likegetConfigValuesbut only those with the prefix omero.client.voidgetConfigDefaults_async(AMD_IConfig_getConfigDefaults __cb, Ice.Current __current)Reads the etc/omero.properties file and returns all the key/value pairs that are found there.voidgetConfigValue_async(AMD_IConfig_getConfigValue __cb, java.lang.String key, Ice.Current __current)Retrieves a configuration value from the backend store.voidgetConfigValues_async(AMD_IConfig_getConfigValues __cb, java.lang.String keyRegex, Ice.Current __current)Retrieves configuration values from the backend store which match the given regex.voidgetDatabaseTime_async(AMD_IConfig_getDatabaseTime __cb, Ice.Current __current)Checks the database for its time using a SELECT statement.voidgetDatabaseUuid_async(AMD_IConfig_getDatabaseUuid __cb, Ice.Current __current)Provides the UUID for this OMERO (database) instance.voidgetServerTime_async(AMD_IConfig_getServerTime __cb, Ice.Current __current)Checks the current server for its time.voidgetVersion_async(AMD_IConfig_getVersion __cb, Ice.Current __current)Provides the release version.voidsetConfigValue_async(AMD_IConfig_setConfigValue __cb, java.lang.String key, java.lang.String value, Ice.Current __current)Sets a configuration value in the backend store.voidsetConfigValueIfEquals_async(AMD_IConfig_setConfigValueIfEquals __cb, java.lang.String key, java.lang.String value, java.lang.String test, Ice.Current __current)CallssetConfigValueif and only if the configuration property is currently equal to the test argument.-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
-
-
-
Constructor Detail
-
ConfigI
public ConfigI(ome.api.IConfig service, BlitzExecutor be)
-
-
Method Detail
-
getConfigValue_async
public void getConfigValue_async(AMD_IConfig_getConfigValue __cb, java.lang.String key, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsRetrieves a configuration value from the backend store. Permissions applied to the configuration value may cause aSecurityViolationto be thrown.- Specified by:
getConfigValue_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.key- The non-null name of the desired configuration value__current- The Current object for the invocation.- Throws:
ServerError
-
getConfigValues_async
public void getConfigValues_async(AMD_IConfig_getConfigValues __cb, java.lang.String keyRegex, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsRetrieves configuration values from the backend store which match the given regex. Any configuration value which would throw an exception on being loaded is omitted.- Specified by:
getConfigValues_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.keyRegex- The non-null regex of the desired configuration values__current- The Current object for the invocation.- Throws:
ServerError
-
getConfigDefaults_async
public void getConfigDefaults_async(AMD_IConfig_getConfigDefaults __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsReads the etc/omero.properties file and returns all the key/value pairs that are found there. Since this file is not to be edited its assumed that these values are in the public domain and so there's no need to protect them.- Specified by:
getConfigDefaults_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getClientConfigValues_async
public void getClientConfigValues_async(AMD_IConfig_getClientConfigValues __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsRetrieves configuration values likegetConfigValuesbut only those with the prefix omero.client.- Specified by:
getClientConfigValues_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getClientConfigDefaults_async
public void getClientConfigDefaults_async(AMD_IConfig_getClientConfigDefaults __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsReads the etc/omero.properties file and returns all the key/value pairs that are found there which match the prefix omero.client.- Specified by:
getClientConfigDefaults_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getDatabaseTime_async
public void getDatabaseTime_async(AMD_IConfig_getDatabaseTime __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsChecks the database for its time using a SELECT statement.- Specified by:
getDatabaseTime_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getDatabaseUuid_async
public void getDatabaseUuid_async(AMD_IConfig_getDatabaseUuid __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsProvides the UUID for this OMERO (database) instance. To make imports and exports function properly, only one physical database should be active with a given instance UUID. All other copies of the database with that UUID are invalid as soon as one modification is made. This value is stored in the configuration table under the key omero.db.uuid.- Specified by:
getDatabaseUuid_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getServerTime_async
public void getServerTime_async(AMD_IConfig_getServerTime __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsChecks the current server for its time. This value may be variant depending on whether the service is clustered or not.- Specified by:
getServerTime_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getVersion_async
public void getVersion_async(AMD_IConfig_getVersion __cb, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsProvides the release version. OMERO-internal values will be in the form Major.minor.patch, starting with the value 4.0.0 for the 4.0 release, Spring 2009. Customized values should begin with a alphabetic sequence followed by a hyphen: ACME-0.0.1 and any build information should follow the patch number also with a hyphen: 4.0.0-RC1. These values will be removed bygetVersion- Specified by:
getVersion_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setConfigValue_async
public void setConfigValue_async(AMD_IConfig_setConfigValue __cb, java.lang.String key, java.lang.String value, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsSets a configuration value in the backend store. Permissions applied to the configuration value may cause aSecurityViolationto be thrown. If the value is null or empty, then the configuration will be removed in all writable configuration sources. If the configuration is set in a non-modifiable source (e.g. in a property file on the classpath), then a subsequent call togetConfigValuewill return that value.- Specified by:
setConfigValue_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.key- The non-null name of the desired configuration valuevalue- The string value to assign to the given key.__current- The Current object for the invocation.- Throws:
ServerError
-
setConfigValueIfEquals_async
public void setConfigValueIfEquals_async(AMD_IConfig_setConfigValueIfEquals __cb, java.lang.String key, java.lang.String value, java.lang.String test, Ice.Current __current) throws ServerError
Description copied from interface:_IConfigOperationsCallssetConfigValueif and only if the configuration property is currently equal to the test argument. If the test is null or empty, then the configuration property will be set only if missing.- Specified by:
setConfigValueIfEquals_asyncin interface_IConfigOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
-