Class NetworkApplicationInformation
- Direct Known Subclasses:
NetworkApplicationInformationFederated
This class encapsulates information about DICOM network devices.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an empty container for properties of DICOM network devices.NetworkApplicationInformation
(Properties properties) Extract the DICOM network properties from the supplied properties. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.void
addAll
(Properties properties) Extract the DICOM network properties from the supplied properties.void
Return the application entity map.getApplicationEntityTitleFromLocalName
(String localName) Find the AET an application entity given its local name.getLDIFRepresentation
(String rootDN) Make an LDAP LDIF representation of the network information.Return the set of local names of application entities.Return the set of local names of application entities.Find the local name of an application entity given its AET.getProperties
(Properties properties) Retrieve the DICOM network properties.void
Remove an AE.void
Completely empty all information.toString()
-
Field Details
-
resourceName_PublicStorageSCPs
- See Also:
-
propertyName_DicomRemoteAEs
- See Also:
-
-
Constructor Details
-
NetworkApplicationInformation
public NetworkApplicationInformation()Construct an empty container for properties of DICOM network devices.
-
NetworkApplicationInformation
Extract the DICOM network properties from the supplied properties.
- Parameters:
properties
-- Throws:
DicomNetworkException
-
-
Method Details
-
addPublicStorageSCPs
- Throws:
IOException
DicomNetworkException
-
addAll
Extract the DICOM network properties from the supplied properties.
- Parameters:
properties
-- Throws:
DicomNetworkException
-
getProperties
Retrieve the DICOM network properties.
param properties the existing properties to add to (removing any properties already there), or null if none- Returns:
- the updated properties or a new set of properties if none supplied
-
removeAll
public void removeAll()Completely empty all information.
-
remove
Remove an AE.
- Parameters:
localName
-
-
add
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 unknownprimaryDeviceType
- null if unknown- Throws:
DicomNetworkException
- if local name or AET already used, or either is null or empty
-
addAll
Add all the entries in the supplied map except any that are already present.
- Parameters:
infoToAdd
- the information to add
-
getApplicationEntityMap
Return the application entity map.
- Returns:
- the application entity map
-
getListOfLocalNamesOfApplicationEntities
Return the set of local names of application entities.
- Returns:
- the set of local names
-
getListOfApplicationEntityTitlesOfApplicationEntities
Return the set of local names of application entities.
- Returns:
- the set of local names
-
getApplicationEntityTitleFromLocalName
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
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
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
-