@Deprecated public class ResourceManager extends java.lang.Object implements SystemResourceService
SystemResourceService.CodingSchemeMatcher
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
codingSchemeVersionSeparator_
Deprecated.
The Constant codingSchemeVersionSeparator_.
|
Constructor and Description |
---|
ResourceManager()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addCodingSchemeResourceFromSystem(java.lang.String uri,
java.lang.String version)
Deprecated.
Adds the coding scheme resource from system.
|
void |
addCodingSchemeResourceToSystem(CodingScheme codingScheme)
Deprecated.
|
void |
addCodingSchemeResourceToSystem(java.lang.String uri,
java.lang.String version)
Deprecated.
Adds the coding scheme resource to system.
|
void |
addNciHistoryResourceToSystem(java.lang.String uri)
Deprecated.
Adds the coding scheme resource to system.
|
void |
addPickListDefinitionResourceToSystem(java.lang.String uri,
java.lang.String version)
Deprecated.
Adds the pick list resource to system.
|
void |
addSystemEventListeners(SystemEventListener listener)
Deprecated.
|
void |
addValueSetDefinitionResourceToSystem(java.lang.String uri,
java.lang.String version)
Deprecated.
Adds the value set definition resource to system.
|
boolean |
containsCodingSchemeResource(java.lang.String uri,
java.lang.String version)
Deprecated.
Contains coding scheme resource.
|
boolean |
containsNonCodingSchemeResource(java.lang.String uri)
Deprecated.
Contains non coding scheme resource.
|
boolean |
containsPickListDefinitionResource(java.lang.String uri,
java.lang.String version)
Deprecated.
Contains pick list definition resource.
|
boolean |
containsValueSetDefinitionResource(java.lang.String uri,
java.lang.String version)
Deprecated.
Contains value set definition resource.
|
java.lang.String |
createNewTablesForLoad()
Deprecated.
Creates the new tables for load.
|
void |
deactivate(AbsoluteCodingSchemeVersionReference codingScheme,
java.util.Date date)
Deprecated.
Deactivate.
|
static void |
dumpLogQueue()
Deprecated.
Dump log queue.
|
SQLInterface[] |
getAllSQLInterfaces()
Deprecated.
Gets the all sql interfaces.
|
java.util.Map |
getCache()
Deprecated.
Gets the cache.
|
MyClassLoader |
getClassLoader()
Deprecated.
Gets the class loader.
|
DatabaseType |
getDatabaseType()
Deprecated.
Gets the database type.
|
javax.sql.DataSource |
getDataSource()
Deprecated.
Gets the data source.
|
java.lang.String |
getExternalCodingSchemeNameForUserCodingSchemeNameOrId(java.lang.String codingScheme,
java.lang.String version)
Deprecated.
Gets the external coding scheme name for user coding scheme name or id.
|
IndexInterface |
getIndexInterface(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString)
Deprecated.
Gets the index interface.
|
java.lang.String |
getInternalCodingSchemeNameForUserCodingSchemeName(java.lang.String codingSchemeName,
java.lang.String version)
Deprecated.
Gets the internal coding scheme name for user coding scheme name.
|
java.lang.String |
getInternalVersionStringForTag(java.lang.String externalCodeSystemName,
java.lang.String tag)
Deprecated.
Gets the internal version string for tag.
|
LgLoggerIF |
getLogger()
Deprecated.
Gets the logger.
|
java.util.List<AbsoluteCodingSchemeVersionReference> |
getMatchingCodingSchemeResources(SystemResourceService.CodingSchemeMatcher codingSchemeMatcher)
Deprecated.
Gets the matching coding scheme resources.
|
XmlRegistry |
getRegistry()
Deprecated.
Gets the registry.
|
java.lang.String |
getRelationshipCodingSchemeNameForURNorName(java.lang.String supportedCodingSchemeNameOrUrn,
java.lang.String internalCodingSchemeName,
boolean throwError)
Deprecated.
This works on the SupportedCodingScheme to URN mappings provided in the
database.
|
SQLConnectionInfo |
getSQLConnectionInfoForHistoryLoad()
Deprecated.
Get the connection information to use for loading a new history file.
|
SQLConnectionInfo |
getSQLConnectionInfoForLoad()
Deprecated.
Get the connection information to use for loading a new db.
|
SQLInterface |
getSQLInterface(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString)
Deprecated.
Gets the sQL interface.
|
SQLHistoryInterface |
getSQLInterfaceForHistory(java.lang.String codingSchemeURN)
Deprecated.
Gets the sQL interface for history.
|
SystemVariables |
getSystemVariables()
Deprecated.
Gets the system variables.
|
java.lang.String |
getUriForUserCodingSchemeName(java.lang.String codingSchemeName,
java.lang.String version)
Deprecated.
Gets the uri for user coding scheme name.
|
java.lang.String |
getURNForExternalCodingSchemeName(java.lang.String externalCodingSchemeName)
Deprecated.
|
java.lang.String |
getURNForExternalCodingSchemeName(java.lang.String externalCodingSchemeName,
java.lang.String version)
Deprecated.
Gets the uRN for external coding scheme name.
|
java.lang.String |
getURNForInternalCodingSchemeName(java.lang.String internalCodingSchemeName)
Deprecated.
|
java.lang.String |
getURNForInternalCodingSchemeName(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString)
Deprecated.
Gets the uRN for internal coding scheme name.
|
XmlRegistry |
getXmlRegistry()
Deprecated.
Gets the xml registry.
|
void |
init()
Deprecated.
Inits the.
|
void |
initialize()
Deprecated.
|
static ResourceManager |
instance()
Deprecated.
Instance.
|
void |
readHistories()
Deprecated.
Read histories.
|
AbsoluteCodingSchemeVersionReference[] |
readTerminologiesFromServer(SQLConnectionInfo server)
Deprecated.
Read terminologies from server.
|
void |
refresh()
Deprecated.
|
void |
registerCodingSchemeSupplement(AbsoluteCodingSchemeVersionReference parentScheme,
AbsoluteCodingSchemeVersionReference supplement)
Deprecated.
|
static void |
reInit(java.util.Properties props)
Deprecated.
This method is used by the lock manager thread, if another thread changed
something.
|
void |
removeCodeSystem(AbsoluteCodingSchemeVersionReference codingSchemeReference)
Deprecated.
Removes the code system.
|
void |
removeCodingSchemeResourceFromSystem(java.lang.String uri,
java.lang.String version)
Deprecated.
Removes the coding scheme resource from system.
|
void |
removeHistoryService(java.lang.String urn)
Deprecated.
Removes the history service.
|
void |
removeNciHistoryResourceToSystemFromSystem(java.lang.String uri)
Deprecated.
|
void |
removeNonCodingSchemeResourceFromSystem(java.lang.String uri)
Deprecated.
|
void |
removePickListDefinitionResourceFromSystem(java.lang.String uri,
java.lang.String version)
Deprecated.
Removes the pick list definition resource from system.
|
void |
removeValueSetDefinitionResourceFromSystem(java.lang.String uri,
java.lang.String version)
Deprecated.
Removes the value set definition resource from system.
|
void |
setDatabaseType(DatabaseType databaseType)
Deprecated.
Sets the database type.
|
void |
setDataSource(javax.sql.DataSource dataSource)
Deprecated.
Sets the data source.
|
void |
setLogger(LgLoggerIF logger)
Deprecated.
Sets the logger.
|
void |
setPendingStatus(AbsoluteCodingSchemeVersionReference codingScheme)
Deprecated.
Sets the pending status.
|
void |
setSystemVariables(SystemVariables systemVars)
Deprecated.
Sets the system variables.
|
void |
setXmlRegistry(XmlRegistry registry)
Deprecated.
Sets the xml registry.
|
void |
shutdown()
Deprecated.
|
void |
unRegisterCodingSchemeSupplement(AbsoluteCodingSchemeVersionReference parentScheme,
AbsoluteCodingSchemeVersionReference supplement)
Deprecated.
|
void |
updateCodingSchemeEntryTag(AbsoluteCodingSchemeVersionReference codingScheme,
java.lang.String newTag)
Deprecated.
Update coding scheme entry tag.
|
void |
updateCodingSchemeResourceStatus(AbsoluteCodingSchemeVersionReference codingScheme,
CodingSchemeVersionStatus status)
Deprecated.
Update coding scheme resource status.
|
void |
updateCodingSchemeResourceTag(AbsoluteCodingSchemeVersionReference codingScheme,
java.lang.String newTag)
Deprecated.
Update coding scheme resource tag.
|
void |
updateNonCodingSchemeResourceStatus(java.lang.String uri,
CodingSchemeVersionStatus status)
Deprecated.
Update non coding scheme resource status.
|
void |
updateNonCodingSchemeResourceTag(java.lang.String uri,
java.lang.String newTag)
Deprecated.
Update non coding scheme resource tag.
|
void |
updateTag(AbsoluteCodingSchemeVersionReference codingScheme,
java.lang.String newTag)
Deprecated.
Update tag.
|
void |
updateVersion(AbsoluteCodingSchemeVersionReference codingScheme,
java.lang.String newVersion)
Deprecated.
Update version.
|
public static final java.lang.String codingSchemeVersionSeparator_
public static ResourceManager instance()
public static void dumpLogQueue()
public static void reInit(java.util.Properties props)
props
- the propspublic void init() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic void readHistories()
public AbsoluteCodingSchemeVersionReference[] readTerminologiesFromServer(SQLConnectionInfo server)
server
- the serverpublic SystemVariables getSystemVariables()
getSystemVariables
in interface SystemResourceService
public LgLoggerIF getLogger()
public java.util.Map getCache()
public SQLConnectionInfo getSQLConnectionInfoForLoad() throws LBInvocationException
LBInvocationException
- the LB invocation exceptionpublic SQLConnectionInfo getSQLConnectionInfoForHistoryLoad() throws LBInvocationException
LBInvocationException
- the LB invocation exceptionpublic SQLInterface getSQLInterface(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws MissingResourceException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringMissingResourceException
- the missing resource exceptionpublic java.lang.String getInternalCodingSchemeNameForUserCodingSchemeName(java.lang.String codingSchemeName, java.lang.String version) throws LBParameterException
SystemResourceService
getInternalCodingSchemeNameForUserCodingSchemeName
in interface SystemResourceService
codingSchemeName
- the coding scheme nameversion
- the versionLBParameterException
- the LB parameter exceptionpublic java.lang.String getExternalCodingSchemeNameForUserCodingSchemeNameOrId(java.lang.String codingScheme, java.lang.String version)
codingScheme
- the coding schemeversion
- the versionpublic java.lang.String getRelationshipCodingSchemeNameForURNorName(java.lang.String supportedCodingSchemeNameOrUrn, java.lang.String internalCodingSchemeName, boolean throwError) throws MissingResourceException
supportedCodingSchemeNameOrUrn
- the supported coding scheme name or urninternalCodingSchemeName
- the internal coding scheme namethrowError
- the throw errorMissingResourceException
- the missing resource exceptionpublic java.lang.String getInternalVersionStringForTag(java.lang.String externalCodeSystemName, java.lang.String tag) throws LBParameterException
SystemResourceService
getInternalVersionStringForTag
in interface SystemResourceService
externalCodeSystemName
- the coding scheme nametag
- the tagLBParameterException
- the LB parameter exceptionpublic IndexInterface getIndexInterface(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws MissingResourceException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringMissingResourceException
- the missing resource exceptionpublic SQLInterface[] getAllSQLInterfaces()
public java.lang.String getURNForInternalCodingSchemeName(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws LBParameterException
internalCodingSchemeName
- the internal coding scheme nameLBParameterException
- the LB parameter exceptionpublic java.lang.String getURNForExternalCodingSchemeName(java.lang.String externalCodingSchemeName, java.lang.String version) throws LBParameterException
externalCodingSchemeName
- the external coding scheme nameLBParameterException
- the LB parameter exceptionpublic java.lang.String getURNForExternalCodingSchemeName(java.lang.String externalCodingSchemeName) throws LBParameterException
LBParameterException
public java.lang.String getURNForInternalCodingSchemeName(java.lang.String internalCodingSchemeName) throws LBParameterException
LBParameterException
public SQLHistoryInterface getSQLInterfaceForHistory(java.lang.String codingSchemeURN) throws LBParameterException
codingSchemeURN
- the coding scheme urnLBParameterException
- the LB parameter exceptionpublic XmlRegistry getRegistry()
public void removeCodeSystem(AbsoluteCodingSchemeVersionReference codingSchemeReference) throws LBInvocationException, LBParameterException
codingSchemeReference
- the coding scheme referenceLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void removeNciHistoryResourceToSystemFromSystem(java.lang.String uri)
removeNciHistoryResourceToSystemFromSystem
in interface SystemResourceService
public void removeHistoryService(java.lang.String urn) throws LBInvocationException, LBParameterException
urn
- the urnLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void deactivate(AbsoluteCodingSchemeVersionReference codingScheme, java.util.Date date) throws LBInvocationException, LBParameterException
codingScheme
- the coding schemedate
- the dateLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void setPendingStatus(AbsoluteCodingSchemeVersionReference codingScheme) throws LBInvocationException, LBParameterException
codingScheme
- the new pending statusLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void updateTag(AbsoluteCodingSchemeVersionReference codingScheme, java.lang.String newTag) throws LBInvocationException, LBParameterException
codingScheme
- the coding schemenewTag
- the new tagLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void updateVersion(AbsoluteCodingSchemeVersionReference codingScheme, java.lang.String newVersion) throws LBInvocationException, LBParameterException
codingScheme
- the coding schemenewVersion
- the new versionLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic void setSystemVariables(SystemVariables systemVars)
systemVars
- the new system variablespublic void setLogger(LgLoggerIF logger)
logger
- the new loggerpublic javax.sql.DataSource getDataSource()
public void setDataSource(javax.sql.DataSource dataSource)
dataSource
- the new data sourcepublic DatabaseType getDatabaseType()
public void setDatabaseType(DatabaseType databaseType)
databaseType
- the new database typepublic XmlRegistry getXmlRegistry()
public void setXmlRegistry(XmlRegistry registry)
registry
- the new xml registrypublic boolean containsCodingSchemeResource(java.lang.String uri, java.lang.String version) throws LBParameterException
SystemResourceService
containsCodingSchemeResource
in interface SystemResourceService
uri
- the uriversion
- the versionLBParameterException
- the LB parameter exceptionpublic boolean containsValueSetDefinitionResource(java.lang.String uri, java.lang.String version) throws LBParameterException
SystemResourceService
containsValueSetDefinitionResource
in interface SystemResourceService
uri
- the value set definition URIversion
- the versionLBParameterException
- the LB parameter exceptionpublic boolean containsPickListDefinitionResource(java.lang.String uri, java.lang.String version) throws LBParameterException
SystemResourceService
containsPickListDefinitionResource
in interface SystemResourceService
uri
- the pick list definition IDversion
- the versionLBParameterException
- the LB parameter exceptionpublic boolean containsNonCodingSchemeResource(java.lang.String uri) throws LBParameterException
SystemResourceService
containsNonCodingSchemeResource
in interface SystemResourceService
uri
- the uriLBParameterException
- the LB parameter exceptionpublic java.lang.String createNewTablesForLoad()
SystemResourceService
createNewTablesForLoad
in interface SystemResourceService
public MyClassLoader getClassLoader()
SystemResourceService
getClassLoader
in interface SystemResourceService
public java.lang.String getUriForUserCodingSchemeName(java.lang.String codingSchemeName, java.lang.String version) throws LBParameterException
SystemResourceService
getUriForUserCodingSchemeName
in interface SystemResourceService
codingSchemeName
- the coding scheme nameversion
- TODOLBParameterException
- the LB parameter exceptionpublic void removeCodingSchemeResourceFromSystem(java.lang.String uri, java.lang.String version) throws LBParameterException
SystemResourceService
removeCodingSchemeResourceFromSystem
in interface SystemResourceService
uri
- the uriversion
- the versionLBParameterException
- the LB parameter exceptionpublic void removeNonCodingSchemeResourceFromSystem(java.lang.String uri) throws LBParameterException
LBParameterException
public void removeValueSetDefinitionResourceFromSystem(java.lang.String uri, java.lang.String version) throws LBParameterException
SystemResourceService
removeValueSetDefinitionResourceFromSystem
in interface SystemResourceService
version
- the versionLBParameterException
- the LB parameter exceptionpublic void removePickListDefinitionResourceFromSystem(java.lang.String uri, java.lang.String version) throws LBParameterException
SystemResourceService
removePickListDefinitionResourceFromSystem
in interface SystemResourceService
uri
- the pick list definition IDversion
- the versionLBParameterException
- the LB parameter exceptionpublic void updateCodingSchemeEntryTag(AbsoluteCodingSchemeVersionReference codingScheme, java.lang.String newTag) throws LBParameterException
codingScheme
- the coding schemenewTag
- the new tagLBParameterException
- the LB parameter exceptionpublic void updateCodingSchemeResourceStatus(AbsoluteCodingSchemeVersionReference codingScheme, CodingSchemeVersionStatus status) throws LBParameterException
SystemResourceService
updateCodingSchemeResourceStatus
in interface SystemResourceService
codingScheme
- the coding schemestatus
- the statusLBParameterException
- the LB parameter exceptionpublic void updateCodingSchemeResourceTag(AbsoluteCodingSchemeVersionReference codingScheme, java.lang.String newTag) throws LBParameterException
SystemResourceService
updateCodingSchemeResourceTag
in interface SystemResourceService
codingScheme
- the coding schemenewTag
- the new tagLBParameterException
- the LB parameter exceptionpublic void updateNonCodingSchemeResourceStatus(java.lang.String uri, CodingSchemeVersionStatus status) throws LBParameterException
SystemResourceService
updateNonCodingSchemeResourceStatus
in interface SystemResourceService
uri
- the uristatus
- the statusLBParameterException
- the LB parameter exceptionpublic void updateNonCodingSchemeResourceTag(java.lang.String uri, java.lang.String newTag) throws LBParameterException
SystemResourceService
updateNonCodingSchemeResourceTag
in interface SystemResourceService
uri
- the urinewTag
- the new tagLBParameterException
- the LB parameter exceptionpublic void addCodingSchemeResourceFromSystem(java.lang.String uri, java.lang.String version) throws LBParameterException
uri
- the uriversion
- the versionLBParameterException
- the LB parameter exceptionpublic void addCodingSchemeResourceToSystem(java.lang.String uri, java.lang.String version) throws LBParameterException
SystemResourceService
addCodingSchemeResourceToSystem
in interface SystemResourceService
uri
- the uriversion
- the versionLBParameterException
- the LB parameter exceptionpublic void addValueSetDefinitionResourceToSystem(java.lang.String uri, java.lang.String version) throws LBParameterException
SystemResourceService
addValueSetDefinitionResourceToSystem
in interface SystemResourceService
uri
- the uriversion
- the versionLBParameterException
- the LB parameter exceptionpublic void addPickListDefinitionResourceToSystem(java.lang.String uri, java.lang.String version) throws LBParameterException
SystemResourceService
addPickListDefinitionResourceToSystem
in interface SystemResourceService
uri
- the uriversion
- the versionLBParameterException
- the LB parameter exceptionpublic void addCodingSchemeResourceToSystem(CodingScheme codingScheme) throws LBParameterException
LBParameterException
public void addNciHistoryResourceToSystem(java.lang.String uri) throws LBParameterException
SystemResourceService
addNciHistoryResourceToSystem
in interface SystemResourceService
LBParameterException
- the LB parameter exceptionpublic void initialize()
initialize
in interface SystemResourceService
public void refresh()
refresh
in interface SystemResourceService
public void addSystemEventListeners(SystemEventListener listener)
addSystemEventListeners
in interface SystemResourceService
public void registerCodingSchemeSupplement(AbsoluteCodingSchemeVersionReference parentScheme, AbsoluteCodingSchemeVersionReference supplement) throws LBParameterException
registerCodingSchemeSupplement
in interface SystemResourceService
LBParameterException
public void unRegisterCodingSchemeSupplement(AbsoluteCodingSchemeVersionReference parentScheme, AbsoluteCodingSchemeVersionReference supplement) throws LBParameterException
unRegisterCodingSchemeSupplement
in interface SystemResourceService
LBParameterException
public java.util.List<AbsoluteCodingSchemeVersionReference> getMatchingCodingSchemeResources(SystemResourceService.CodingSchemeMatcher codingSchemeMatcher)
SystemResourceService
getMatchingCodingSchemeResources
in interface SystemResourceService
codingSchemeMatcher
- the coding scheme matcherpublic void shutdown()
shutdown
in interface SystemResourceService