@Transactional public class ConfigImpl extends AbstractLevel2Service implements LocalConfig
IConfig
iQuery, iUpdate, metadata, queryFactory, sec
VERSION_REGEX
Constructor and Description |
---|
ConfigImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getConfigValue(String key)
|
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(ome.util.SqlAction sql)
SqlAction setter for dependency injection. |
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateService
public final void setSqlAction(ome.util.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 SelfConfigurableService
public Date getServerTime()
getServerTime
in interface IConfig
Date
representation of the server's own time.public Date getDatabaseTime()
getDatabaseTime
in interface IConfig
Date
representation of the database's time.public String getConfigValue(String key)
getConfigValue
in interface IConfig
key
- The non-null name of the desired configuration valueString
value linked to this key, possibly null if not
set.public String getInternalValue(String key)
LocalConfig
getInternalValue
in interface LocalConfig
public void setConfigValue(String key, String value)
setConfigValue
in interface IConfig
key
- 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 ome.conditions.ApiUsageException, ome.conditions.SecurityViolation
setConfigValueIfEquals
in interface IConfig
ome.conditions.ApiUsageException
ome.conditions.SecurityViolation
IConfig.setConfigValue(String, String)
public String getVersion()
getVersion
in interface IConfig
IConfig.VERSION_REGEX
public String getDatabaseVersion()
LocalConfig
getDatabaseVersion
in interface LocalConfig
public String getDatabaseUuid()
IConfig
getDatabaseUuid
in interface IConfig
Version: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.