com.pixelmed.network
Class NetworkApplicationInformation

java.lang.Object
  extended by com.pixelmed.network.NetworkApplicationInformation
Direct Known Subclasses:
NetworkApplicationInformationFederated

public class NetworkApplicationInformation
extends Object

This class encapsulates information about DICOM network devices.


Constructor Summary
NetworkApplicationInformation()
           
 
Method Summary
 void add(String localName, ApplicationEntity ae)
          Add a new AE.
 void add(String localName, String aeTitle, String hostname, int port, String queryModel, String primaryDeviceType)
          Add a new AE.
 void addAll(NetworkApplicationInformation infoToAdd)
          Add all the entries in the supplied map except any that are already present.
 ApplicationEntityMap getApplicationEntityMap()
          Return the application entity map.
 String getApplicationEntityTitleFromLocalName(String localName)
          Find the AET an application entity given its local name.
 String getLDIFRepresentation(String rootDN)
          Make an LDAP LDIF representation of the network information.
 Set getListOfApplicationEntityTitlesOfApplicationEntities()
          Return the set of local names of application entities.
 Set getListOfLocalNamesOfApplicationEntities()
          Return the set of local names of application entities.
 String getLocalNameFromApplicationEntityTitle(String aet)
          Find the local name of an application entity given its AET.
 void remove(String localName)
          Add an AE.
 void removeAll()
          Completely empty all information.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkApplicationInformation

public NetworkApplicationInformation()
Method Detail

removeAll

public void removeAll()

Completely empty all information.


remove

public void remove(String localName)

Add an AE.

Parameters:
localName -

add

public void add(String localName,
                ApplicationEntity ae)
         throws DicomNetworkException

Add a new AE.

Parameters:
localName -
ae -
Throws:
DicomNetworkException - if local name or AET already used, or either is null or empty

add

public void add(String localName,
                String aeTitle,
                String hostname,
                int port,
                String queryModel,
                String primaryDeviceType)
         throws DicomNetworkException

Add a new AE.

Parameters:
localName -
aeTitle -
port -
queryModel - null if unknown
primaryDeviceType - null if unknown
Throws:
DicomNetworkException - if local name or AET already used, or either is null or empty

addAll

public void addAll(NetworkApplicationInformation infoToAdd)

Add all the entries in the supplied map except any that are already present.

Parameters:
infoToAdd - the information to add

getApplicationEntityMap

public ApplicationEntityMap getApplicationEntityMap()

Return the application entity map.

Returns:
the application entity map

getListOfLocalNamesOfApplicationEntities

public Set getListOfLocalNamesOfApplicationEntities()

Return the set of local names of application entities.

Returns:
the set of local names

getListOfApplicationEntityTitlesOfApplicationEntities

public Set getListOfApplicationEntityTitlesOfApplicationEntities()

Return the set of local names of application entities.

Returns:
the set of local names

getApplicationEntityTitleFromLocalName

public String getApplicationEntityTitleFromLocalName(String localName)

Find the AET an application entity given its local name.

Parameters:
localName - the local name of the AE
Returns:
the AET, or null if none

getLocalNameFromApplicationEntityTitle

public String getLocalNameFromApplicationEntityTitle(String aet)

Find the local name of an application entity given its AET.

Parameters:
aet - the application entity title
Returns:
the local name, or null if none

getLDIFRepresentation

public String getLDIFRepresentation(String rootDN)

Make an LDAP LDIF representation of the network information.

Parameters:
rootDN - the root distinguished name to attach the DICOM configuration information below
Returns:
a String containing the text of the LDIF representation, suitable for feeding into a utility like ldapadd

toString

public String toString()
Overrides:
toString in class Object