@Transactional(readOnly=true) public class ConfigImpl extends AbstractLevel2Service implements org.springframework.context.ApplicationContextAware, LocalConfig
IConfig
iQuery, iUpdate, metadata, queryFactory, readOnlyStatus, sec
Constructor and Description |
---|
ConfigImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getClientConfigDefaults() |
java.util.Map<java.lang.String,java.lang.String> |
getClientConfigValues() |
java.util.Map<java.lang.String,java.lang.String> |
getConfigDefaults() |
java.lang.String |
getConfigValue(java.lang.String key)
see
IConfig.getConfigValue(String) |
java.util.Map<java.lang.String,java.lang.String> |
getConfigValues(java.lang.String keyRegex) |
java.util.Date |
getDatabaseTime()
see
IConfig.getDatabaseTime() |
java.lang.String |
getDatabaseUuid() |
java.lang.String |
getDatabaseVersion()
Retrieves the newest database patch.
|
java.lang.String |
getInternalValue(java.lang.String key)
Provides a configuration value, ignoring the visibility of the given
value.
|
java.util.Date |
getServerTime()
see
IConfig.getServerTime() |
java.lang.Class<? extends ome.api.ServiceInterface> |
getServiceInterface() |
java.lang.String |
getVersion()
see
IConfig.getVersion() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setConfigValue(java.lang.String key,
java.lang.String value)
see
IConfig.setConfigValue(String, String) |
boolean |
setConfigValueIfEquals(java.lang.String key,
java.lang.String value,
java.lang.String test)
see
IConfig.setConfigValueIfEquals(String, String, String) |
void |
setCurrentDetails(CurrentDetails currentDetails)
CurrentDetails setter for dependency injection. |
void |
setDatabaseIdentity(DatabaseIdentity db) |
void |
setPreferenceContext(ome.system.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, setReadOnlyStatus, setSecuritySystem, setUpdateService
public final void setSqlAction(ome.util.SqlAction sql)
SqlAction
setter for dependency injection.sql
- the SQL action instanceBeanHelper.throwIfAlreadySet(Object, Object)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public final void setPreferenceContext(ome.system.PreferenceContext prefs)
PreferenceContext
setter for dependency injection.prefs
- the preference contextBeanHelper.throwIfAlreadySet(Object, Object)
public final void setCurrentDetails(CurrentDetails currentDetails)
CurrentDetails
setter for dependency injection.currentDetails
- the details of the current thread's security contextBeanHelper.throwIfAlreadySet(Object, Object)
public final void setDatabaseIdentity(DatabaseIdentity db)
public final java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
getServiceInterface
in interface ome.system.SelfConfigurableService
public java.util.Date getServerTime()
IConfig.getServerTime()
getServerTime
in interface ome.api.IConfig
public java.util.Date getDatabaseTime()
IConfig.getDatabaseTime()
getDatabaseTime
in interface ome.api.IConfig
public java.lang.String getConfigValue(java.lang.String key)
IConfig.getConfigValue(String)
getConfigValue
in interface ome.api.IConfig
public java.util.Map<java.lang.String,java.lang.String> getConfigValues(java.lang.String keyRegex)
getConfigValues
in interface ome.api.IConfig
public java.util.Map<java.lang.String,java.lang.String> getConfigDefaults()
getConfigDefaults
in interface ome.api.IConfig
public java.util.Map<java.lang.String,java.lang.String> getClientConfigValues()
getClientConfigValues
in interface ome.api.IConfig
public java.util.Map<java.lang.String,java.lang.String> getClientConfigDefaults()
getClientConfigDefaults
in interface ome.api.IConfig
public java.lang.String getInternalValue(java.lang.String key)
LocalConfig
getInternalValue
in interface LocalConfig
@Transactional(readOnly=false) public void setConfigValue(java.lang.String key, java.lang.String value)
IConfig.setConfigValue(String, String)
setConfigValue
in interface ome.api.IConfig
@Transactional(readOnly=false) public boolean setConfigValueIfEquals(java.lang.String key, java.lang.String value, java.lang.String test) throws ome.conditions.ApiUsageException, ome.conditions.SecurityViolation
IConfig.setConfigValueIfEquals(String, String, String)
setConfigValueIfEquals
in interface ome.api.IConfig
ome.conditions.ApiUsageException
ome.conditions.SecurityViolation
public java.lang.String getVersion()
IConfig.getVersion()
getVersion
in interface ome.api.IConfig
public java.lang.String getDatabaseVersion()
LocalConfig
getDatabaseVersion
in interface LocalConfig
public java.lang.String getDatabaseUuid()
getDatabaseUuid
in interface ome.api.IConfig