org.LexGrid.LexBIG.Impl
Class LexBIGServiceManagerImpl

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.LexBIGServiceManagerImpl
All Implemented Interfaces:
java.io.Serializable, LexBIGServiceManager

public class LexBIGServiceManagerImpl
extends java.lang.Object
implements LexBIGServiceManager

This class implements the LexBigServiceManager.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Dan Armbrust, Jesse Erdmann, Thomas Johnson
See Also:
Serialized Form

Constructor Summary
LexBIGServiceManagerImpl()
           
 
Method Summary
 void activateCodingSchemeVersion(AbsoluteCodingSchemeVersionReference codingSchemeVersion)
          Activate an inactive coding scheme version.
 void deactivateCodingSchemeVersion(AbsoluteCodingSchemeVersionReference codingSchemeVersion, java.util.Date date)
          Mark a coding scheme as inactive.
 Exporter getExporter(java.lang.String name)
          Return an instance of the named export extension.
 ExtensionDescriptionList getExportExtensions()
          Returns a description of all registered extensions used to export information loaded to a LexBIGService.
 ExtensionRegistry getExtensionRegistry()
          Returns the object used to manage all externally registered extensions to this service.
 Index getIndex(java.lang.String name)
          Return an instance of the named index extension.
 ExtensionDescriptionList getIndexExtensions()
          Return a list of registered index extensions supported by this service; empty if none are defined.
 Loader getLoader(java.lang.String name)
          Return an instance of the named loader extension.
 ExtensionDescriptionList getLoadExtensions()
          Returns a description of all registered extensions used to load information for access by a LexBIGService.
 void registerCodingSchemeAsSupplement(AbsoluteCodingSchemeVersionReference parentCodingScheme, AbsoluteCodingSchemeVersionReference supplementCodingScheme)
          Register a coding scheme as a supplement to a specified coding scheme.
 void removeCodingSchemeVersion(AbsoluteCodingSchemeVersionReference codingSchemeVersionReference)
          Remove a pending or inactive coding scheme from the service.
 void removeCodingSchemeVersionMetaData(AbsoluteCodingSchemeVersionReference codingSchemeVersion)
          Remove the metadata for a coding scheme from the service.
 void removeHistoryService(java.lang.String codingScheme)
          Remove pending or inactive coding scheme history information.
 void setVersionTag(AbsoluteCodingSchemeVersionReference codingSchemeVersion, java.lang.String tag)
          Assign a symbolic tag to a specified coding scheme version.
 void unRegisterCodingSchemeAsSupplement(AbsoluteCodingSchemeVersionReference parentCodingScheme, AbsoluteCodingSchemeVersionReference supplementCodingScheme)
          Unregister a coding scheme as a supplement to a specified coding scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexBIGServiceManagerImpl

public LexBIGServiceManagerImpl()
Method Detail

setVersionTag

public void setVersionTag(AbsoluteCodingSchemeVersionReference codingSchemeVersion,
                          java.lang.String tag)
                   throws LBInvocationException,
                          LBParameterException
Description copied from interface: LexBIGServiceManager
Assign a symbolic tag to a specified coding scheme version.

Specified by:
setVersionTag in interface LexBIGServiceManager
Parameters:
codingSchemeVersion - The absolute version identifier of the coding scheme to set the tag on.
tag - Tag or label to assign to the given version; if null any existing tag is cleared.
Throws:
LBInvocationException
LBParameterException

activateCodingSchemeVersion

public void activateCodingSchemeVersion(AbsoluteCodingSchemeVersionReference codingSchemeVersion)
                                 throws LBInvocationException,
                                        LBParameterException
Description copied from interface: LexBIGServiceManager
Activate an inactive coding scheme version.

Specified by:
activateCodingSchemeVersion in interface LexBIGServiceManager
Parameters:
codingSchemeVersion - The absolute version identifier for the coding scheme to activate; not null.
Throws:
LBInvocationException
LBParameterException

deactivateCodingSchemeVersion

public void deactivateCodingSchemeVersion(AbsoluteCodingSchemeVersionReference codingSchemeVersion,
                                          java.util.Date date)
                                   throws LBInvocationException,
                                          LBParameterException
Description copied from interface: LexBIGServiceManager
Mark a coding scheme as inactive.

Specified by:
deactivateCodingSchemeVersion in interface LexBIGServiceManager
Parameters:
codingSchemeVersion - The absolute version identifier for the coding scheme to deactivate; not null.
date - Date/Time to deactivate the coding scheme.
Throws:
LBInvocationException
LBParameterException

removeCodingSchemeVersion

public void removeCodingSchemeVersion(AbsoluteCodingSchemeVersionReference codingSchemeVersionReference)
                               throws LBParameterException,
                                      LBInvocationException
Description copied from interface: LexBIGServiceManager
Remove a pending or inactive coding scheme from the service.

Specified by:
removeCodingSchemeVersion in interface LexBIGServiceManager
Parameters:
codingSchemeVersionReference - The absolute version identifier of the coding scheme to remove.
Throws:
LBParameterException
LBInvocationException

removeHistoryService

public void removeHistoryService(java.lang.String codingScheme)
                          throws LBParameterException,
                                 LBInvocationException
Description copied from interface: LexBIGServiceManager
Remove pending or inactive coding scheme history information.

Specified by:
removeHistoryService in interface LexBIGServiceManager
Parameters:
codingScheme - The local name or URN of the coding scheme.
Throws:
LBParameterException
LBInvocationException

getLoadExtensions

public ExtensionDescriptionList getLoadExtensions()
Description copied from interface: LexBIGServiceManager
Returns a description of all registered extensions used to load information for access by a LexBIGService.

Specified by:
getLoadExtensions in interface LexBIGServiceManager
Returns:
The list containing the description of extensions registered for this category. Each description identifies a class of item implementing org.LexGrid.LexBIG.Extensions.Load.Loader and providing a public parameterless constructor.

getIndex

public Index getIndex(java.lang.String name)
               throws LBParameterException,
                      LBInvocationException
Description copied from interface: LexBIGServiceManager
Return an instance of the named index extension.

Note that the service may build required or default indices during load operations. Because these indices are required and automatically generated, they are not considered to be extensions and are therefore not reported through this method.

Specified by:
getIndex in interface LexBIGServiceManager
Parameters:
name - Name of the extension to return.
Throws:
LBParameterException
LBInvocationException

getIndexExtensions

public ExtensionDescriptionList getIndexExtensions()
Description copied from interface: LexBIGServiceManager
Return a list of registered index extensions supported by this service; empty if none are defined.

Note that the service may build required or default indices during load operations. Because these indices are required and automatically generated, they are not considered to be extensions and are therefore not reported through this method.

Specified by:
getIndexExtensions in interface LexBIGServiceManager
Returns:
The list containing the description of extensions registered for this category. Each description identifies a class of item implementing org.LexGrid.LexBIG.Extensions.Index.Index and providing a public parameterless constructor.

getLoader

public Loader getLoader(java.lang.String name)
                 throws LBParameterException,
                        LBInvocationException
Description copied from interface: LexBIGServiceManager
Return an instance of the named loader extension.

Specified by:
getLoader in interface LexBIGServiceManager
Parameters:
name - Name of the extension to return.
Throws:
LBParameterException
LBInvocationException

getExtensionRegistry

public ExtensionRegistry getExtensionRegistry()
Description copied from interface: LexBIGServiceManager
Returns the object used to manage all externally registered extensions to this service.

Specified by:
getExtensionRegistry in interface LexBIGServiceManager

getExportExtensions

public ExtensionDescriptionList getExportExtensions()
Description copied from interface: LexBIGServiceManager
Returns a description of all registered extensions used to export information loaded to a LexBIGService.

Specified by:
getExportExtensions in interface LexBIGServiceManager
Returns:
The list containing the description of extensions registered for this category. Each description identifies a class of item implementing org.LexGrid.LexBIG.Extensions.Export.Exporter and providing a public parameterless constructor.

getExporter

public Exporter getExporter(java.lang.String name)
                     throws LBException
Description copied from interface: LexBIGServiceManager
Return an instance of the named export extension.

Specified by:
getExporter in interface LexBIGServiceManager
Parameters:
name - Name of the extension to return.
Throws:
LBException

removeCodingSchemeVersionMetaData

public void removeCodingSchemeVersionMetaData(AbsoluteCodingSchemeVersionReference codingSchemeVersion)
                                       throws LBException
Description copied from interface: LexBIGServiceManager
Remove the metadata for a coding scheme from the service.

Specified by:
removeCodingSchemeVersionMetaData in interface LexBIGServiceManager
Parameters:
codingSchemeVersion - The absolute version identifier of the coding scheme to remove.
Throws:
LBException

registerCodingSchemeAsSupplement

public void registerCodingSchemeAsSupplement(AbsoluteCodingSchemeVersionReference parentCodingScheme,
                                             AbsoluteCodingSchemeVersionReference supplementCodingScheme)
                                      throws LBException
Description copied from interface: LexBIGServiceManager
Register a coding scheme as a supplement to a specified coding scheme.

Specified by:
registerCodingSchemeAsSupplement in interface LexBIGServiceManager
Parameters:
parentCodingScheme - The coding scheme to which the supplement will be applied
supplementCodingScheme - The coding scheme to use as a supplement
Throws:
LBException

unRegisterCodingSchemeAsSupplement

public void unRegisterCodingSchemeAsSupplement(AbsoluteCodingSchemeVersionReference parentCodingScheme,
                                               AbsoluteCodingSchemeVersionReference supplementCodingScheme)
                                        throws LBException
Description copied from interface: LexBIGServiceManager
Unregister a coding scheme as a supplement to a specified coding scheme.

Specified by:
unRegisterCodingSchemeAsSupplement in interface LexBIGServiceManager
Parameters:
parentCodingScheme - The coding scheme to which the supplement was registered
supplementCodingScheme - The coding scheme supplement to be unregistered
Throws:
LBException

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.