|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.logic.AbstractLevel2Service
ome.logic.ConfigImpl
@Transactional public class ConfigImpl
implementation of the IConfig service interface. Also used as the main developer example for developing (stateless) ome.logic implementations. See source code documentation for more.
IConfig
Field Summary |
---|
Fields inherited from class ome.logic.AbstractLevel2Service |
---|
iQuery, iUpdate, metadata, queryFactory, sec |
Fields inherited from interface ome.api.IConfig |
---|
VERSION_REGEX |
Constructor Summary | |
---|---|
ConfigImpl()
|
Methods inherited from class ome.logic.AbstractLevel2Service |
---|
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigImpl()
Method Detail |
---|
public final void setJdbcTemplate(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbcTemplate)
SimpleJdbcTemplate
setter for dependency injection.
jdbcTemplate
- 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()
IConfig.getServerTime()
getServerTime
in interface IConfig
Date
representation of the server's own time.public Date getDatabaseTime()
IConfig.getDatabaseTime()
getDatabaseTime
in interface IConfig
Date
representation of the database's time.public String getConfigValue(String key)
IConfig.getConfigValue(String)
getConfigValue
in interface IConfig
key
- The non-null name of the desired configuration value
String
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)
IConfig.setConfigValue(String, String)
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
IConfig.setConfigValueIfEquals(String, String, String)
setConfigValueIfEquals
in interface IConfig
ome.conditions.ApiUsageException
ome.conditions.SecurityViolation
IConfig.setConfigValue(String, String)
public String getVersion()
IConfig.getVersion()
getVersion
in interface IConfig
IConfig.VERSION_REGEX
public String getDatabaseVersion()
LocalConfig
getDatabaseVersion
in interface LocalConfig
public String getDatabaseUuid()
IConfig
getDatabaseUuid
in interface IConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.