Class DownloadOrTransmit

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

    public class DownloadOrTransmit
    extends ApplicationFrame

    This class is an application for retrieving DICOM studies of patients and downloading or transmitting them.

    It is configured by use of a properties file that resides in the user's home directory in .com.pixelmed.display.DownloadOrTransmit.properties.

    See Also:
    Serialized Form
    • Field Detail

      • propertiesFileName

        protected static java.lang.String propertiesFileName
      • propertyName_DicomCurrentlySelectedStorageTargetAE

        protected static java.lang.String propertyName_DicomCurrentlySelectedStorageTargetAE
      • propertyName_DicomCurrentlySelectedQueryTargetAE

        protected static java.lang.String propertyName_DicomCurrentlySelectedQueryTargetAE
      • propertyName_CurrentlySelectedFtpTarget

        protected static java.lang.String propertyName_CurrentlySelectedFtpTarget
      • localDatabaseName

        protected static java.lang.String localDatabaseName
      • localDatabaseServerName

        protected static java.lang.String localDatabaseServerName
      • rootNameForDicomInstanceFilesOnInterchangeMedia

        protected static java.lang.String rootNameForDicomInstanceFilesOnInterchangeMedia
      • filePrefixForDicomInstanceFilesOnInterchangeMedia

        protected static java.lang.String filePrefixForDicomInstanceFilesOnInterchangeMedia
      • fileSuffixForDicomInstanceFilesOnInterchangeMedia

        protected static java.lang.String fileSuffixForDicomInstanceFilesOnInterchangeMedia
      • nameForDicomDirectoryOnInterchangeMedia

        protected static java.lang.String nameForDicomDirectoryOnInterchangeMedia
      • exportedZipFileName

        protected static java.lang.String exportedZipFileName
      • textFieldLengthForQueryPatientName

        protected static int textFieldLengthForQueryPatientName
      • textFieldLengthForQueryPatientID

        protected static int textFieldLengthForQueryPatientID
      • textFieldLengthForQueryStudyDate

        protected static int textFieldLengthForQueryStudyDate
      • queryIntroductionLabelText

        protected static java.lang.String queryIntroductionLabelText
      • queryPatientNameLabelText

        protected static java.lang.String queryPatientNameLabelText
      • queryPatientIDLabelText

        protected static java.lang.String queryPatientIDLabelText
      • queryStudyDateLabelText

        protected static java.lang.String queryStudyDateLabelText
      • configureButtonLabel

        protected static java.lang.String configureButtonLabel
      • logButtonLabel

        protected static java.lang.String logButtonLabel
      • queryButtonLabel

        protected static java.lang.String queryButtonLabel
      • retrieveButtonLabel

        protected static java.lang.String retrieveButtonLabel
      • importButtonLabel

        protected static java.lang.String importButtonLabel
      • viewButtonLabel

        protected static java.lang.String viewButtonLabel
      • exportButtonLabel

        protected static java.lang.String exportButtonLabel
      • sendButtonLabel

        protected static java.lang.String sendButtonLabel
      • ftpButtonLabel

        protected static java.lang.String ftpButtonLabel
      • purgeButtonLabel

        protected static java.lang.String purgeButtonLabel
      • configureButtonToolTipText

        protected static java.lang.String configureButtonToolTipText
      • logButtonToolTipText

        protected static java.lang.String logButtonToolTipText
      • queryButtonToolTipText

        protected static java.lang.String queryButtonToolTipText
      • retrieveButtonToolTipText

        protected static java.lang.String retrieveButtonToolTipText
      • importButtonToolTipText

        protected static java.lang.String importButtonToolTipText
      • viewButtonToolTipText

        protected static java.lang.String viewButtonToolTipText
      • exportButtonToolTipText

        protected static java.lang.String exportButtonToolTipText
      • sendButtonToolTipText

        protected static java.lang.String sendButtonToolTipText
      • ftpButtonToolTipText

        protected static java.lang.String ftpButtonToolTipText
      • purgeButtonToolTipText

        protected static java.lang.String purgeButtonToolTipText
      • queryPatientNameToolTipText

        protected static java.lang.String queryPatientNameToolTipText
      • queryPatientIDToolTipText

        protected static java.lang.String queryPatientIDToolTipText
      • queryStudyDateToolTipText

        protected static java.lang.String queryStudyDateToolTipText
      • showDetailedLogLabelText

        protected static java.lang.String showDetailedLogLabelText
      • zipExportLabelText

        protected static java.lang.String zipExportLabelText
      • hierarchicalExportLabelText

        protected static java.lang.String hierarchicalExportLabelText
      • addDicomDirectoryLabelText

        protected static java.lang.String addDicomDirectoryLabelText
      • hierarchicalExportToolTipText

        protected static java.lang.String hierarchicalExportToolTipText
      • addDicomDirectoryToolTipText

        protected static java.lang.String addDicomDirectoryToolTipText
      • loggerTitleMessage

        protected static java.lang.String loggerTitleMessage
      • viewerFrameWidthWanted

        protected static int viewerFrameWidthWanted
      • viewerFrameHeightWanted

        protected static int viewerFrameHeightWanted
      • validatorFrameWidthWanted

        protected static int validatorFrameWidthWanted
      • validatorFrameHeightWanted

        protected static int validatorFrameHeightWanted
      • loggertDialogWidthWanted

        protected static int loggertDialogWidthWanted
      • loggerDialogHeightWanted

        protected static int loggerDialogHeightWanted
      • srcDatabasePanel

        protected javax.swing.JPanel srcDatabasePanel
      • remoteQueryRetrievePanel

        protected javax.swing.JPanel remoteQueryRetrievePanel
      • showDetailedLogCheckBox

        protected javax.swing.JCheckBox showDetailedLogCheckBox
      • zipExportCheckBox

        protected javax.swing.JCheckBox zipExportCheckBox
      • hierarchicalExportCheckBox

        protected javax.swing.JCheckBox hierarchicalExportCheckBox
      • addDicomDirectoryCheckBox

        protected javax.swing.JCheckBox addDicomDirectoryCheckBox
      • queryFilterPatientNameTextField

        protected javax.swing.JTextField queryFilterPatientNameTextField
      • queryFilterPatientIDTextField

        protected javax.swing.JTextField queryFilterPatientIDTextField
      • queryFilterStudyDateTextField

        protected javax.swing.JTextField queryFilterStudyDateTextField
      • currentRemoteQueryTreeBrowser

        protected QueryTreeBrowser currentRemoteQueryTreeBrowser
      • currentRemoteQuerySelectionQueryTreeRecord

        protected QueryTreeRecord currentRemoteQuerySelectionQueryTreeRecord
      • currentRemoteQuerySelectionUniqueKeys

        protected AttributeList currentRemoteQuerySelectionUniqueKeys
      • currentRemoteQuerySelectionUniqueKey

        protected Attribute currentRemoteQuerySelectionUniqueKey
      • currentRemoteQuerySelectionRetrieveAE

        protected java.lang.String currentRemoteQuerySelectionRetrieveAE
      • currentRemoteQuerySelectionLevel

        protected java.lang.String currentRemoteQuerySelectionLevel
      • ourCalledAETitle

        protected java.lang.String ourCalledAETitle
      • savedImagesFolder

        protected java.io.File savedImagesFolder
      • currentDatabaseTreeRecordSelections

        protected DatabaseTreeRecord[] currentDatabaseTreeRecordSelections
      • exportDirectoryPath

        protected java.lang.String exportDirectoryPath
      • importDirectoryPath

        protected java.lang.String importDirectoryPath
    • Constructor Detail

      • DownloadOrTransmit

        public DownloadOrTransmit​(java.lang.String title)
                           throws DicomException,
                                  java.io.IOException
        Throws:
        DicomException
        java.io.IOException
    • Method Detail

      • setCurrentRemoteQueryInformationModel

        protected void setCurrentRemoteQueryInformationModel​(java.lang.String remoteAEForQuery)
      • importFileIntoDatabase

        protected static void importFileIntoDatabase​(DatabaseInformationModel database,
                                                     java.lang.String dicomFileName,
                                                     java.lang.String fileRefererenceType)
                                              throws java.io.FileNotFoundException,
                                                     java.io.IOException,
                                                     DicomException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
        DicomException
      • activateStorageSCP

        protected void activateStorageSCP()
                                   throws DicomException,
                                          java.io.IOException

        Start DICOM storage listener for populating source database.

        Throws:
        DicomException
        java.io.IOException
      • activateTemporaryDatabases

        protected void activateTemporaryDatabases()
                                           throws DicomException

        Start local database.

        Will not persist when the application is closed, so in memory database is used and instances live in the temporary filesystem.

        Throws:
        DicomException
      • getCurrentSourceFilePathSelections

        protected java.util.Vector getCurrentSourceFilePathSelections()
      • getSRDescriptionForLog

        protected static java.lang.String getSRDescriptionForLog​(AttributeList list)
      • makeNewFullyQualifiedInterchangeMediaInstancePathName

        protected static java.lang.String makeNewFullyQualifiedInterchangeMediaInstancePathName​(int fileCount)
                                                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • makeNewFullyQualifiedHierarchicalInstancePathName

        protected static java.lang.String makeNewFullyQualifiedHierarchicalInstancePathName​(java.lang.String sourceFileName)
                                                                                     throws DicomException,
                                                                                            java.io.IOException
        Throws:
        DicomException
        java.io.IOException
      • exportFiles

        protected static void exportFiles​(java.util.Vector<java.lang.String> filesToCopy,
                                          java.io.File whereToCopyFiles,
                                          java.lang.String actionNoun,
                                          SafeProgressBarUpdaterThread progressBarUpdater,
                                          MessageLogger logger,
                                          boolean detailedLog,
                                          boolean addDicomDirectory,
                                          boolean hierarchicalExport,
                                          java.lang.String zipFileName)
      • getQueryRetrieveAEFromIdentifier

        public static java.lang.String getQueryRetrieveAEFromIdentifier​(AttributeList identifier,
                                                                        QueryInformationModel queryInformationModel)
      • getQueryRetrieveLevel

        public static java.lang.String getQueryRetrieveLevel​(AttributeList identifier,
                                                             Attribute uniqueKey)
      • performRetrieve

        protected void performRetrieve​(AttributeList uniqueKeys,
                                       java.lang.String selectionLevel,
                                       java.lang.String retrieveAE)
      • main

        public static void main​(java.lang.String[] arg)

        The method to invoke the application.

        Parameters:
        arg - none