VistALink v1.6

gov.va.med.vistalink.institution
Class InstitutionMappingDelegate

java.lang.Object
  extended by gov.va.med.vistalink.institution.InstitutionMappingDelegate

public class InstitutionMappingDelegate
extends java.lang.Object

Provides methods used by applications to query the institution mapping.


Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJndiConnectorNameForInstitution

public static java.lang.String getJndiConnectorNameForInstitution(java.lang.String stationNumber)
                                                           throws InstitutionMapNotInitializedException,
                                                                  InstitutionMappingNotFoundException
Returns the JNDI connector name (if found) for a division matching the station number passed in.

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
}

Parameters:
stationNumber - institution station number for Vista Institution.
Returns:
Jndi Connector name, if a connector is found that is mapped to input station number. Use for a JNDI lookup of actual VistaLink connector.
Throws:
InstitutionMapNotInitializedException - thrown if the institution mapping has not been initialized
InstitutionMappingNotFoundException - thrown if no connector JNDI name has been mapped to input station number

getVistaLinkMappedStationNumberSet

public static java.util.Set getVistaLinkMappedStationNumberSet()
                                                        throws InstitutionMapNotInitializedException
Returns the set of station# strings for which adapters have been deployed on the current JVM, and for which institution mappings currently exist. The source of the station#s in the mapping is the primaryStation configuration attribute, for successfully deployed adapters.

Returns:
Set containing station# strings.
Throws:
InstitutionMapNotInitializedException

VistALink v1.6

VistALink v1.6