public abstract class ServiceLocator extends Object
Example: Sample code for initializing ServiceLocator Properties props = new Properties(); //Specify Client mode: Local or Remote props.setProperty(ServiceLocator.CLIENT_MODE, ServiceLocator.REMOTE); ServiceLocator slocator = ServiceLocator.getInstance(props); RimService rimService = slocator.getRimService();
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_MODE
The name of the Properties to pass client mode value
|
static String |
LOCAL
The local client mode
|
static String |
REMOTE
The remote client mode
|
Modifier | Constructor and Description |
---|---|
protected |
ServiceLocator() |
Modifier and Type | Method and Description |
---|---|
void |
closeContext()
Removes the rmi connection dedicated to the user but does not delete the
session tied to the user.
|
abstract AuditService |
getAuditService()
Gets the AuditService.
|
abstract ConcurrentProgService |
getConcurrentProgService()
Gets the ConcurrentProgService.
|
abstract CTBCacheService |
getCTBCacheService()
Gets the CTBCacheService.
|
abstract ETSService |
getETSService()
Gets the ETSService.
|
abstract IHEXDSConfigService |
getIHEXDSConfigService()
Gets the IHEXDSConfigService.
|
abstract IMPConfigAdminIntrService |
getIMPConfigAdminIntrService()
Gets the IMPConfigAdminIntrService.
|
abstract IMPConfigAdminService |
getIMPConfigAdminService()
Gets the IMPConfigAdminService.
|
abstract IMPService |
getIMPService()
Gets the IMPService.
|
static ServiceLocator |
getInstance()
Deprecated.
Replaced by
getInstance(Properties) . This method is
not completely threadsafe. Use
getInstance(Properties) to ensure
thread safety. |
static ServiceLocator |
getInstance(Properties properties)
Provides the instance of ServiceLocator initialized with the client
properties
|
abstract oracle.hsgbu.hdr.hl7.InternalRimService |
getInternalRimService()
Gets the InternalRimService.
|
abstract MasterCatalogService |
getMasterCatalogService()
Gets the MasterCatalogService.
|
abstract MtkProductionLoadService |
getMtkProductionLoadService()
Gets the MtkProductionLoadService.
|
abstract MtkTestInternalService |
getMtkTestInternalService()
Gets the MtkTestInternalService.
|
abstract MtkTestService |
getMtkTestService()
Gets the MtkTestService.
|
abstract OIDService |
getOIDService()
Gets the OIDService.
|
abstract ProfileOptionService |
getProfileOptionService()
Gets the ProfileOptionService.
|
abstract RimService |
getRimService()
Gets RimService.
|
abstract SubmissionUnitService |
getSubmissionUnitService()
Gets the SubmissionUnitService.
|
void |
login(String identity,
String credential)
Validates the identity and the credential of the user.
|
public static final String REMOTE
public static final String LOCAL
public static final String CLIENT_MODE
public static ServiceLocator getInstance() throws CommonException
getInstance(Properties)
. This method is
not completely threadsafe. Use
getInstance(Properties)
to ensure
thread safety.CommonException
public static ServiceLocator getInstance(Properties properties) throws CommonException
Example: Properties props = new Properties(); //Specify Client mode: Local or Remote props.setProperty(ServiceLocator.CLIENT_MODE,ServiceLocator.REMOTE); //Specify InitialContext and provider URL if HDR Authentication must be overridden. (not common) props.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory"); props.put(Context.PROVIDER_URL,"ormi://ap680ses.us.oracle.com:23800/hdr"); ServiceLocator sl = ServiceLocator.getInstance(props);
properties
- a map of properties specifying client parameters.
ServiceLocator can accept the following special property:
CLIENT_MODE
in addition to any standard propertyCommonException
public void login(String identity, String credential) throws CommonException
identity
- as a String Valuecredential
- as a String valueCommonException
public void closeContext() throws CommonException
CommonException
public abstract ProfileOptionService getProfileOptionService() throws CommonException
CommonException
public abstract IMPConfigAdminService getIMPConfigAdminService() throws CommonException
CommonException
public abstract IMPService getIMPService() throws CommonException
CommonException
public abstract IMPConfigAdminIntrService getIMPConfigAdminIntrService() throws CommonException
CommonException
public abstract SubmissionUnitService getSubmissionUnitService() throws CommonException
CommonException
public abstract MasterCatalogService getMasterCatalogService() throws CommonException
CommonException
public abstract IHEXDSConfigService getIHEXDSConfigService() throws CommonException
CommonException
public abstract MtkTestService getMtkTestService() throws CommonException
CommonException
public abstract RimService getRimService() throws CommonException
CommonException
public abstract oracle.hsgbu.hdr.hl7.InternalRimService getInternalRimService() throws CommonException
CommonException
public abstract MtkProductionLoadService getMtkProductionLoadService() throws CommonException
CommonException
public abstract MtkTestInternalService getMtkTestInternalService() throws CommonException
CommonException
public abstract OIDService getOIDService() throws CommonException
CommonException
public abstract ConcurrentProgService getConcurrentProgService() throws CommonException
CommonException
public abstract CTBCacheService getCTBCacheService() throws CommonException
CommonException
public abstract AuditService getAuditService() throws CommonException
CommonException
public abstract ETSService getETSService() throws CommonException
CommonException
HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved