@Transactional public class ConfigImpl extends AbstractLevel2Service implements LocalConfig
IConfigiQuery, iUpdate, metadata, queryFactory, secVERSION_REGEX| Constructor and Description |
|---|
ConfigImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getClientConfigDefaults()
reads the etc/omero.properties file and returns all the key/value
pairs that are found there which match the prefix "omero.client".
|
Map<String,String> |
getClientConfigValues()
retrieves configuration values like
IConfig.getConfigValues(String)
but only those with the prefix "omero.client". |
Map<String,String> |
getConfigDefaults()
reads the etc/omero.properties file and returns all the key/value
pairs that are found there.
|
String |
getConfigValue(String key)
|
Map<String,String> |
getConfigValues(String keyRegex)
retrieves configuration values from the backend store which match the
given regex.
|
Date |
getDatabaseTime()
|
String |
getDatabaseUuid()
Provides the UUID for this OMERO (database) instance.
|
String |
getDatabaseVersion()
Retrieves the newest database patch.
|
String |
getInternalValue(String key)
Provides a configuration value, ignoring the visibility of the given
value.
|
Date |
getServerTime()
|
Class<? extends ServiceInterface> |
getServiceInterface() |
String |
getVersion()
|
void |
setConfigValue(String key,
String value)
|
boolean |
setConfigValueIfEquals(String key,
String value,
String test)
|
void |
setCurrentDetails(CurrentDetails currentDetails)
PreferenceContext setter for dependency injection. |
void |
setDatabaseIdentity(DatabaseIdentity db) |
void |
setPreferenceContext(PreferenceContext prefs)
PreferenceContext setter for dependency injection. |
void |
setSqlAction(SqlAction sql)
SqlAction setter for dependency injection. |
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateServicepublic final void setSqlAction(SqlAction sql)
SqlAction setter for dependency injection.sql - BeanHelper.throwIfAlreadySet(Object, Object)public final void setPreferenceContext(PreferenceContext prefs)
PreferenceContext setter for dependency injection.prefs - BeanHelper.throwIfAlreadySet(Object, Object)public final void setCurrentDetails(CurrentDetails currentDetails)
PreferenceContext setter for dependency injection.prefs - BeanHelper.throwIfAlreadySet(Object, Object)public final void setDatabaseIdentity(DatabaseIdentity db)
public final Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface in interface SelfConfigurableServicepublic Date getServerTime()
getServerTime in interface IConfigDate representation of the server's own time.public Date getDatabaseTime()
getDatabaseTime in interface IConfigDate representation of the database's time.public String getConfigValue(String key)
getConfigValue in interface IConfigkey - The non-null name of the desired configuration valueString value linked to this key, possibly null if not
set.public Map<String,String> getConfigValues(String keyRegex)
IConfiggetConfigValues in interface IConfigkeyRegex - The non-null regex of the desired configuration valuesMap from the found keys to the linked values.public Map<String,String> getConfigDefaults()
IConfiggetConfigDefaults in interface IConfigMap from the found keys to the linked values.public Map<String,String> getClientConfigValues()
IConfigIConfig.getConfigValues(String)
but only those with the prefix "omero.client".getClientConfigValues in interface IConfigMap from the found keys to the linked values.public Map<String,String> getClientConfigDefaults()
IConfiggetClientConfigDefaults in interface IConfigMap from the found keys to the linked values.public String getInternalValue(String key)
LocalConfiggetInternalValue in interface LocalConfigpublic void setConfigValue(String key, String value)
setConfigValue in interface IConfigkey - The non-null name of the desired configuration valuevalue - The String value to assign to the given key.public boolean setConfigValueIfEquals(String key, String value, String test) throws ApiUsageException, SecurityViolation
setConfigValueIfEquals in interface IConfigApiUsageExceptionSecurityViolationIConfig.setConfigValue(String, String)public String getVersion()
getVersion in interface IConfigIConfig.VERSION_REGEXpublic String getDatabaseVersion()
LocalConfiggetDatabaseVersion in interface LocalConfigpublic String getDatabaseUuid()
IConfiggetDatabaseUuid in interface IConfig
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.