org.lexevs.system.service
Class DelegatingSystemResourceService

java.lang.Object
  extended by org.lexevs.system.event.SystemEventSupport
      extended by org.lexevs.system.service.DelegatingSystemResourceService
All Implemented Interfaces:
SystemResourceService

public class DelegatingSystemResourceService
extends SystemEventSupport
implements SystemResourceService

The Class DelegatingSystemResourceService.

Author:
Kevin Peterson

Constructor Summary
DelegatingSystemResourceService()
           
 
Method Summary
 void addCodingSchemeResourceToSystem(java.lang.String uri, java.lang.String version)
          Adds the coding scheme resource to system.
 void addNciHistoryResourceToSystem(java.lang.String uri)
          Adds the coding scheme resource to system.
 void addPickListDefinitionResourceToSystem(java.lang.String uri, java.lang.String version)
          Adds the pick list resource to system.
 void addSystemEventListeners(SystemEventListener listener)
           
 void addValueSetDefinitionResourceToSystem(java.lang.String uri, java.lang.String version)
          Adds the value set definition resource to system.
 boolean containsCodingSchemeResource(java.lang.String uri, java.lang.String version)
          Contains coding scheme resource.
 boolean containsNonCodingSchemeResource(java.lang.String uri)
          Contains non coding scheme resource.
 boolean containsPickListDefinitionResource(java.lang.String pickListId, java.lang.String version)
          Contains pick list definition resource.
 boolean containsValueSetDefinitionResource(java.lang.String uri, java.lang.String version)
          Contains value set definition resource.
 java.lang.String createNewTablesForLoad()
          Creates the new tables for load.
 MyClassLoader getClassLoader()
          Gets the class loader.
 SystemResourceService getDelegateSystemResourceService()
          Gets the delegate system resource service.
 java.lang.String getInternalCodingSchemeNameForUserCodingSchemeName(java.lang.String codingSchemeName, java.lang.String version)
          Gets the internal coding scheme name for user coding scheme name.
 java.lang.String getInternalVersionStringForTag(java.lang.String codingSchemeName, java.lang.String tag)
          Gets the internal version string for tag.
 SystemResourceService getPrimarySystemResourceService()
          Gets the primary system resource service.
 SystemVariables getSystemVariables()
           
 java.lang.String getUriForUserCodingSchemeName(java.lang.String codingSchemeName, java.lang.String version)
          Gets the uri for user coding scheme name.
 void initialize()
           
 void refresh()
           
 void registerCodingSchemeSupplement(AbsoluteCodingSchemeVersionReference parentScheme, AbsoluteCodingSchemeVersionReference supplement)
           
 void removeCodingSchemeResourceFromSystem(java.lang.String uri, java.lang.String version)
          Removes the coding scheme resource from system.
 void removeNciHistoryResourceToSystemFromSystem(java.lang.String uri)
           
 void removeNonCodingSchemeResourceFromSystem(java.lang.String uri)
           
 void removePickListDefinitionResourceFromSystem(java.lang.String pickListId, java.lang.String version)
          Removes the pick list definition resource from system.
 void removeValueSetDefinitionResourceFromSystem(java.lang.String uri, java.lang.String version)
          Removes the value set definition resource from system.
 void setDelegateSystemResourceService(SystemResourceService delegateSystemResourceService)
          Sets the delegate system resource service.
 void setPrimarySystemResourceService(SystemResourceService primarySystemResourceService)
          Sets the primary system resource service.
 void unRegisterCodingSchemeSupplement(AbsoluteCodingSchemeVersionReference parentScheme, AbsoluteCodingSchemeVersionReference supplement)
           
 void updateCodingSchemeResourceStatus(AbsoluteCodingSchemeVersionReference codingScheme, CodingSchemeVersionStatus status)
          Update coding scheme resource status.
 void updateCodingSchemeResourceTag(AbsoluteCodingSchemeVersionReference codingScheme, java.lang.String newTag)
          Update coding scheme resource tag.
 void updateNonCodingSchemeResourceStatus(java.lang.String uri, CodingSchemeVersionStatus status)
          Update non coding scheme resource status.
 void updateNonCodingSchemeResourceTag(java.lang.String uri, java.lang.String newTag)
          Update non coding scheme resource tag.
 
Methods inherited from class org.lexevs.system.event.SystemEventSupport
fireRemoveCodingSchemeResourceFromSystemEvent, getSystemEventListeners, setSystemEventListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingSystemResourceService

public DelegatingSystemResourceService()
Method Detail

containsCodingSchemeResource

public boolean containsCodingSchemeResource(java.lang.String uri,
                                            java.lang.String version)
                                     throws LBParameterException
Description copied from interface: SystemResourceService
Contains coding scheme resource.

Specified by:
containsCodingSchemeResource in interface SystemResourceService
Parameters:
uri - the uri
version - the version
Returns:
true, if successful
Throws:
LBParameterException - the LB parameter exception

containsValueSetDefinitionResource

public boolean containsValueSetDefinitionResource(java.lang.String uri,
                                                  java.lang.String version)
                                           throws LBParameterException
Description copied from interface: SystemResourceService
Contains value set definition resource.

Specified by:
containsValueSetDefinitionResource in interface SystemResourceService
Parameters:
uri - the value set definition URI
version - the version
Returns:
true, if successful
Throws:
LBParameterException - the LB parameter exception

containsPickListDefinitionResource

public boolean containsPickListDefinitionResource(java.lang.String pickListId,
                                                  java.lang.String version)
                                           throws LBParameterException
Description copied from interface: SystemResourceService
Contains pick list definition resource.

Specified by:
containsPickListDefinitionResource in interface SystemResourceService
Parameters:
pickListId - the pick list definition ID
version - the version
Returns:
true, if successful
Throws:
LBParameterException - the LB parameter exception

containsNonCodingSchemeResource

public boolean containsNonCodingSchemeResource(java.lang.String uri)
                                        throws LBParameterException
Description copied from interface: SystemResourceService
Contains non coding scheme resource.

Specified by:
containsNonCodingSchemeResource in interface SystemResourceService
Parameters:
uri - the uri
Returns:
true, if successful
Throws:
LBParameterException - the LB parameter exception

createNewTablesForLoad

public java.lang.String createNewTablesForLoad()
Description copied from interface: SystemResourceService
Creates the new tables for load.

Specified by:
createNewTablesForLoad in interface SystemResourceService
Returns:
the string

getClassLoader

public MyClassLoader getClassLoader()
Description copied from interface: SystemResourceService
Gets the class loader.

Specified by:
getClassLoader in interface SystemResourceService
Returns:
the class loader

getInternalCodingSchemeNameForUserCodingSchemeName

public java.lang.String getInternalCodingSchemeNameForUserCodingSchemeName(java.lang.String codingSchemeName,
                                                                           java.lang.String version)
                                                                    throws LBParameterException
Description copied from interface: SystemResourceService
Gets the internal coding scheme name for user coding scheme name.

Specified by:
getInternalCodingSchemeNameForUserCodingSchemeName in interface SystemResourceService
Parameters:
codingSchemeName - the coding scheme name
version - the version
Returns:
the internal coding scheme name for user coding scheme name
Throws:
LBParameterException - the LB parameter exception

getInternalVersionStringForTag

public java.lang.String getInternalVersionStringForTag(java.lang.String codingSchemeName,
                                                       java.lang.String tag)
                                                throws LBParameterException
Description copied from interface: SystemResourceService
Gets the internal version string for tag.

Specified by:
getInternalVersionStringForTag in interface SystemResourceService
Parameters:
codingSchemeName - the coding scheme name
tag - the tag
Returns:
the internal version string for tag
Throws:
LBParameterException - the LB parameter exception

getUriForUserCodingSchemeName

public java.lang.String getUriForUserCodingSchemeName(java.lang.String codingSchemeName,
                                                      java.lang.String version)
                                               throws LBParameterException
Description copied from interface: SystemResourceService
Gets the uri for user coding scheme name.

Specified by:
getUriForUserCodingSchemeName in interface SystemResourceService
Parameters:
codingSchemeName - the coding scheme name
version - TODO
Returns:
the uri for user coding scheme name
Throws:
LBParameterException - the LB parameter exception

removeNciHistoryResourceToSystemFromSystem

public void removeNciHistoryResourceToSystemFromSystem(java.lang.String uri)
Specified by:
removeNciHistoryResourceToSystemFromSystem in interface SystemResourceService

removeCodingSchemeResourceFromSystem

public void removeCodingSchemeResourceFromSystem(java.lang.String uri,
                                                 java.lang.String version)
                                          throws LBParameterException
Description copied from interface: SystemResourceService
Removes the coding scheme resource from system.

Specified by:
removeCodingSchemeResourceFromSystem in interface SystemResourceService
Parameters:
uri - the uri
version - the version
Throws:
LBParameterException - the LB parameter exception

removeValueSetDefinitionResourceFromSystem

public void removeValueSetDefinitionResourceFromSystem(java.lang.String uri,
                                                       java.lang.String version)
                                                throws LBParameterException
Description copied from interface: SystemResourceService
Removes the value set definition resource from system.

Specified by:
removeValueSetDefinitionResourceFromSystem in interface SystemResourceService
version - the version
Throws:
LBParameterException - the LB parameter exception

removePickListDefinitionResourceFromSystem

public void removePickListDefinitionResourceFromSystem(java.lang.String pickListId,
                                                       java.lang.String version)
                                                throws LBParameterException
Description copied from interface: SystemResourceService
Removes the pick list definition resource from system.

Specified by:
removePickListDefinitionResourceFromSystem in interface SystemResourceService
Parameters:
pickListId - the pick list definition ID
version - the version
Throws:
LBParameterException - the LB parameter exception

removeNonCodingSchemeResourceFromSystem

public void removeNonCodingSchemeResourceFromSystem(java.lang.String uri)
                                             throws LBParameterException
Throws:
LBParameterException

updateCodingSchemeResourceTag

public void updateCodingSchemeResourceTag(AbsoluteCodingSchemeVersionReference codingScheme,
                                          java.lang.String newTag)
                                   throws LBParameterException
Description copied from interface: SystemResourceService
Update coding scheme resource tag.

Specified by:
updateCodingSchemeResourceTag in interface SystemResourceService
Parameters:
codingScheme - the coding scheme
newTag - the new tag
Throws:
LBParameterException - the LB parameter exception

updateCodingSchemeResourceStatus

public void updateCodingSchemeResourceStatus(AbsoluteCodingSchemeVersionReference codingScheme,
                                             CodingSchemeVersionStatus status)
                                      throws LBParameterException
Description copied from interface: SystemResourceService
Update coding scheme resource status.

Specified by:
updateCodingSchemeResourceStatus in interface SystemResourceService
Parameters:
codingScheme - the coding scheme
status - the status
Throws:
LBParameterException - the LB parameter exception

updateNonCodingSchemeResourceStatus

public void updateNonCodingSchemeResourceStatus(java.lang.String uri,
                                                CodingSchemeVersionStatus status)
                                         throws LBParameterException
Description copied from interface: SystemResourceService
Update non coding scheme resource status.

Specified by:
updateNonCodingSchemeResourceStatus in interface SystemResourceService
Parameters:
uri - the uri
status - the status
Throws:
LBParameterException - the LB parameter exception

registerCodingSchemeSupplement

public void registerCodingSchemeSupplement(AbsoluteCodingSchemeVersionReference parentScheme,
                                           AbsoluteCodingSchemeVersionReference supplement)
                                    throws LBParameterException
Specified by:
registerCodingSchemeSupplement in interface SystemResourceService
Throws:
LBParameterException

unRegisterCodingSchemeSupplement

public void unRegisterCodingSchemeSupplement(AbsoluteCodingSchemeVersionReference parentScheme,
                                             AbsoluteCodingSchemeVersionReference supplement)
                                      throws LBParameterException
Specified by:
unRegisterCodingSchemeSupplement in interface SystemResourceService
Throws:
LBParameterException

addCodingSchemeResourceToSystem

public void addCodingSchemeResourceToSystem(java.lang.String uri,
                                            java.lang.String version)
                                     throws LBParameterException
Description copied from interface: SystemResourceService
Adds the coding scheme resource to system.

Specified by:
addCodingSchemeResourceToSystem in interface SystemResourceService
Parameters:
uri - the uri
version - the version
Throws:
LBParameterException - the LB parameter exception

addNciHistoryResourceToSystem

public void addNciHistoryResourceToSystem(java.lang.String uri)
                                   throws LBParameterException
Description copied from interface: SystemResourceService
Adds the coding scheme resource to system.

Specified by:
addNciHistoryResourceToSystem in interface SystemResourceService
Throws:
LBParameterException - the LB parameter exception

addValueSetDefinitionResourceToSystem

public void addValueSetDefinitionResourceToSystem(java.lang.String uri,
                                                  java.lang.String version)
                                           throws LBParameterException
Description copied from interface: SystemResourceService
Adds the value set definition resource to system.

Specified by:
addValueSetDefinitionResourceToSystem in interface SystemResourceService
Parameters:
uri - the uri
version - the version
Throws:
LBParameterException - the LB parameter exception

addPickListDefinitionResourceToSystem

public void addPickListDefinitionResourceToSystem(java.lang.String uri,
                                                  java.lang.String version)
                                           throws LBParameterException
Description copied from interface: SystemResourceService
Adds the pick list resource to system.

Specified by:
addPickListDefinitionResourceToSystem in interface SystemResourceService
Parameters:
uri - the uri
version - the version
Throws:
LBParameterException - the LB parameter exception

updateNonCodingSchemeResourceTag

public void updateNonCodingSchemeResourceTag(java.lang.String uri,
                                             java.lang.String newTag)
                                      throws LBParameterException
Description copied from interface: SystemResourceService
Update non coding scheme resource tag.

Specified by:
updateNonCodingSchemeResourceTag in interface SystemResourceService
Parameters:
uri - the uri
newTag - the new tag
Throws:
LBParameterException - the LB parameter exception

getPrimarySystemResourceService

public SystemResourceService getPrimarySystemResourceService()
Gets the primary system resource service.

Returns:
the primary system resource service

setPrimarySystemResourceService

public void setPrimarySystemResourceService(SystemResourceService primarySystemResourceService)
Sets the primary system resource service.

Parameters:
primarySystemResourceService - the new primary system resource service

getDelegateSystemResourceService

public SystemResourceService getDelegateSystemResourceService()
Gets the delegate system resource service.

Returns:
the delegate system resource service

setDelegateSystemResourceService

public void setDelegateSystemResourceService(SystemResourceService delegateSystemResourceService)
Sets the delegate system resource service.

Parameters:
delegateSystemResourceService - the new delegate system resource service

getSystemVariables

public SystemVariables getSystemVariables()
Specified by:
getSystemVariables in interface SystemResourceService

initialize

public void initialize()
Specified by:
initialize in interface SystemResourceService

refresh

public void refresh()
Specified by:
refresh in interface SystemResourceService

addSystemEventListeners

public void addSystemEventListeners(SystemEventListener listener)
Specified by:
addSystemEventListeners in interface SystemResourceService

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.