public class InstitutionMappingDelegate
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getJndiConnectorNameForInstitution(java.lang.String stationNumber)
Returns the JNDI connector name (if found) for a division matching the station number passed in.
|
static java.util.Set |
getVistaLinkMappedStationNumberSet()
Returns the set of station# strings for which adapters have been deployed on the current JVM, and for which
institution mappings currently exist.
|
public static java.lang.String getJndiConnectorNameForInstitution(java.lang.String stationNumber) throws InstitutionMapNotInitializedException, InstitutionMappingNotFoundException
An example of retrieving the JNDI name for a connector is:
String stationNumber = 500;
String jndiConnectorName = null;
try {
jndiConnectorName = InstitutionMappingDelegate.getJndiConnectorNameForInstitution(stationNumber);
} catch (InstitutionMappingNotFoundException e) {
// take some action
} catch (InstitutionMapNotInitializedException e) {
// take some action
}
stationNumber
- institution station number for Vista Institution.InstitutionMapNotInitializedException
- thrown if the institution mapping has not been initializedInstitutionMappingNotFoundException
- thrown if no connector JNDI name has been mapped to input station numberpublic static java.util.Set getVistaLinkMappedStationNumberSet() throws InstitutionMapNotInitializedException
InstitutionMapNotInitializedException
VistALink v1.6a