org.lexevs.cts2.admin.load
Class ValueSetLoadOperationImpl

java.lang.Object
  extended by org.lexevs.cts2.LexEvsBasedService
      extended by org.lexevs.cts2.BaseService
          extended by org.lexevs.cts2.admin.load.ValueSetLoadOperationImpl
All Implemented Interfaces:
ValueSetLoadOperation

public class ValueSetLoadOperationImpl
extends BaseService
implements ValueSetLoadOperation

Implementation of LexEVS CTS 2 Value Set Load Operation.

Author:
Sridhar Dwarkanath

Nested Class Summary
 
Nested classes/interfaces inherited from class org.lexevs.cts2.BaseService
BaseService.KnownTags, BaseService.SortableProperties
 
Constructor Summary
ValueSetLoadOperationImpl()
           
 
Method Summary
 java.util.List<java.lang.String> getSupportedLoaderNames()
          Returns list of Loader names supported by this LexEVS instance.
 URNVersionPair[] load(java.net.URI source, java.net.URI releaseURI, java.lang.String loaderName, java.lang.Boolean stopOnErrors)
          Load the value set definition.
 java.lang.String load(ValueSetDefinition valueSetDefinition, java.net.URI releaseURI, java.lang.Boolean stopOnErrors)
          Load value set definition.
 
Methods inherited from class org.lexevs.cts2.BaseService
createUniqueId, getLexEvsCTS2, getServiceInfo
 
Methods inherited from class org.lexevs.cts2.LexEvsBasedService
getDatabaseServiceManager, getIndexServiceManager, getLexBIGService, getLexBIGServiceManager, getLexBIGServiceManagerCredentials, getSystemResourceService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueSetLoadOperationImpl

public ValueSetLoadOperationImpl()
Method Detail

load

public URNVersionPair[] load(java.net.URI source,
                             java.net.URI releaseURI,
                             java.lang.String loaderName,
                             java.lang.Boolean stopOnErrors)
                      throws LBException
Description copied from interface: ValueSetLoadOperation
Load the value set definition.

Specified by:
load in interface ValueSetLoadOperation
Parameters:
source - location of the source file
releaseURI - Release URI the loaded contents belong to
loaderName - Name of the loader to be used. Call getSupportedLoaderNames() to get list of loaders supported by this instance of LexEVS.
stopOnErrors - True means stop if any load error is detected. False means attempt to load what can be loaded if recoverable errors are encountered.
Throws:
LBException

load

public java.lang.String load(ValueSetDefinition valueSetDefinition,
                             java.net.URI releaseURI,
                             java.lang.Boolean stopOnErrors)
                      throws LBException
Description copied from interface: ValueSetLoadOperation
Load value set definition.

Specified by:
load in interface ValueSetLoadOperation
Parameters:
valueSetDefinition - Value Set Definition object to be loaded
releaseURI - Release URI the loaded contents belong to
stopOnErrors - True means stop if any load error is detected. False means attempt to load what can be loaded if recoverable errors are encountered.
Throws:
LBException

getSupportedLoaderNames

public java.util.List<java.lang.String> getSupportedLoaderNames()
                                                         throws LBException
Description copied from interface: ValueSetLoadOperation
Returns list of Loader names supported by this LexEVS instance.

Specified by:
getSupportedLoaderNames in interface ValueSetLoadOperation
Returns:
List of supported Loader names
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.