diff --git a/client/src/com/mirth/connect/client/ui/AboutMirth.java b/client/src/com/mirth/connect/client/ui/AboutMirth.java index 77f8eba696..d2bb42a792 100644 --- a/client/src/com/mirth/connect/client/ui/AboutMirth.java +++ b/client/src/com/mirth/connect/client/ui/AboutMirth.java @@ -11,7 +11,6 @@ import java.awt.Dimension; import java.awt.Point; -import java.util.Calendar; import com.mirth.connect.client.ui.util.DisplayUtil; @@ -55,21 +54,22 @@ public void loadContent() { StringBuilder content = new StringBuilder(); if (PlatformUI.SERVER_VERSION != null) { - content.append("Mirth Connect Server " + PlatformUI.SERVER_VERSION + "\n\n"); + content.append(String.format("%s Server %s\n\n", BrandingConstants.PRODUCT_NAME, PlatformUI.SERVER_VERSION)); } if (PlatformUI.BUILD_DATE != null) { - content.append("Built on " + PlatformUI.BUILD_DATE + "\n\n"); + content.append("Built on ").append(PlatformUI.BUILD_DATE).append("\n\n"); } if (PlatformUI.SERVER_ID != null) { - content.append("Server ID: " + PlatformUI.SERVER_ID + "\n\n"); + content.append("Server ID: ").append(PlatformUI.SERVER_ID).append("\n\n"); } - content.append("Java version: " + System.getProperty("java.version") + "\n\n"); + content.append("Java version: ").append(System.getProperty("java.version")).append("\n\n"); - content.append("(c) 2005-2024 NextGen Healthcare. All rights reserved. Visit http://www.nextgen.com\n\n"); - content.append("The following is a list of acknowledgements for third-party software that is included with Mirth Connect:\n\n"); + content.append("(c) 2025 Open Integration Engine contributors. Visit https://openintegrationengine.org\n\n"); + content.append("(c) 2005-2024 NextGen Healthcare.\n\n"); + content.append("The following is a list of acknowledgements for third-party software that is included with ").append(BrandingConstants.PRODUCT_NAME).append(":\n\n"); content.append("This product includes software developed by the Apache Software Foundation (http://www.apache.org/).\n\n"); content.append("This product includes all or a portion of the HL7 Vocabulary database, or is derived from the HL7 Vocabulary database, subject to a license from Health Level Seven, Inc.\n\n"); content.append("This product includes a portion of images from http://www.famfamfam.com/lab/icons/silk/.\n\n"); @@ -116,7 +116,7 @@ private void initComponents() { jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); - jLabel2.setText("About Mirth Connect"); + jLabel2.setText(String.format("About %s", BrandingConstants.PRODUCT_NAME)); javax.swing.GroupLayout mirthHeadingPanel1Layout = new javax.swing.GroupLayout(mirthHeadingPanel1); mirthHeadingPanel1.setLayout(mirthHeadingPanel1Layout); diff --git a/client/src/com/mirth/connect/client/ui/BrandingConstants.java b/client/src/com/mirth/connect/client/ui/BrandingConstants.java new file mode 100644 index 0000000000..eb3ee74387 --- /dev/null +++ b/client/src/com/mirth/connect/client/ui/BrandingConstants.java @@ -0,0 +1,43 @@ +package com.mirth.connect.client.ui; + +import javax.swing.ImageIcon; + +public class BrandingConstants { + + public static final String PRODUCT_NAME = "Open Integration Engine"; + public static final String COMPANY_NAME = "Open Integration Engine"; + + /* + Sets the title of the Administrator window + */ + public static final String WINDOW_TITLE = "Open Integration Engine Administrator"; + + public static final String ISSUE_TRACKER_LOCATION = "https://github.com/openintegrationengine/engine/issues"; + + + // The URL that is opened when clicking the bottom image in Login window + // The one where you're asked for server URL, username, and password + public static final String COMPANY_URL = "https://openintegrationengine.org"; + public static final String COMPANY_TOOLTIP = "Open Integration Engine"; + + + // The URL that is opened when clicking the image in the Top right corner of the main administrator window + // The URL that is opened when clicking "Visit + PRODUCT_NAME" button in Administrator + public static final String PRODUCT_URL = "https://github.com/openintegrationengine/engine"; + public static final String PRODUCT_TOOLTIP = "Open Integration Engine"; + + + // The URL that is opened when clicking "Help" button in Administrator + public static String HELP_URL_LOCATION = "https://github.com/OpenIntegrationEngine/engine/discussions"; + + // The "More info" in Server settings "Provide usage statistics" + public static final String PRIVACY_URL = "https://github.com/openintegrationengine"; + public static final String PRIVACY_TOOLTIP = "Privacy Information"; + + // Icons + // Favicon must be at 32px x 32px scale + public static final ImageIcon FAVICON = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/branding/oie_logo_only_white_background_32x32.png")); + // These images must be at 215px x 30px scale + public static final ImageIcon LOGO = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/branding/oie_logo_banner_text_215x30.png")); + public static final ImageIcon LOGO_GRAY = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/branding/oie_white_logo_banner_text_215x30.png")); +} diff --git a/client/src/com/mirth/connect/client/ui/ChannelPanel.java b/client/src/com/mirth/connect/client/ui/ChannelPanel.java index 67e20b7f2a..e0de345f68 100644 --- a/client/src/com/mirth/connect/client/ui/ChannelPanel.java +++ b/client/src/com/mirth/connect/client/ui/ChannelPanel.java @@ -217,7 +217,7 @@ public ChannelPanel() { parent.addTask(TaskConstants.CHANNEL_DEPLOY_DEBUG, "Debug Channel", "Deploys the currently selected channel in debug mode.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/bug_go.png")), channelTasks, channelPopupMenu, this); parent.addTask(TaskConstants.CHANNEL_DEPLOY, "Deploy Channel", "Deploys the currently selected channel.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/arrow_redo.png")), channelTasks, channelPopupMenu, this); parent.addTask(TaskConstants.CHANNEL_EDIT_GLOBAL_SCRIPTS, "Edit Global Scripts", "Edit scripts that are not channel specific.", "G", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/script_edit.png")), channelTasks, channelPopupMenu, this); - parent.addTask(TaskConstants.CHANNEL_EDIT_CODE_TEMPLATES, "Edit Code Templates", "Create and manage templates to be used in JavaScript throughout Mirth Connect.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/page_edit.png")), channelTasks, channelPopupMenu, this); + parent.addTask(TaskConstants.CHANNEL_EDIT_CODE_TEMPLATES, "Edit Code Templates", String.format("Create and manage templates to be used in JavaScript throughout %s.", BrandingConstants.PRODUCT_NAME), "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/page_edit.png")), channelTasks, channelPopupMenu, this); parent.addTask(TaskConstants.CHANNEL_NEW_CHANNEL, "New Channel", "Create a new channel.", "N", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/application_form_add.png")), channelTasks, channelPopupMenu, this); parent.addTask(TaskConstants.CHANNEL_IMPORT_CHANNEL, "Import Channel", "Import a channel from an XML file.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/report_go.png")), channelTasks, channelPopupMenu, this); parent.addTask(TaskConstants.CHANNEL_EXPORT_ALL_CHANNELS, "Export All Channels", "Export all of the channels to XML files.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/report_disk.png")), channelTasks, channelPopupMenu, this); @@ -2659,7 +2659,7 @@ private String getMissingExtensions(InvalidChannel channel) { StringBuilder builder = new StringBuilder(); if (!missingConnectors.isEmpty()) { - builder.append("\n\nYour Mirth Connect installation is missing required connectors for this channel:\n "); + builder.append(String.format("\n\nYour %s installation is missing required connectors for this channel:\n ", BrandingConstants.PRODUCT_NAME)); builder.append(StringUtils.join(missingConnectors.toArray(), "\n ")); builder.append("\n\n"); } @@ -2668,7 +2668,7 @@ private String getMissingExtensions(InvalidChannel channel) { if (missingConnectors.isEmpty()) { builder.append("\n\n"); } - builder.append("Your Mirth Connect installation is missing required data types for this channel:\n "); + builder.append(String.format("Your %s installation is missing required data types for this channel:\n ", BrandingConstants.PRODUCT_NAME)); builder.append(StringUtils.join(missingDataTypes.toArray(), "\n ")); builder.append("\n\n"); } diff --git a/client/src/com/mirth/connect/client/ui/ChannelSetup.java b/client/src/com/mirth/connect/client/ui/ChannelSetup.java index 70070832a8..f9a7684276 100644 --- a/client/src/com/mirth/connect/client/ui/ChannelSetup.java +++ b/client/src/com/mirth/connect/client/ui/ChannelSetup.java @@ -780,7 +780,7 @@ private void loadChannelInfo() { encryptAttachmentsCheckBox.setSelected(properties.isEncryptAttachments()); encryptCustomMetaDataCheckBox.setSelected(properties.isEncryptCustomMetaData()); - // Fix dataTypes and properties not set by previous versions of Mirth Connect + // Fix dataTypes and properties not set by previous versions fixNullDataTypesAndProperties(); // load message storage settings diff --git a/client/src/com/mirth/connect/client/ui/CustomBannerPanelDialog.java b/client/src/com/mirth/connect/client/ui/CustomBannerPanelDialog.java index 2eedb3d6d1..dc0394b751 100644 --- a/client/src/com/mirth/connect/client/ui/CustomBannerPanelDialog.java +++ b/client/src/com/mirth/connect/client/ui/CustomBannerPanelDialog.java @@ -18,7 +18,6 @@ import javax.swing.AbstractButton; import javax.swing.BorderFactory; -import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JFrame; @@ -58,7 +57,7 @@ public CustomBannerPanelDialog(JFrame parent, String title, String text) { private void initComponents() { setLayout(new MigLayout("insets 12")); // layout sets 12 pixel border setTitle(title); - setIconImage(UIConstants.MIRTH_FAVICON.getImage()); + setIconImage(BrandingConstants.FAVICON.getImage()); getContentPane().setBackground(UIConstants.BACKGROUND_COLOR); // set dialog box to background color setBackground(UIConstants.BACKGROUND_COLOR); // get all other backgrounds for each piece diff --git a/client/src/com/mirth/connect/client/ui/ErrorDialog.java b/client/src/com/mirth/connect/client/ui/ErrorDialog.java index 52b213c1e6..46fe55eb11 100644 --- a/client/src/com/mirth/connect/client/ui/ErrorDialog.java +++ b/client/src/com/mirth/connect/client/ui/ErrorDialog.java @@ -100,7 +100,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { question.setBackground(new java.awt.Color(224, 223, 227)); question.setBorder(null); question.setEditable(false); - question.setText("An unexpected error has occurred. If this is a severe error and you are on NextGen Healthcare Support, please contact the NextGen Healthcare Help Desk."); + question.setText("An unexpected error has occurred. Check the server log and client console output for further details."); question.setFocusable(false); questionPane.setViewportView(question); diff --git a/client/src/com/mirth/connect/client/ui/FirstLoginDialog.java b/client/src/com/mirth/connect/client/ui/FirstLoginDialog.java index c321e0cdd5..fbfa5e90d1 100644 --- a/client/src/com/mirth/connect/client/ui/FirstLoginDialog.java +++ b/client/src/com/mirth/connect/client/ui/FirstLoginDialog.java @@ -109,7 +109,7 @@ private void initComponents() { contentTextPane = new javax.swing.JTextPane(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); - setTitle("Welcome to Mirth Connect"); + setTitle(String.format("Welcome to %s", BrandingConstants.PRODUCT_NAME)); channelOverview.setBackground(new java.awt.Color(255, 255, 255)); channelOverview.setName(""); // NOI18N @@ -123,7 +123,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); - jLabel2.setText("Welcome to Mirth® Connect by NextGen® Healthcare"); + jLabel2.setText(String.format("Welcome to %s", BrandingConstants.PRODUCT_NAME)); javax.swing.GroupLayout mirthHeadingPanel1Layout = new javax.swing.GroupLayout(mirthHeadingPanel1); mirthHeadingPanel1.setLayout(mirthHeadingPanel1Layout); @@ -144,7 +144,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { jTextPane1.setEditable(false); jTextPane1.setBackground(new java.awt.Color(250, 250, 210)); - jTextPane1.setText("You may now customize your Mirth Connect user account information. You also have the option of changing your account password."); + jTextPane1.setText(String.format("You may now customize your %s user account information. You also have the option of changing your account password.", BrandingConstants.PRODUCT_NAME)); jTextPane1.setAutoscrolls(false); jTextPane1.setDisabledTextColor(new java.awt.Color(0, 0, 0)); jTextPane1.setEnabled(false); @@ -152,8 +152,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { registerCheckBox.setBackground(new java.awt.Color(255, 255, 255)); registerCheckBox.setSelected(true); - registerCheckBox.setText("Register user with NextGen Healthcare"); - registerCheckBox.setToolTipText("Register your user information with NextGen Healthcare to help us
improve the product and provide better service."); + registerCheckBox.setText(String.format("Register user with %s", BrandingConstants.COMPANY_NAME)); + registerCheckBox.setToolTipText(String.format("Register your user information with %s to help us
improve the product and provide better service.", BrandingConstants.COMPANY_NAME)); registerCheckBox.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { registerCheckBoxActionPerformed(evt); @@ -162,11 +162,11 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { userConsentCheckBox.setBackground(new java.awt.Color(255, 255, 255)); userConsentCheckBox.setSelected(true); - userConsentCheckBox.setText("I consent to receive email updates and marketing messages from NextGen Healthcare."); + userConsentCheckBox.setText(String.format("I consent to receive email updates and marketing messages from %s.", BrandingConstants.COMPANY_NAME)); userConsentCheckBox.setToolTipText(""); contentTextPane.setContentType("text/html"); - contentTextPane.setText("    For more information on the processing of your personal data, click here to find our Privacy Policy."); + contentTextPane.setText(String.format("    For more information on the processing of your personal data, click here to find our Privacy Policy.", BrandingConstants.PRIVACY_URL)); MutableAttributeSet set = new SimpleAttributeSet(); StyleConstants.setLineSpacing(set, 1); diff --git a/client/src/com/mirth/connect/client/ui/Frame.java b/client/src/com/mirth/connect/client/ui/Frame.java index af4c41bea5..7178035618 100644 --- a/client/src/com/mirth/connect/client/ui/Frame.java +++ b/client/src/com/mirth/connect/client/ui/Frame.java @@ -18,7 +18,6 @@ import java.awt.Font; import java.awt.GradientPaint; import java.awt.GridBagConstraints; -import java.awt.Image; import java.awt.KeyEventDispatcher; import java.awt.KeyboardFocusManager; import java.awt.Toolkit; @@ -98,9 +97,6 @@ import org.jdesktop.swingx.painter.MattePainter; import org.syntax.jedit.JEditTextArea; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.node.ObjectNode; import com.mirth.connect.client.core.Client; import com.mirth.connect.client.core.ClientException; import com.mirth.connect.client.core.ConnectServiceUtil; @@ -161,7 +157,6 @@ import com.mirth.connect.util.ChannelDependencyGraph; import com.mirth.connect.util.CharsetUtils; import com.mirth.connect.util.DirectedAcyclicGraphNode; -import com.mirth.connect.util.HttpUtil; import com.mirth.connect.util.JavaScriptSharedUtil; import com.mirth.connect.util.MigrationUtil; @@ -278,11 +273,11 @@ public Frame() { titleText.append(PlatformUI.SERVER_URL); } - titleText.append(" - " + UIConstants.TITLE_TEXT); + titleText.append(" - " + BrandingConstants.WINDOW_TITLE); setTitle(titleText.toString()); setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); - setIconImage(UIConstants.MIRTH_FAVICON.getImage()); + setIconImage(BrandingConstants.FAVICON.getImage()); makePaneContainer(); connectionError = false; @@ -767,18 +762,15 @@ private void buildContentPanel(JXTitledPanel container, JScrollPane component, b padlockWarning.setForeground(Color.WHITE); JLabel mirthConnectImage = new JLabel(); - ImageIcon imageIcon = UIConstants.MIRTHCONNECT_LOGO_GRAY; // load the image to a imageIcon - Image image = imageIcon.getImage(); // transform it - Image newimg = image.getScaledInstance(218, 29, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way - imageIcon = new ImageIcon(newimg); + ImageIcon imageIcon = BrandingConstants.LOGO_GRAY; // load the image to a imageIcon mirthConnectImage.setIcon(imageIcon); - mirthConnectImage.setToolTipText(UIConstants.MIRTHCONNECT_TOOLTIP); + mirthConnectImage.setToolTipText(BrandingConstants.PRODUCT_TOOLTIP); mirthConnectImage.setCursor(new Cursor(Cursor.HAND_CURSOR)); mirthConnectImage.setVerticalAlignment(SwingConstants.BOTTOM); mirthConnectImage.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { - BareBonesBrowserLaunch.openURL(UIConstants.MIRTHCONNECT_URL); + BareBonesBrowserLaunch.openURL(BrandingConstants.PRODUCT_URL); } }); @@ -1020,7 +1012,7 @@ private void setInitialVisibleTasks() { private void createViewPane() { // Create View pane viewPane = new JXTaskPane(); - viewPane.setTitle("Mirth Connect"); + viewPane.setTitle(BrandingConstants.PRODUCT_NAME); viewPane.setName(TaskConstants.VIEW_KEY); viewPane.setFocusable(false); @@ -1030,7 +1022,7 @@ private void createViewPane() { addTask(TaskConstants.VIEW_SETTINGS, "Settings", "Contains local and system settings.", "S", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/wrench.png")), viewPane, null); addTask(TaskConstants.VIEW_ALERTS, "Alerts", "Contains alert settings.", "A", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/error.png")), viewPane, null); addTask(TaskConstants.VIEW_EVENTS, "Events", "Show the event logs for the system.", "E", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/table.png")), viewPane, null); - addTask(TaskConstants.VIEW_EXTENSIONS, "Extensions", "View and manage Mirth Connect extensions", "X", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/plugin.png")), viewPane, null); + addTask(TaskConstants.VIEW_EXTENSIONS, "Extensions", String.format("View and manage %s extensions", BrandingConstants.PRODUCT_NAME), "X", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/plugin.png")), viewPane, null); setNonFocusable(viewPane); taskPaneContainer.add(viewPane); @@ -1258,13 +1250,13 @@ private void createOtherPane() { otherPane.setTitle("Other"); otherPane.setName(TaskConstants.OTHER_KEY); otherPane.setFocusable(false); - addTask(TaskConstants.OTHER_NOTIFICATIONS, UIConstants.VIEW_NOTIFICATIONS, "View notifications from NextGen Healthcare.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/flag_orange.png")), otherPane, null); - addTask(TaskConstants.OTHER_VIEW_USER_API, "View User API", "View documentation for the Mirth Connect User API.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/page_white_text.png")), otherPane, null); - addTask(TaskConstants.OTHER_VIEW_CLIENT_API, "View Client API", "View documentation for the Mirth Connect Client API.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/page_white_text.png")), otherPane, null); - addTask(TaskConstants.OTHER_HELP, "Help", "View the Mirth Connect wiki.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/help.png")), otherPane, null); - addTask(TaskConstants.OTHER_ABOUT, "About Mirth Connect", "View the about page for Mirth Connect.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/information.png")), otherPane, null); - addTask(TaskConstants.OTHER_VISIT_MIRTH, "Visit nextgen.com", "View Mirth Connect's homepage.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/house.png")), otherPane, null); - addTask(TaskConstants.OTHER_REPORT_ISSUE, "Report Issue", "Visit Mirth Connect's issue tracker.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/bug.png")), otherPane, null); + addTask(TaskConstants.OTHER_NOTIFICATIONS, UIConstants.VIEW_NOTIFICATIONS, String.format("View notifications from %s.", BrandingConstants.PRODUCT_NAME), "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/flag_orange.png")), otherPane, null); + addTask(TaskConstants.OTHER_VIEW_USER_API, "View User API", String.format("View documentation for the %s User API.", BrandingConstants.PRODUCT_NAME), "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/page_white_text.png")), otherPane, null); + addTask(TaskConstants.OTHER_VIEW_CLIENT_API, "View Client API", String.format("View documentation for the %s Client API.", BrandingConstants.PRODUCT_NAME), "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/page_white_text.png")), otherPane, null); + addTask(TaskConstants.OTHER_HELP, "Help", String.format("View help for %s.", BrandingConstants.PRODUCT_NAME), "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/help.png")), otherPane, null); + addTask(TaskConstants.OTHER_ABOUT, String.format("About %s", BrandingConstants.PRODUCT_NAME), String.format("View the about page for %s.", BrandingConstants.PRODUCT_NAME), "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/information.png")), otherPane, null); + addTask(TaskConstants.OTHER_VISIT_MIRTH, "Visit homepage", String.format("View %s's homepage.", BrandingConstants.PRODUCT_NAME), "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/house.png")), otherPane, null); + addTask(TaskConstants.OTHER_REPORT_ISSUE, "Report Issue", String.format("Visit %s's issue tracker.", BrandingConstants.PRODUCT_NAME), "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/bug.png")), otherPane, null); addTask(TaskConstants.OTHER_LOGOUT, "Logout", "Logout and return to the login screen.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/disconnect.png")), otherPane, null); setNonFocusable(otherPane); taskPaneContainer.add(otherPane); @@ -1516,7 +1508,7 @@ public void alertThrowable(Component parentComponent, Throwable t, String custom connectionError = true; statusUpdaterExecutor.shutdownNow(); - alertWarning(parentComponent, "Sorry your connection to Mirth Connect has either timed out or there was an error in the connection. Please login again."); + alertWarning(parentComponent, String.format("Sorry your connection to %s has either timed out or there was an error in the connection. Please login again.", BrandingConstants.PRODUCT_NAME)); if (!exportChannelOnError()) { return; } @@ -1534,7 +1526,7 @@ public void alertThrowable(Component parentComponent, Throwable t, String custom } else { server = PlatformUI.SERVER_URL; } - alertWarning(parentComponent, "The Mirth Connect server " + server + " is no longer running. Please start it and log in again."); + alertWarning(parentComponent, String.format("The %s server %s is no longer running. Please start it and log in again.", BrandingConstants.PRODUCT_NAME, server)); if (!exportChannelOnError()) { return; } @@ -2076,7 +2068,7 @@ public boolean isSaveEnabled() { // --- All bound actions are beneath this point --- // // //////////////////////////////////////////////////////////// public void goToMirth() { - BareBonesBrowserLaunch.openURL("https://www.nextgen.com/products-and-services/integration-engine"); + BareBonesBrowserLaunch.openURL(BrandingConstants.PRODUCT_URL); } public void goToUserAPI() { @@ -2092,7 +2084,7 @@ public void goToAbout() { } public void doReportIssue() { - BareBonesBrowserLaunch.openURL(UIConstants.ISSUE_TRACKER_LOCATION); + BareBonesBrowserLaunch.openURL(BrandingConstants.ISSUE_TRACKER_LOCATION); } public void doShowDashboard() { @@ -4813,47 +4805,7 @@ public void doFind(JEditTextArea text) { } public void doHelp() { - final String workingId = startWorking("Retrieving help URL..."); - - SwingWorker worker = new SwingWorker() { - @Override - protected String doInBackground() throws Exception { - return HttpUtil.executeGetRequest(UIConstants.HELP_URL_LOCATION, 30000, true, PlatformUI.HTTPS_PROTOCOLS, PlatformUI.HTTPS_CIPHER_SUITES); - } - - @Override - protected void done() { - String url = userPreferences.get("helpDefaultLocation", UIConstants.HELP_DEFAULT_LOCATION); - - try { - String webhelpJson = get(); - ObjectNode webhelpObj = (ObjectNode) new ObjectMapper().readTree(webhelpJson); - - // Get version-specific node, or "default" - JsonNode urlNode; - if (webhelpObj.has(Version.getLatest().toString())) { - urlNode = webhelpObj.get(Version.getLatest().toString()); - } else { - urlNode = webhelpObj.get("default"); - } - - String newUrl = urlNode.asText(); - - if (StringUtils.isNotBlank(newUrl)) { - url = newUrl; - userPreferences.put("helpDefaultLocation", url); - } - } catch (Throwable t) { - logger.error("Unable to retrieve help URL, using default.", t); - } finally { - stopWorking(workingId); - } - - BareBonesBrowserLaunch.openURL(url); - } - }; - - worker.execute(); + BareBonesBrowserLaunch.openURL(BrandingConstants.HELP_URL_LOCATION); } public void goToNotifications() { @@ -4966,7 +4918,7 @@ public boolean promptObjectMigration(String content, String objectName) { StringBuilder message = new StringBuilder(); if (version == null) { - message.append("The " + objectName + " being imported is from an older or unknown version of Mirth Connect.\n"); + message.append(String.format("The %s being imported is from an older or unknown version of %s.\n", objectName, BrandingConstants.PRODUCT_NAME)); } else { int comparison = MigrationUtil.compareVersions(version, PlatformUI.SERVER_VERSION); @@ -4975,16 +4927,36 @@ public boolean promptObjectMigration(String content, String objectName) { } if (comparison > 0) { - alertInformation(this, "The " + objectName + " being imported originated from Mirth Connect version " + version + ".\nYou are using Mirth Connect version " + PlatformUI.SERVER_VERSION + ".\nThe " + objectName + " cannot be imported, because it originated from a newer version of Mirth Connect."); + alertInformation( + this, + String.format( + "The %s being imported originated from %s version %s.\nYou are using %s version %s.\nThe %s cannot be imported, because it originated from a newer version of %s.", + objectName, + BrandingConstants.PRODUCT_NAME, + version, + BrandingConstants.PRODUCT_NAME, + PlatformUI.SERVER_VERSION, + objectName, + BrandingConstants.PRODUCT_NAME + ) + ); return false; } if (comparison < 0) { - message.append("The " + objectName + " being imported originated from Mirth Connect version " + version + ".\n"); + message.append(String.format("The %s being imported originated from %s version %s.\n", objectName, BrandingConstants.PRODUCT_NAME, version)); } } - message.append("You are using Mirth Connect version " + PlatformUI.SERVER_VERSION + ".\nWould you like to automatically convert the " + objectName + " to the " + PlatformUI.SERVER_VERSION + " format?"); + message.append( + String.format( + "You are using %s version %s.\nWould you like to automatically convert the %s to the %s format?", + BrandingConstants.PRODUCT_NAME, + PlatformUI.SERVER_VERSION, + objectName, + PlatformUI.SERVER_VERSION + ) + ); return JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(this, message.toString(), "Select an Option", JOptionPane.YES_NO_OPTION); } @@ -5130,4 +5102,4 @@ public void updateBackgroundColor(User currentUser) { } setupBackgroundPainters(backgroundColor); } -} \ No newline at end of file +} diff --git a/client/src/com/mirth/connect/client/ui/LoginPanel.java b/client/src/com/mirth/connect/client/ui/LoginPanel.java index 8b19ce1b2e..d1c6bfef79 100644 --- a/client/src/com/mirth/connect/client/ui/LoginPanel.java +++ b/client/src/com/mirth/connect/client/ui/LoginPanel.java @@ -11,7 +11,6 @@ import java.awt.Color; import java.awt.Cursor; -import java.awt.Image; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -53,33 +52,29 @@ private LoginPanel() { jLabel2.setForeground(UIConstants.HEADER_TITLE_TEXT_COLOR); jLabel5.setForeground(UIConstants.HEADER_TITLE_TEXT_COLOR); setDefaultCloseOperation(EXIT_ON_CLOSE); - setIconImage(UIConstants.MIRTH_FAVICON.getImage()); - ImageIcon imageIcon = UIConstants.MIRTHCORP_LOGO; // load the image to a imageIcon - Image image = imageIcon.getImage(); // transform it - Image newimg = image.getScaledInstance(175, 30, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way - imageIcon = new ImageIcon(newimg); - + setIconImage(BrandingConstants.FAVICON.getImage()); + ImageIcon imageIcon = BrandingConstants.LOGO; // load the image to a imageIcon mirthCorpImage.setIcon(imageIcon); mirthCorpImage.setText(""); - mirthCorpImage.setToolTipText(UIConstants.MIRTHCORP_TOOLTIP); + mirthCorpImage.setToolTipText(BrandingConstants.COMPANY_TOOLTIP); mirthCorpImage.setCursor(new Cursor(Cursor.HAND_CURSOR)); mirthCorpImage.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { - BareBonesBrowserLaunch.openURL(UIConstants.MIRTHCORP_URL); + BareBonesBrowserLaunch.openURL(BrandingConstants.COMPANY_URL); } }); mirthCorpImage1.setIcon(imageIcon); mirthCorpImage1.setText(""); - mirthCorpImage1.setToolTipText(UIConstants.MIRTHCORP_TOOLTIP); + mirthCorpImage1.setToolTipText(BrandingConstants.COMPANY_TOOLTIP); mirthCorpImage1.setCursor(new Cursor(Cursor.HAND_CURSOR)); mirthCorpImage1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { - BareBonesBrowserLaunch.openURL(UIConstants.MIRTHCORP_URL); + BareBonesBrowserLaunch.openURL(BrandingConstants.COMPANY_URL); } }); @@ -107,8 +102,8 @@ public void initialize(String mirthServer, String version, String user, String p PlatformUI.CLIENT_VERSION = version; - setTitle("Mirth Connect " + version + " - Login"); - setIconImage(UIConstants.MIRTH_FAVICON.getImage()); + setTitle(String.format("%s %s - Login", BrandingConstants.PRODUCT_NAME, version)); + setIconImage(BrandingConstants.FAVICON.getImage()); serverName.setText(mirthServer); @@ -171,8 +166,8 @@ private void initComponents() { placeholderButton = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - setTitle("Mirth Connect - Login"); - setIconImage(UIConstants.MIRTH_FAVICON.getImage()); + setTitle(String.format("%s - Login", BrandingConstants.PRODUCT_NAME)); + setIconImage(BrandingConstants.FAVICON.getImage()); loginMain.setBackground(new java.awt.Color(255, 255, 255)); loginMain.setName(""); // NOI18N @@ -203,7 +198,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); - jLabel2.setText("Mirth Connect Login"); + jLabel2.setText(String.format("%s Login", BrandingConstants.PRODUCT_NAME)); javax.swing.GroupLayout mirthHeadingPanel2Layout = new javax.swing.GroupLayout(mirthHeadingPanel2); mirthHeadingPanel2.setLayout(mirthHeadingPanel2Layout); @@ -320,7 +315,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { jLabel5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 255, 255)); - jLabel5.setText("Mirth Connect Login"); + jLabel5.setText(String.format("%s Login", BrandingConstants.PRODUCT_NAME)); javax.swing.GroupLayout mirthHeadingPanel1Layout = new javax.swing.GroupLayout(mirthHeadingPanel1); mirthHeadingPanel1.setLayout(mirthHeadingPanel1Layout); diff --git a/client/src/com/mirth/connect/client/ui/MessageImportDialog.java b/client/src/com/mirth/connect/client/ui/MessageImportDialog.java index f3f3310b29..417fe18742 100644 --- a/client/src/com/mirth/connect/client/ui/MessageImportDialog.java +++ b/client/src/com/mirth/connect/client/ui/MessageImportDialog.java @@ -87,7 +87,7 @@ public void actionPerformed(ActionEvent e) { importServerRadio.setSelected(true); importServerRadio.setBackground(UIConstants.BACKGROUND_COLOR); importServerRadio.addActionListener(importDestinationChanged); - importServerRadio.setToolTipText("Import messages from a file, folder or archive
on the Mirth Connect Server."); + importServerRadio.setToolTipText(String.format("Import messages from a file, folder or archive
on the %s Server.", BrandingConstants.PRODUCT_NAME)); importLocalRadio = new MirthRadioButton("My Computer"); importLocalRadio.setBackground(UIConstants.BACKGROUND_COLOR); diff --git a/client/src/com/mirth/connect/client/ui/SettingsPanelAdministrator.java b/client/src/com/mirth/connect/client/ui/SettingsPanelAdministrator.java index 1777bca945..8ecf7c35de 100644 --- a/client/src/com/mirth/connect/client/ui/SettingsPanelAdministrator.java +++ b/client/src/com/mirth/connect/client/ui/SettingsPanelAdministrator.java @@ -597,12 +597,18 @@ private void initComponents() { checkForNotificationsYesRadio = new MirthRadioButton("Yes"); checkForNotificationsYesRadio.setBackground(userSettingsPanel.getBackground()); - checkForNotificationsYesRadio.setToolTipText("Checks for notifications from NextGen Healthcare (announcements, available updates, etc.)
relevant to this version of Mirth Connect whenever user logs in."); + checkForNotificationsYesRadio.setToolTipText(String.format( + "Checks for notifications from %s (announcements, available updates, etc.)", + BrandingConstants.COMPANY_NAME + )); notificationButtonGroup.add(checkForNotificationsYesRadio); checkForNotificationsNoRadio = new MirthRadioButton("No"); checkForNotificationsNoRadio.setBackground(userSettingsPanel.getBackground()); - checkForNotificationsNoRadio.setToolTipText("Checks for notifications from NextGen Healthcare (announcements, available updates, etc.)
relevant to this version of Mirth Connect whenever user logs in."); + checkForNotificationsNoRadio.setToolTipText(String.format( + "Checks for notifications from %s (announcements, available updates, etc.)", + BrandingConstants.COMPANY_NAME + )); notificationButtonGroup.add(checkForNotificationsNoRadio); backgroundColorLabel = new JLabel("Administrator Background Color:"); @@ -923,4 +929,4 @@ public Component getTableCellEditorComponent(JTable table, Object value, boolean private JScrollPane shortcutKeyScrollPane; private MirthTable shortcutKeyTable; private JButton restoreDefaultsButton; -} \ No newline at end of file +} diff --git a/client/src/com/mirth/connect/client/ui/SettingsPanelServer.java b/client/src/com/mirth/connect/client/ui/SettingsPanelServer.java index f56a821d2b..c277a3d609 100644 --- a/client/src/com/mirth/connect/client/ui/SettingsPanelServer.java +++ b/client/src/com/mirth/connect/client/ui/SettingsPanelServer.java @@ -81,7 +81,7 @@ public SettingsPanelServer(String tabName) { addTask(TaskConstants.SETTINGS_SERVER_RESTORE, "Restore Config", "Restore your server configuration from a server configuration XML file. This will remove and restore your channels, alerts, code templates, server properties, global scripts, and plugin properties.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/report_go.png"))); addTask(TaskConstants.SETTINGS_CLEAR_ALL_STATS, "Clear All Statistics", "Reset the current and lifetime statistics for all channels.", "", new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/chart_bar_delete.png"))); - provideUsageStatsMoreInfoLabel.setToolTipText(UIConstants.PRIVACY_TOOLTIP); + provideUsageStatsMoreInfoLabel.setToolTipText(BrandingConstants.PRIVACY_TOOLTIP); provideUsageStatsMoreInfoLabel.setCursor(new Cursor(Cursor.HAND_CURSOR)); queueBufferSizeField.setDocument(new MirthFieldConstraints(8, false, false, true)); smtpTimeoutField.setDocument(new MirthFieldConstraints(0, false, false, false)); @@ -201,7 +201,7 @@ public Void doInBackground() { } else { titleText.append(PlatformUI.SERVER_URL); } - titleText.append(" - " + UIConstants.TITLE_TEXT); + titleText.append(" - " + BrandingConstants.WINDOW_TITLE); statusBarText.append(PlatformUI.SERVER_URL); titleText.append(" - (" + PlatformUI.SERVER_VERSION + ")"); getFrame().setTitle(titleText.toString()); @@ -685,7 +685,7 @@ private void initComponents() { environmentNameLabel = new JLabel("Environment name:"); environmentNameField = new MirthTextField(); - environmentNameField.setToolTipText("The name of this Mirth Connect environment. There is one environment name per Mirth Connect database."); + environmentNameField.setToolTipText(String.format("The name of this environment. There is one environment name per %s database.", BrandingConstants.PRODUCT_NAME)); serverNameLabel = new JLabel("Server name:"); serverNameField = new MirthTextField(); @@ -713,15 +713,23 @@ public void actionPerformed(ActionEvent evt) { provideUsageStatsYesRadio = new MirthRadioButton("Yes"); provideUsageStatsYesRadio.setBackground(getBackground()); - provideUsageStatsYesRadio.setToolTipText("Toggles sending usage statistics to NextGen Healthcare. These statistics
do not contain any PHI or channel/script implementations,
and help NextGen Healthcare determine which connectors or areas of
Mirth Connect are most widely used."); + provideUsageStatsYesRadio.setToolTipText(String.format( + "Toggles sending usage statistics to %s. These statistics
do not contain any PHI or channel/script implementations.", + BrandingConstants.COMPANY_NAME + )); provideUsageStatsButtonGroup.add(provideUsageStatsYesRadio); provideUsageStatsNoRadio = new MirthRadioButton("No"); provideUsageStatsNoRadio.setBackground(getBackground()); - provideUsageStatsNoRadio.setToolTipText("Toggles sending usage statistics to NextGen Healthcare. These statistics
do not contain any PHI or channel/script implementations,
and help NextGen Healthcare determine which connectors or areas of
Mirth Connect are most widely used."); + provideUsageStatsNoRadio.setToolTipText(String.format( + "Toggles sending usage statistics to %s. These statistics
do not contain any PHI or channel/script implementations.", + BrandingConstants.COMPANY_NAME + )); provideUsageStatsButtonGroup.add(provideUsageStatsNoRadio); provideUsageStatsMoreInfoLabel = new JLabel("More Info"); + provideUsageStatsMoreInfoLabel.setEnabled(false); + provideUsageStatsMoreInfoLabel.setVisible(false); provideUsageStatsMoreInfoLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { provideUsageStatsMoreInfoLabelMouseClicked(evt); @@ -969,7 +977,7 @@ private void initLayout() { } private void provideUsageStatsMoreInfoLabelMouseClicked(MouseEvent evt) { - BareBonesBrowserLaunch.openURL(UIConstants.PRIVACY_URL); + BareBonesBrowserLaunch.openURL(BrandingConstants.PRIVACY_URL); } private void requireAuthenticationNoRadioActionPerformed(ActionEvent evt) { @@ -1168,4 +1176,4 @@ public void done() { private JLabel notificationLabel; private MirthTextPane notificationTextPane; private JScrollPane notificationScrollPane; -} \ No newline at end of file +} diff --git a/client/src/com/mirth/connect/client/ui/UIConstants.java b/client/src/com/mirth/connect/client/ui/UIConstants.java index 0be6486a2e..0d39c0963c 100644 --- a/client/src/com/mirth/connect/client/ui/UIConstants.java +++ b/client/src/com/mirth/connect/client/ui/UIConstants.java @@ -27,16 +27,8 @@ public class UIConstants { public static final String EOL_MAC = "\r"; // for Frame public static final int TASK_PANE_WIDTH = 170; - public static final String TITLE_TEXT = "Mirth Connect Administrator"; public static final int MIRTH_WIDTH = 950; public static final int MIRTH_HEIGHT = 650; - public static final ImageIcon MIRTH_FAVICON = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/NG_MC_Icon_32x32.png")); - public static final ImageIcon MIRTHCORP_LOGO = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/MirthConnect_NLogo_RGB.png")); - public static final ImageIcon MIRTHCONNECT_LOGO_GRAY = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/MirthConnect_Logo_WM_White.png")); - public static final String MIRTHCORP_TOOLTIP = "NextGen Healthcare"; - public static final String MIRTHCONNECT_TOOLTIP = "Mirth Connect"; - public static final String MIRTHCORP_URL = "https://www.nextgen.com/products-and-services/integration-engine"; - public static final String MIRTHCONNECT_URL = "https://www.nextgen.com/products-and-services/integration-engine"; public static final String EDIT_FILTER = "Edit Filter"; public static final String EDIT_TRANSFORMER = "Edit Transformer"; public static final String EDIT_RESPONSE_TRANSFORMER = "Edit Response"; @@ -74,12 +66,6 @@ public class UIConstants { public static final Font DIALOG_FONT = new Font("Dialog", Font.PLAIN, 12); public static final Font MONOSPACED_FONT = new Font(MONOSPACED_FONT_NAME, Font.PLAIN, 12); - // issue link - public static final String ISSUE_TRACKER_LOCATION = "https://github.com/nextgenhealthcare/connect/issues"; - // help link - public static String HELP_URL_LOCATION = "https://s3.amazonaws.com/downloads.mirthcorp.com/connect-user-guide/webhelp.json"; - // help link - public static String HELP_DEFAULT_LOCATION = "https://github.com/nextgenhealthcare/connect/wiki"; // user api public static String USER_API_LOCATION = "/javadocs/user-api/"; // user api @@ -132,9 +118,6 @@ public class UIConstants { public static final ImageIcon ICON_INFORMATION = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/information.png")); public static final ImageIcon ICON_WARNING = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/error.png")); public static final ImageIcon ICON_ERROR = new ImageIcon(com.mirth.connect.client.ui.Frame.class.getResource("images/exclamation.png")); - // for privacy - public static final String PRIVACY_URL = "https://www.nextgen.com/legal-notice"; - public static final String PRIVACY_TOOLTIP = "Privacy Information"; // FileUtils reading/writing public static final String CHARSET = "UTF-8"; diff --git a/client/src/com/mirth/connect/client/ui/browsers/message/MessageBrowserAdvancedFilter.java b/client/src/com/mirth/connect/client/ui/browsers/message/MessageBrowserAdvancedFilter.java index 64284f0db5..f99d71e7fa 100644 --- a/client/src/com/mirth/connect/client/ui/browsers/message/MessageBrowserAdvancedFilter.java +++ b/client/src/com/mirth/connect/client/ui/browsers/message/MessageBrowserAdvancedFilter.java @@ -634,7 +634,7 @@ public void windowClosing(java.awt.event.WindowEvent evt) { messageIdLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); messageIdLabel.setText("Message Id:"); - serverIdField.setToolTipText("The GUID of the message in the Mirth Connect database.
This can be retrieved from the Meta Data tab in the Message Browser."); + serverIdField.setToolTipText("The GUID of the message in the database.
This can be retrieved from the Meta Data tab in the Message Browser."); serverIdLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); serverIdLabel.setText("Server Id:"); diff --git a/client/src/com/mirth/connect/client/ui/components/ChannelTableTransferable.java b/client/src/com/mirth/connect/client/ui/components/ChannelTableTransferable.java index 555ab47a70..a587d5dc72 100644 --- a/client/src/com/mirth/connect/client/ui/components/ChannelTableTransferable.java +++ b/client/src/com/mirth/connect/client/ui/components/ChannelTableTransferable.java @@ -18,12 +18,13 @@ import java.util.Iterator; import java.util.List; +import com.mirth.connect.client.ui.BrandingConstants; import com.mirth.connect.model.Channel; import com.mirth.connect.model.ChannelGroup; public class ChannelTableTransferable implements Transferable { - public static final DataFlavor CHANNEL_DATA_FLAVOR = new DataFlavor(List.class, "Mirth Connect Channel"); + public static final DataFlavor CHANNEL_DATA_FLAVOR = new DataFlavor(List.class, String.format("%s Channel", BrandingConstants.PRODUCT_NAME)); private static final DataFlavor[] flavors = { DataFlavor.stringFlavor, DataFlavor.plainTextFlavor, CHANNEL_DATA_FLAVOR }; diff --git a/client/src/com/mirth/connect/client/ui/editors/BaseEditorPane.java b/client/src/com/mirth/connect/client/ui/editors/BaseEditorPane.java index 2dcd9bc7a8..f1b06bd766 100644 --- a/client/src/com/mirth/connect/client/ui/editors/BaseEditorPane.java +++ b/client/src/com/mirth/connect/client/ui/editors/BaseEditorPane.java @@ -103,6 +103,7 @@ import org.jdesktop.swingx.treetable.MutableTreeTableNode; import org.jdesktop.swingx.treetable.TreeTableNode; +import com.mirth.connect.client.ui.BrandingConstants; import com.mirth.connect.client.ui.Frame; import com.mirth.connect.client.ui.Mirth; import com.mirth.connect.client.ui.PlatformUI; @@ -1222,7 +1223,7 @@ public void actionPerformed(ActionEvent evt) { }; viewTasks = new JXTaskPane(); - viewTasks.setTitle("Mirth Connect Views"); + viewTasks.setTitle(String.format("%s Views", BrandingConstants.PRODUCT_NAME)); viewTasks.setFocusable(false); viewTasks.add(initActionCallback("accept", "Return back to channel.", ActionFactory.createBoundAction("accept", "Back to Channel", "B"), new ImageIcon(Frame.class.getResource("images/resultset_previous.png")))); PlatformUI.MIRTH_FRAME.setNonFocusable(viewTasks); @@ -2165,4 +2166,4 @@ public boolean isCellEditable(EventObject evt) { private MirthRTextScrollPane generatedScriptTextArea; public TabbedTemplatePanel templatePanel; -} \ No newline at end of file +} diff --git a/client/src/com/mirth/connect/client/ui/extensionmanager/ExtensionManagerPanel.java b/client/src/com/mirth/connect/client/ui/extensionmanager/ExtensionManagerPanel.java index 52bddec4bf..dbf2fba893 100644 --- a/client/src/com/mirth/connect/client/ui/extensionmanager/ExtensionManagerPanel.java +++ b/client/src/com/mirth/connect/client/ui/extensionmanager/ExtensionManagerPanel.java @@ -25,6 +25,7 @@ import org.jdesktop.swingx.decorator.HighlighterFactory; import com.mirth.connect.client.core.ClientException; +import com.mirth.connect.client.ui.BrandingConstants; import com.mirth.connect.client.ui.CellData; import com.mirth.connect.client.ui.Frame; import com.mirth.connect.client.ui.ImageCellRenderer; @@ -587,7 +588,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { restartRequiredLabel.setForeground(new java.awt.Color(204, 0, 0)); restartRequiredLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); - restartRequiredLabel.setText("The Mirth Connect Server and Administrator must be restarted before your changes will take effect."); + restartRequiredLabel.setText(String.format("The %s Server and Administrator must be restarted before your changes will take effect.", BrandingConstants.PRODUCT_NAME)); javax.swing.GroupLayout restartRequiredPanelLayout = new javax.swing.GroupLayout(restartRequiredPanel); restartRequiredPanel.setLayout(restartRequiredPanelLayout); diff --git a/client/src/com/mirth/connect/client/ui/images/MirthConnect_Logo_WM_White.png b/client/src/com/mirth/connect/client/ui/images/MirthConnect_Logo_WM_White.png deleted file mode 100644 index 89d2414e09..0000000000 Binary files a/client/src/com/mirth/connect/client/ui/images/MirthConnect_Logo_WM_White.png and /dev/null differ diff --git a/client/src/com/mirth/connect/client/ui/images/MirthConnect_NLogo_RGB.png b/client/src/com/mirth/connect/client/ui/images/MirthConnect_NLogo_RGB.png deleted file mode 100644 index f099ee3a16..0000000000 Binary files a/client/src/com/mirth/connect/client/ui/images/MirthConnect_NLogo_RGB.png and /dev/null differ diff --git a/client/src/com/mirth/connect/client/ui/images/NG_MC_Icon_32x32.png b/client/src/com/mirth/connect/client/ui/images/NG_MC_Icon_32x32.png deleted file mode 100644 index 4f1f3d1349..0000000000 Binary files a/client/src/com/mirth/connect/client/ui/images/NG_MC_Icon_32x32.png and /dev/null differ diff --git a/client/src/com/mirth/connect/client/ui/images/branding/oie_logo_banner_text_215x30.png b/client/src/com/mirth/connect/client/ui/images/branding/oie_logo_banner_text_215x30.png new file mode 100644 index 0000000000..5b98394b1c Binary files /dev/null and b/client/src/com/mirth/connect/client/ui/images/branding/oie_logo_banner_text_215x30.png differ diff --git a/client/src/com/mirth/connect/client/ui/images/branding/oie_logo_only_white_background_32x32.png b/client/src/com/mirth/connect/client/ui/images/branding/oie_logo_only_white_background_32x32.png new file mode 100644 index 0000000000..8d332ff299 Binary files /dev/null and b/client/src/com/mirth/connect/client/ui/images/branding/oie_logo_only_white_background_32x32.png differ diff --git a/client/src/com/mirth/connect/client/ui/images/branding/oie_white_logo_banner_text_215x30.png b/client/src/com/mirth/connect/client/ui/images/branding/oie_white_logo_banner_text_215x30.png new file mode 100644 index 0000000000..dc84f88416 Binary files /dev/null and b/client/src/com/mirth/connect/client/ui/images/branding/oie_white_logo_banner_text_215x30.png differ diff --git a/client/src/com/mirth/connect/client/ui/panels/connectors/ListenerSettingsPanel.java b/client/src/com/mirth/connect/client/ui/panels/connectors/ListenerSettingsPanel.java index 2a8921c290..7d64dd7484 100644 --- a/client/src/com/mirth/connect/client/ui/panels/connectors/ListenerSettingsPanel.java +++ b/client/src/com/mirth/connect/client/ui/panels/connectors/ListenerSettingsPanel.java @@ -18,6 +18,7 @@ import javax.swing.JLabel; import javax.swing.JPanel; +import com.mirth.connect.client.ui.BrandingConstants; import com.mirth.connect.client.ui.Frame; import com.mirth.connect.client.ui.PlatformUI; import com.mirth.connect.client.ui.UIConstants; @@ -146,7 +147,7 @@ public void keyReleased(java.awt.event.KeyEvent evt) { }); portsInUse.setText("Ports in Use"); - portsInUse.setToolTipText("View all listener ports currently used by Mirth Connect.
" + portsInUse.setToolTipText(String.format("View all listener ports currently used by %s.
", BrandingConstants.PRODUCT_NAME) + "Any port number can be entered even if it's already in use;
" + "however, only one channel can be deployed per port."); portsInUse.addActionListener(new ActionListener() { diff --git a/client/src/com/mirth/connect/client/ui/panels/export/MessageExportPanel.java b/client/src/com/mirth/connect/client/ui/panels/export/MessageExportPanel.java index 241aae68fa..e2e2ed9d5c 100644 --- a/client/src/com/mirth/connect/client/ui/panels/export/MessageExportPanel.java +++ b/client/src/com/mirth/connect/client/ui/panels/export/MessageExportPanel.java @@ -32,6 +32,7 @@ import javax.swing.JTextField; import javax.swing.JTextPane; +import com.mirth.connect.client.ui.BrandingConstants; import net.miginfocom.swing.MigLayout; import org.apache.commons.lang3.StringUtils; @@ -316,9 +317,9 @@ private void initComponents() { passwordNoButton.setToolTipText("Select Yes to allow password protected zip files."); passwordField.setToolTipText("The password used to protect zip files."); encryptionComboBox.setToolTipText("The algorithm used to encrypt password-protected zip files."); - exportServerRadio.setToolTipText("Store exported files on the Mirth Connect Server, in the Root Path specified below."); + exportServerRadio.setToolTipText(String.format("Store exported files on the %s Server, in the Root Path specified below.", BrandingConstants.PRODUCT_NAME)); exportLocalRadio.setToolTipText("Store exported files on this computer, in the Root Path specified below."); - rootPathTextField.setToolTipText("The root path to store the exported files/folders or compressed file.
Relative paths will be resolved against the Mirth Connect Server home directory."); + rootPathTextField.setToolTipText(String.format("The root path to store the exported files/folders or compressed file.
Relative paths will be resolved against the %s Server home directory.", BrandingConstants.PRODUCT_NAME)); filePatternTextPane.setToolTipText("The file/folder pattern in which to write the exported message files.
Variables from the Variables list to the right may be used in the pattern."); archiverBlockSizeField.setToolTipText("The number of messages that will be cached by the archiver. Increase this value
to improve performance. Decrease this value to reduce memory usage. This value
must be between 1 and 1000. The recommended value for most servers is 50."); diff --git a/client/src/com/mirth/connect/connectors/dimse/DICOMSender.java b/client/src/com/mirth/connect/connectors/dimse/DICOMSender.java index ef2e675a6b..ddffdb511a 100644 --- a/client/src/com/mirth/connect/connectors/dimse/DICOMSender.java +++ b/client/src/com/mirth/connect/connectors/dimse/DICOMSender.java @@ -17,10 +17,7 @@ import javax.swing.JLabel; import javax.swing.JPanel; -import com.mirth.connect.client.ui.ConnectorTypeDecoration; -import com.mirth.connect.client.ui.Frame; -import com.mirth.connect.client.ui.PlatformUI; -import com.mirth.connect.client.ui.UIConstants; +import com.mirth.connect.client.ui.*; import com.mirth.connect.client.ui.components.MirthButton; import com.mirth.connect.client.ui.components.MirthIconTextField; import com.mirth.connect.client.ui.components.MirthRadioButton; @@ -420,7 +417,7 @@ private void initComponents() { localPortField.setToolTipText("Local port that the client socket will be bound to."); portsInUse.setText("Ports in Use"); - portsInUse.setToolTipText("View all ports currently used by Mirth Connect."); + portsInUse.setToolTipText(String.format("View all ports currently used by %s.", BrandingConstants.PRODUCT_NAME)); portsInUse.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { portsInUseActionPerformed(evt); diff --git a/client/src/com/mirth/connect/connectors/http/HttpListener.java b/client/src/com/mirth/connect/connectors/http/HttpListener.java index 5cb7773009..38d5d69bf3 100644 --- a/client/src/com/mirth/connect/connectors/http/HttpListener.java +++ b/client/src/com/mirth/connect/connectors/http/HttpListener.java @@ -57,6 +57,7 @@ import org.jdesktop.swingx.decorator.Highlighter; import org.jdesktop.swingx.decorator.HighlighterFactory; +import com.mirth.connect.client.ui.BrandingConstants; import com.mirth.connect.client.ui.ConnectorTypeDecoration; import com.mirth.connect.client.ui.Frame; import com.mirth.connect.client.ui.Mirth; @@ -1038,7 +1039,7 @@ public void actionPerformed(ActionEvent evt) { protected void initToolTips() { messageContentPlainBodyRadio.setToolTipText("If selected, the request body will be sent to the channel as a raw string."); responseContentTypeField.setToolTipText("The MIME type to be used for the response."); - charsetEncodingCombobox.setToolTipText("Select the character set encoding to be used for the response to the sending system.
Set to Default to assume the default character set encoding for the JVM running Mirth Connect."); + charsetEncodingCombobox.setToolTipText(String.format("Select the character set encoding to be used for the response to the sending system.
Set to Default to assume the default character set encoding for the JVM running %s.", BrandingConstants.PRODUCT_NAME)); contextPathField.setToolTipText("The context path for the HTTP Listener URL."); receiveTimeoutField.setToolTipText("Enter the maximum idle time in milliseconds for a connection."); httpUrlField.setToolTipText("Displays the generated HTTP URL for the HTTP Listener."); diff --git a/client/src/com/mirth/connect/connectors/http/HttpSender.java b/client/src/com/mirth/connect/connectors/http/HttpSender.java index 75c6d519ba..40e04c2169 100644 --- a/client/src/com/mirth/connect/connectors/http/HttpSender.java +++ b/client/src/com/mirth/connect/connectors/http/HttpSender.java @@ -51,6 +51,7 @@ import org.jdesktop.swingx.decorator.HighlighterFactory; import com.mirth.connect.client.core.ClientException; +import com.mirth.connect.client.ui.BrandingConstants; import com.mirth.connect.client.ui.ConnectorTypeDecoration; import com.mirth.connect.client.ui.Frame; import com.mirth.connect.client.ui.Mirth; @@ -1226,7 +1227,7 @@ private void initToolTips() { passwordField.setToolTipText("The password used to connect to the HTTP server."); authenticationTypeDigestRadio.setToolTipText("Use the digest authentication scheme."); authenticationTypeBasicRadio.setToolTipText("Use the basic authentication scheme."); - charsetEncodingCombobox.setToolTipText("Select the character set encoding used by the sender of the message,
or Default to assume the default character set encoding for the JVM running Mirth Connect."); + charsetEncodingCombobox.setToolTipText(String.format("Select the character set encoding used by the sender of the message,
or Default to assume the default character set encoding for the JVM running %s.", BrandingConstants.PRODUCT_NAME)); sendTimeoutField.setToolTipText("Sets the socket timeout (SO_TIMEOUT) in milliseconds to be used when executing the method.
A timeout value of zero is interpreted as an infinite timeout."); parseMultipartYesRadio.setToolTipText("Select Yes to automatically parse multipart responses into separate XML nodes.
Select No to always keep the response body as a single XML node."); parseMultipartNoRadio.setToolTipText("Select Yes to automatically parse multipart responses into separate XML nodes.
Select No to always keep the response body as a single XML node."); diff --git a/client/src/com/mirth/connect/connectors/jdbc/DatabaseReader.java b/client/src/com/mirth/connect/connectors/jdbc/DatabaseReader.java index 6c4053f322..ec966d0d22 100644 --- a/client/src/com/mirth/connect/connectors/jdbc/DatabaseReader.java +++ b/client/src/com/mirth/connect/connectors/jdbc/DatabaseReader.java @@ -33,6 +33,7 @@ import javax.swing.event.DocumentListener; import javax.xml.parsers.DocumentBuilderFactory; +import com.mirth.connect.client.ui.BrandingConstants; import net.miginfocom.swing.MigLayout; import org.apache.commons.collections4.CollectionUtils; @@ -629,7 +630,7 @@ private void initToolTips() { fetchSizeField.setToolTipText("The JDBC ResultSet fetch size to be used when fetching results from the current cursor position."); retryCountField.setToolTipText("The number of times to retry executing the statement or script if an error occurs."); retryIntervalField.setToolTipText("The amount of time that should elapse between retry attempts."); - encodingComboBox.setToolTipText("Select the character set encoding used by the source database,
or select Default to use the default character set encoding for the JVM running Mirth Connect."); + encodingComboBox.setToolTipText(String.format("Select the character set encoding used by the source database,
or select Default to use the default character set encoding for the JVM running %s.", BrandingConstants.PRODUCT_NAME)); generateConnectionButton.setToolTipText("If \"Yes\" is selected for Use JavaScript, this button is enabled.
When clicked, it inserts boilerplate Connection construction code into the JavaScript control at the current caret location."); generateSelectButton.setToolTipText("Opens a window to assist in building a select query to select records from the database specified in the URL above."); runPostProcessSQLLabel.setToolTipText("When using a database reader, it is usually necessary to execute a separate SQL statement
to mark the message that was just fetched as processed, so it will not be fetched again the next time a poll occurs."); diff --git a/client/src/com/mirth/connect/connectors/smtp/SmtpSender.java b/client/src/com/mirth/connect/connectors/smtp/SmtpSender.java index 0b922409fc..d8be4c8235 100644 --- a/client/src/com/mirth/connect/connectors/smtp/SmtpSender.java +++ b/client/src/com/mirth/connect/connectors/smtp/SmtpSender.java @@ -35,6 +35,7 @@ import org.jdesktop.swingx.decorator.HighlighterFactory; import com.mirth.connect.client.core.ClientException; +import com.mirth.connect.client.ui.BrandingConstants; import com.mirth.connect.client.ui.CharsetEncodingInformation; import com.mirth.connect.client.ui.ConnectorTypeDecoration; import com.mirth.connect.client.ui.Frame; @@ -806,7 +807,7 @@ public void actionPerformed(ActionEvent evt) { } private void initToolTips() { - smtpHostField.setToolTipText("Enter the DNS domain name or IP address of the SMTP server to use to send the email messages.
Note that sending email to an SMTP server that is not expecting it may result in the IP of the box running Mirth Connect being added to the server's \"blacklist.\""); + smtpHostField.setToolTipText(String.format("Enter the DNS domain name or IP address of the SMTP server to use to send the email messages.
Note that sending email to an SMTP server that is not expecting it may result in the IP of the box running %s being added to the server's \"blacklist.\"", BrandingConstants.PRODUCT_NAME)); smtpPortField.setToolTipText("The port number of the SMTP server to send the email message to.
Generally, the default port of 25 is used."); String toolTipText = "Select Yes to override the local address and port that the client socket will be bound to.
Select No to use the default value picked by the Socket class.
A local port of zero (0) indicates that the OS should assign an ephemeral port automatically.

Note that if a specific (non-zero) local port is chosen, then after a socket is closed it's up to the
underlying OS to release the port before the next socket creation, otherwise the bind attempt will fail.
"; @@ -829,7 +830,7 @@ private void initToolTips() { toField.setToolTipText("The name of the mailbox (person, usually) to which the email should be sent."); fromField.setToolTipText("The name that should appear as the \"From address\" in the email."); subjectField.setToolTipText("The text that should appear as the subject of the email, as seen by the receiver's email client."); - charsetEncodingComboBox.setToolTipText("Select the character set encoding used by the sender of the message,
or Default to assume the default character set encoding for the JVM running Mirth Connect."); + charsetEncodingComboBox.setToolTipText(String.format("Select the character set encoding used by the sender of the message,
or Default to assume the default character set encoding for the JVM running %s.", BrandingConstants.PRODUCT_NAME)); toolTipText = "Selects whether HTML tags can be used in the email message body."; htmlYes.setToolTipText(toolTipText); diff --git a/client/src/com/mirth/connect/connectors/tcp/TcpListener.java b/client/src/com/mirth/connect/connectors/tcp/TcpListener.java index 6599787e4a..ec02f90fb7 100644 --- a/client/src/com/mirth/connect/connectors/tcp/TcpListener.java +++ b/client/src/com/mirth/connect/connectors/tcp/TcpListener.java @@ -28,6 +28,7 @@ import org.apache.commons.lang3.math.NumberUtils; import com.mirth.connect.client.ui.AbstractConnectorPropertiesPanel; +import com.mirth.connect.client.ui.BrandingConstants; import com.mirth.connect.client.ui.CharsetEncodingInformation; import com.mirth.connect.client.ui.Frame; import com.mirth.connect.client.ui.LoadedExtensions; @@ -512,7 +513,7 @@ private void initToolTips() { dataTypeBinaryRadio.setToolTipText(toolTipText); dataTypeTextRadio.setToolTipText(toolTipText); - charsetEncodingComboBox.setToolTipText("Select the character set encoding used by the message sender,
or Select Default to use the default character set encoding for the JVM running Mirth Connect."); + charsetEncodingComboBox.setToolTipText(String.format("Select the character set encoding used by the message sender,
or Select Default to use the default character set encoding for the JVM running %s.", BrandingConstants.PRODUCT_NAME)); toolTipText = "Select No to send responses only via the same connection the inbound message was received on.
Select Yes to always send responses on a new connection (during normal processing as well as recovery).
Select Message Recovery to only send responses on a new connection during message recovery.
Connections will be bound locally on the same interface chosen in the Listener Settings with an ephemeral port."; respondOnNewConnectionYesRadio.setToolTipText(toolTipText); diff --git a/client/src/com/mirth/connect/connectors/tcp/TcpSender.java b/client/src/com/mirth/connect/connectors/tcp/TcpSender.java index 265dd0d25d..7712d19cf7 100644 --- a/client/src/com/mirth/connect/connectors/tcp/TcpSender.java +++ b/client/src/com/mirth/connect/connectors/tcp/TcpSender.java @@ -30,6 +30,7 @@ import org.apache.logging.log4j.Logger; import com.mirth.connect.client.core.ClientException; +import com.mirth.connect.client.ui.BrandingConstants; import com.mirth.connect.client.ui.ConnectorTypeDecoration; import com.mirth.connect.client.ui.Frame; import com.mirth.connect.client.ui.LoadedExtensions; @@ -422,7 +423,7 @@ private void initComponents() { remotePortField.setToolTipText("The port on which to connect."); portsInUse.setText("Ports in Use"); - portsInUse.setToolTipText("View all ports currently used by Mirth Connect."); + portsInUse.setToolTipText(String.format("View all ports currently used by %s.", BrandingConstants.PRODUCT_NAME)); portsInUse.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { portsInUseActionPerformed(evt); @@ -466,7 +467,7 @@ public void actionPerformed(ActionEvent evt) { responseTimeoutLabel.setText("Response Timeout (ms):"); charsetEncodingCombobox.setModel(new DefaultComboBoxModel(new String[] { "Default", "UTF-8", "ISO-8859-1", "UTF-16 (le)", "UTF-16 (be)", "UTF-16 (bom)", "US-ASCII" })); - charsetEncodingCombobox.setToolTipText("The character set encoding to use when converting the outbound message to a byte stream if Data Type Text is selected.
Select Default to use the default character set encoding for the JVM running the Mirth Connect server."); + charsetEncodingCombobox.setToolTipText(String.format("The character set encoding to use when converting the outbound message to a byte stream if Data Type Text is selected.
Select Default to use the default character set encoding for the JVM running the %s server.", BrandingConstants.PRODUCT_NAME)); charsetEncodingCombobox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { charsetEncodingComboboxActionPerformed(evt); diff --git a/client/src/com/mirth/connect/connectors/ws/WebServiceListener.java b/client/src/com/mirth/connect/connectors/ws/WebServiceListener.java index 4abca19608..ed1cb6b745 100644 --- a/client/src/com/mirth/connect/connectors/ws/WebServiceListener.java +++ b/client/src/com/mirth/connect/connectors/ws/WebServiceListener.java @@ -22,6 +22,7 @@ import javax.swing.JLabel; import javax.swing.JTextField; +import com.mirth.connect.client.ui.BrandingConstants; import net.miginfocom.swing.MigLayout; import com.mirth.connect.client.ui.ConnectorTypeDecoration; @@ -204,7 +205,7 @@ public void actionPerformed(ActionEvent evt) { classNameButtonGroup.add(classNameCustomRadio); classNameField = new MirthTextField(); - classNameField.setToolTipText("The fully qualified class name of the web service that should be hosted.
If this is a custom class, it should be added in a custom jar so it is loaded with Mirth Connect."); + classNameField.setToolTipText(String.format("The fully qualified class name of the web service that should be hosted.
If this is a custom class, it should be added in a custom jar so it is loaded with %s.", BrandingConstants.PRODUCT_NAME)); } private void initLayout() { diff --git a/client/src/com/mirth/connect/plugins/datapruner/DataPrunerPanel.java b/client/src/com/mirth/connect/plugins/datapruner/DataPrunerPanel.java index 88fcfcc1a0..76fecd1d50 100644 --- a/client/src/com/mirth/connect/plugins/datapruner/DataPrunerPanel.java +++ b/client/src/com/mirth/connect/plugins/datapruner/DataPrunerPanel.java @@ -303,7 +303,7 @@ public void setProperties(Properties properties) { /* * archiverOptions might be empty if the pruner settings were migrated from a previous - * version of Mirth Connect. + * version of OIE. */ if (archiverOptions == null) { archiverPanel.setMessageWriterOptions(new MessageWriterOptions()); @@ -315,7 +315,7 @@ public void setProperties(Properties properties) { archiverPanel.setArchiveEnabled(Boolean.parseBoolean(properties.getProperty("archiveEnabled", Boolean.FALSE.toString()))); } - if (properties.getProperty("pruningBlockSize") != null && !properties.getProperty("pruningBlockSize").equals("")) { + if (properties.getProperty("pruningBlockSize") != null && !properties.getProperty("pruningBlockSize").isEmpty()) { blockSizeTextField.setText(properties.getProperty("pruningBlockSize")); } else { blockSizeTextField.setText("1000"); diff --git a/client/src/com/mirth/connect/plugins/pdfviewer/MirthPDFViewer.java b/client/src/com/mirth/connect/plugins/pdfviewer/MirthPDFViewer.java index 015508af80..10c783dd1f 100644 --- a/client/src/com/mirth/connect/plugins/pdfviewer/MirthPDFViewer.java +++ b/client/src/com/mirth/connect/plugins/pdfviewer/MirthPDFViewer.java @@ -9,6 +9,8 @@ package com.mirth.connect.plugins.pdfviewer; +import com.mirth.connect.client.ui.BrandingConstants; + import java.io.File; import java.io.IOException; import java.net.URL; @@ -18,7 +20,7 @@ public class MirthPDFViewer extends com.sun.pdfview.PDFViewer { - public final static String TITLE = "Mirth Connect PDF Viewer"; + public final static String TITLE = String.format("%s PDF Viewer", BrandingConstants.PRODUCT_NAME); private File tempFile; /** diff --git a/client/src/com/mirth/connect/plugins/scriptfilerule/ExternalScriptPanel.java b/client/src/com/mirth/connect/plugins/scriptfilerule/ExternalScriptPanel.java index 22f6e642a4..4a13be704d 100644 --- a/client/src/com/mirth/connect/plugins/scriptfilerule/ExternalScriptPanel.java +++ b/client/src/com/mirth/connect/plugins/scriptfilerule/ExternalScriptPanel.java @@ -14,6 +14,7 @@ import javax.swing.JLabel; import javax.swing.JTextField; +import com.mirth.connect.client.ui.BrandingConstants; import net.miginfocom.swing.MigLayout; import org.apache.commons.lang3.StringUtils; @@ -73,7 +74,7 @@ public void setNameActionListener(ActionListener actionListener) {} private void initComponents() { setBackground(UIConstants.BACKGROUND_COLOR); - infoLabel = new JLabel("Enter the path of an external JavaScript file accessible from the Mirth Connect server."); + infoLabel = new JLabel(String.format("Enter the path of an external JavaScript file accessible from the %s server.", BrandingConstants.PRODUCT_NAME)); pathLabel = new JLabel("Script Path:"); pathField = new JTextField(); diff --git a/client/src/com/mirth/connect/plugins/scriptfilestep/ExternalScriptPanel.java b/client/src/com/mirth/connect/plugins/scriptfilestep/ExternalScriptPanel.java index 7a891a9990..c924094137 100644 --- a/client/src/com/mirth/connect/plugins/scriptfilestep/ExternalScriptPanel.java +++ b/client/src/com/mirth/connect/plugins/scriptfilestep/ExternalScriptPanel.java @@ -14,6 +14,7 @@ import javax.swing.JLabel; import javax.swing.JTextField; +import com.mirth.connect.client.ui.BrandingConstants; import net.miginfocom.swing.MigLayout; import org.apache.commons.lang3.StringUtils; @@ -73,7 +74,7 @@ public void setNameActionListener(ActionListener actionListener) {} private void initComponents() { setBackground(UIConstants.BACKGROUND_COLOR); - infoLabel = new JLabel("Enter the path of an external JavaScript file accessible from the Mirth Connect server."); + infoLabel = new JLabel(String.format("Enter the path of an external JavaScript file accessible from the %s server.", BrandingConstants.PRODUCT_NAME)); pathLabel = new JLabel("Script Path:"); pathField = new JTextField(); diff --git a/command/src/com/mirth/connect/cli/CommandLineInterface.java b/command/src/com/mirth/connect/cli/CommandLineInterface.java index fbcf8cf5bd..1e785ab14b 100644 --- a/command/src/com/mirth/connect/cli/CommandLineInterface.java +++ b/command/src/com/mirth/connect/cli/CommandLineInterface.java @@ -51,6 +51,7 @@ import org.apache.commons.lang3.exception.ExceptionUtils; import org.apache.commons.lang3.math.NumberUtils; +import com.mirth.connect.client.core.BrandingConstants; import com.mirth.connect.client.core.Client; import com.mirth.connect.client.core.ClientException; import com.mirth.connect.client.core.ListHandlerException; @@ -191,7 +192,7 @@ private void runShell(String server, String user, String password, String script } catch (Exception e) { } - out.println("Connected to Mirth Connect server @ " + server + " (" + serverVersion + ")"); + out.println(String.format("Connected to %s Server @ %s (%s)", BrandingConstants.PRODUCT_NAME, server, serverVersion)); currentUser = StringUtils.defaultString(loginStatus.getUpdatedUsername(), user); if (script != null) { @@ -569,7 +570,7 @@ private void commandHelp(Token[] arguments) { out.println("user add username \"password\" \"firstName\" \"lastName\" \"organization\" \"email\"\n\tAdds the specified user\n"); out.println("user remove id|username\n\tRemoves the specified user\n"); out.println("user changepw id|username \"newpassword\"\n\tChanges the specified user's password\n"); - out.println("quit\n\tQuits Mirth Connect Shell"); + out.println(String.format("quit\n\tQuits %s Shell", BrandingConstants.PRODUCT_NAME)); } private void commandUserList(Token[] arguments) throws ClientException { @@ -1851,7 +1852,7 @@ private void commandDumpEvents(Token[] arguments) throws ClientException { dumpFilename = replaceValues(dumpFilename); StringBuilder builder = new StringBuilder(); - builder.append("Mirth Connect Event Log Dump: " + (new Date()).toString() + "\n"); + builder.append(String.format("%s Event Log Dump: %s\n", BrandingConstants.PRODUCT_NAME, (new Date()).toString())); builder.append(ServerEvent.getExportHeader() + "\n"); File dumpFile = new File(dumpFilename); @@ -1898,7 +1899,7 @@ private void commandDumpStats(Token[] arguments) throws ClientException { dumpFilename = replaceValues(dumpFilename); StringBuilder builder = new StringBuilder(); - builder.append("Mirth Connect Channel Statistics Dump: " + (new Date()).toString() + "\n"); + builder.append(String.format("%s Channel Statistics Dump: %s\n", BrandingConstants.PRODUCT_NAME, (new Date()).toString())); builder.append("Name, Received, Filtered, Queued, Sent, Errored\n"); List channelStatuses = client.getAllChannelStatuses(); @@ -2100,4 +2101,4 @@ private void removeInvalidItems(List list, Class expectedClass) { } } } -} \ No newline at end of file +} diff --git a/donkey/src/main/java/com/mirth/connect/donkey/util/migration/Migratable.java b/donkey/src/main/java/com/mirth/connect/donkey/util/migration/Migratable.java index 67b6c1d32e..de7d26cd3e 100644 --- a/donkey/src/main/java/com/mirth/connect/donkey/util/migration/Migratable.java +++ b/donkey/src/main/java/com/mirth/connect/donkey/util/migration/Migratable.java @@ -14,13 +14,13 @@ /** *

* Classes that implement this interface have the ability to migrate serialized object instances - * from an earlier version of Mirth Connect to a later version. A custom converter is registered + * from an earlier version of OIE to a later version. A custom converter is registered * with XStream that automatically detects objects that implement this interface and runs the * appropriate interface methods. *

* *

- * When adding this interface to a class in a given version of Mirth Connect, the migrate methods + * When adding this interface to a class in a given version of OIE, the migrate methods * prior to that version must be left blank. This is because serialized instances of the class will * not contain version information. Without version information, the migration code in * MigratableConverter will assume that the object could have originated from a pre-3.0.0 version diff --git a/manager/src/com/mirth/connect/manager/BrandingConstants.java b/manager/src/com/mirth/connect/manager/BrandingConstants.java new file mode 100644 index 0000000000..4ea97f0983 --- /dev/null +++ b/manager/src/com/mirth/connect/manager/BrandingConstants.java @@ -0,0 +1,9 @@ +package com.mirth.connect.manager; + +public class BrandingConstants { + + public static final String PRODUCT_NAME = "Open Integration Engine"; + public static final String COMPANY_NAME = "Open Integration Engine"; + + public static final String CONTACT_URL = "https://openintegrationengine.org/contact/"; +} diff --git a/manager/src/com/mirth/connect/manager/ManagerController.java b/manager/src/com/mirth/connect/manager/ManagerController.java index d424d7ac4a..de6c57db19 100644 --- a/manager/src/com/mirth/connect/manager/ManagerController.java +++ b/manager/src/com/mirth/connect/manager/ManagerController.java @@ -173,7 +173,7 @@ public Void doInBackground() { public void done() { if (errorMessage == null) { - PlatformUI.MANAGER_TRAY.alertInfo("The Mirth Connect Service was started successfully."); + PlatformUI.MANAGER_TRAY.alertInfo(String.format("The %s Service was started successfully.", BrandingConstants.PRODUCT_NAME)); } else { PlatformUI.MANAGER_TRAY.alertError(errorMessage); } @@ -215,7 +215,7 @@ private String startMirth() { updating = true; if (!serviceController.startService()) { - errorMessage = "The Mirth Connect Service could not be started. Please verify that it is installed and not already started."; + errorMessage = String.format("The %s Service could not be started. Please verify that it is installed and not already started.", BrandingConstants.PRODUCT_NAME); } else { String contextPath = getContextPath(); @@ -240,13 +240,13 @@ private String startMirth() { } if (!started) { - errorMessage = "The Mirth Connect Service could not be started."; + errorMessage = String.format("The %s Service could not be started.", BrandingConstants.PRODUCT_NAME); } } } catch (Throwable t) { // Need to catch Throwable in case Client fails // internally t.printStackTrace(); - errorMessage = "The Mirth Connect Service could not be started."; + errorMessage = String.format("The %s Service could not be started.", BrandingConstants.PRODUCT_NAME); } finally { if (client != null) { client.close(); @@ -271,7 +271,7 @@ public Void doInBackground() { public void done() { if (errorMessage == null) { - PlatformUI.MANAGER_TRAY.alertInfo("The Mirth Connect Service was stopped successfully."); + PlatformUI.MANAGER_TRAY.alertInfo(String.format("The %s Service was stopped successfully.", BrandingConstants.PRODUCT_NAME)); } else { PlatformUI.MANAGER_TRAY.alertError(errorMessage); } @@ -289,11 +289,11 @@ private String stopMirth() { try { updating = true; if (!serviceController.stopService()) { - errorMessage = "The Mirth Connect Service could not be stopped. Please verify that it is installed and started."; + errorMessage = String.format("The %s Service could not be stopped. Please verify that it is installed and started.", BrandingConstants.PRODUCT_NAME); } } catch (Exception e) { e.printStackTrace(); - errorMessage = "The Mirth Connect Service could not be stopped. Please verify that it is installed and started."; + errorMessage = String.format("The %s Service could not be stopped. Please verify that it is installed and started.", BrandingConstants.PRODUCT_NAME); } updating = false; @@ -314,7 +314,7 @@ public Void doInBackground() { public void done() { if (errorMessage == null) { - PlatformUI.MANAGER_TRAY.alertInfo("The Mirth Connect Service was restarted successfully."); + PlatformUI.MANAGER_TRAY.alertInfo(String.format("The %s Service was restarted successfully.", BrandingConstants.PRODUCT_NAME)); } else { PlatformUI.MANAGER_TRAY.alertError(errorMessage); } @@ -377,7 +377,7 @@ public void launchAdministrator(String maxHeapSize) { } if (!success) { - PlatformUI.MANAGER_TRAY.alertError("The Mirth Connect Administator could not be launched."); + PlatformUI.MANAGER_TRAY.alertError(String.format("The %s Administator could not be launched.", BrandingConstants.PRODUCT_NAME)); } } diff --git a/manager/src/com/mirth/connect/manager/ManagerDialog.java b/manager/src/com/mirth/connect/manager/ManagerDialog.java index 56b6e232b7..122afd95e0 100644 --- a/manager/src/com/mirth/connect/manager/ManagerDialog.java +++ b/manager/src/com/mirth/connect/manager/ManagerDialog.java @@ -70,7 +70,7 @@ public ManagerDialog() { LookAndFeelAddons.setAddon(WindowsLookAndFeelAddons.class); getContentPane().setBackground(Color.WHITE); - setTitle("Mirth Connect Server Manager"); + setTitle(String.format("%s Server Manager", BrandingConstants.PRODUCT_NAME)); setIconImage(new ImageIcon(this.getClass().getResource("images/NG_MC-ServerManager_Icon_F_32x32.png")).getImage()); DisplayUtil.setResizable(this, false); @@ -162,7 +162,7 @@ public void actionPerformed(ActionEvent evt) { startButtonActionPerformed(evt); } }); - startLabel = new JLabel("Starts the Mirth Connect service"); + startLabel = new JLabel(String.format("Starts the %s service", BrandingConstants.PRODUCT_NAME)); restartButton = new JButton("Restart"); restartButton.addActionListener(new ActionListener() { @@ -170,7 +170,7 @@ public void actionPerformed(ActionEvent evt) { restartButtonActionPerformed(evt); } }); - restartLabel = new JLabel("Restarts the Mirth Connect service"); + restartLabel = new JLabel(String.format("Restarts the %s service", BrandingConstants.PRODUCT_NAME)); stopButton = new JButton("Stop"); stopButton.addActionListener(new ActionListener() { @@ -178,7 +178,7 @@ public void actionPerformed(ActionEvent evt) { stopButtonActionPerformed(evt); } }); - stopLabel = new JLabel("Stops the Mirth Connect service"); + stopLabel = new JLabel(String.format("Stops the %s service", BrandingConstants.PRODUCT_NAME)); refreshButton = new JButton("Refresh"); refreshButton.addActionListener(new ActionListener() { @@ -186,9 +186,9 @@ public void actionPerformed(ActionEvent evt) { refreshButtonActionPerformed(evt); } }); - refreshLabel = new JLabel("Refreshes the Mirth Connect service status"); + refreshLabel = new JLabel(String.format("Refreshes the %s service status", BrandingConstants.PRODUCT_NAME)); - startup = new JCheckBox("Start Mirth Connect Server Manager on system startup"); + startup = new JCheckBox(String.format("Start %s Server Manager on system startup", BrandingConstants.PRODUCT_NAME)); startup.setFocusable(false); startup.setToolTipText("Starts this application when logging into the operating system. Currently only enabled for Windows."); startup.setBackground(new Color(255, 255, 255)); @@ -305,9 +305,9 @@ private void initInfoPanel() { javaVersionLabel = new JLabel("Java Version:"); javaVersionField = new JLabel("javaVersion"); - contactPrefixLabel = new JLabel("Need Help? Contact"); - mirthSupportLink = new JLabel("NextGen Healthcare"); - mirthSupportLink.setToolTipText("Visit NextGen Healthcare's website."); + contactPrefixLabel = new JLabel("Need Help? Contact"); + mirthSupportLink = new JLabel(String.format("%s", BrandingConstants.COMPANY_NAME)); + mirthSupportLink.setToolTipText(String.format("Visit %s's website.", BrandingConstants.COMPANY_NAME)); mirthSupportLink.setCursor(new Cursor(Cursor.HAND_CURSOR)); mirthSupportLink.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { @@ -437,7 +437,7 @@ private void initLayout() { } private void mirthSupportLinkMouseClicked(MouseEvent evt) { - BareBonesBrowserLaunch.openURL("https://www.nextgen.com/contact-us"); + BareBonesBrowserLaunch.openURL(BrandingConstants.CONTACT_URL); } private void startupActionPerformed(ActionEvent evt) { diff --git a/manager/src/com/mirth/connect/manager/ManagerTray.java b/manager/src/com/mirth/connect/manager/ManagerTray.java index 5497d7bb9e..93557cceca 100644 --- a/manager/src/com/mirth/connect/manager/ManagerTray.java +++ b/manager/src/com/mirth/connect/manager/ManagerTray.java @@ -36,7 +36,7 @@ public class ManagerTray { public ManagerTray() {} public void setupTray() { - menu = new PopupMenu("Mirth Connect Server Manager"); + menu = new PopupMenu(String.format("%s Server Manager", BrandingConstants.PRODUCT_NAME)); viewItem = new MenuItem("Show Manager"); // viewItem.setIcon(new ImageIcon(this.getClass().getResource("images/start.png"))); @@ -59,7 +59,7 @@ public void actionPerformed(ActionEvent e) { }); menu.add(administratorItem); - startItem = new MenuItem("Start Mirth Connect"); + startItem = new MenuItem(String.format("Start %s", BrandingConstants.PRODUCT_NAME)); // startItem.setIcon(new ImageIcon(this.getClass().getResource("images/start.png"))); startItem.addActionListener(new ActionListener() { @@ -69,7 +69,7 @@ public void actionPerformed(ActionEvent e) { }); menu.add(startItem); - stopItem = new MenuItem("Stop Mirth Connect"); + stopItem = new MenuItem(String.format("Stop %s", BrandingConstants.PRODUCT_NAME)); // stopItem.setIcon(new ImageIcon(this.getClass().getResource("images/stop.png"))); stopItem.addActionListener(new ActionListener() { @@ -79,7 +79,7 @@ public void actionPerformed(ActionEvent e) { }); menu.add(stopItem); - restartItem = new MenuItem("Restart Mirth Connect"); + restartItem = new MenuItem(String.format("Restart %s", BrandingConstants.PRODUCT_NAME)); // restartItem.setIcon(new ImageIcon(this.getClass().getResource("images/restart.png"))); restartItem.addActionListener(new ActionListener() { @@ -102,7 +102,7 @@ public void actionPerformed(ActionEvent evt) { menu.add(quitItem); ImageIcon icon = new ImageIcon(this.getClass().getResource("images/NG_MC_Icon_Grey_32x32.png")); - mirthTrayIcon = new TrayIcon(icon.getImage(), "Mirth Connect Server Manager", menu); + mirthTrayIcon = new TrayIcon(icon.getImage(), String.format("%s Server Manager", BrandingConstants.PRODUCT_NAME), menu); mirthTrayIcon.setImageAutoSize(true); // Action listener for left click. diff --git a/manager/src/com/mirth/connect/manager/MirthHeadingPanel.java b/manager/src/com/mirth/connect/manager/MirthHeadingPanel.java index c00fc10920..116c91ab60 100644 --- a/manager/src/com/mirth/connect/manager/MirthHeadingPanel.java +++ b/manager/src/com/mirth/connect/manager/MirthHeadingPanel.java @@ -42,7 +42,7 @@ private void setupPanel() { JLabel headingLabel = new JLabel(); headingLabel.setFont(new Font("Tahoma", 1, 18)); // NOI18N headingLabel.setForeground(new Color(255, 255, 255)); - headingLabel.setText("Mirth Connect Server Manager"); + headingLabel.setText(String.format("%s Server Manager", BrandingConstants.PRODUCT_NAME)); add(headingLabel); } diff --git a/manager/src/com/mirth/connect/manager/WindowsServiceController.java b/manager/src/com/mirth/connect/manager/WindowsServiceController.java index 258acabf59..556a2a59d9 100644 --- a/manager/src/com/mirth/connect/manager/WindowsServiceController.java +++ b/manager/src/com/mirth/connect/manager/WindowsServiceController.java @@ -16,7 +16,7 @@ public class WindowsServiceController implements ServiceController { private final String WINDOWS_PATH_SERVER_MANAGER_EXE = "mcmanager.exe"; - private final String WINDOWS_SERVICE_NAME = "Mirth Connect Service"; + private final String WINDOWS_SERVICE_NAME = String.format("%s Service", BrandingConstants.PRODUCT_NAME); private final String WINDOWS_CMD_START = "net start \""; private final String WINDOWS_CMD_STOP = "net stop \""; private final String WINDOWS_CMD_STATUS = "net continue \""; @@ -24,9 +24,9 @@ public class WindowsServiceController implements ServiceController { private final int WINDOWS_STATUS_STOPPED = 2184; private final String WINDOWS_STATUS_CHANGING = "2189"; private final String WINDOWS_CMD_QUERY_REGEX = "NET HELPMSG ([0-9]{4})"; - private final String WINDOWS_CMD_REG_QUERY = "REG QUERY HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v \"Mirth Connect Server Manager\""; - private final String WINDOWS_CMD_REG_DELETE = "REG DELETE HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /f /v \"Mirth Connect Server Manager\""; - private final String WINDOWS_CMD_REG_ADD = "REG ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /f /v \"Mirth Connect Server Manager\" /d "; + private final String WINDOWS_CMD_REG_QUERY = String.format("REG QUERY HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v \"%s Server Manager\"", BrandingConstants.PRODUCT_NAME); + private final String WINDOWS_CMD_REG_DELETE = String.format("REG DELETE HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /f /v \"%s Server Manager\"", BrandingConstants.PRODUCT_NAME); + private final String WINDOWS_CMD_REG_ADD = String.format("REG ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /f /v \"%s Server Manager\" /d ", BrandingConstants.PRODUCT_NAME); @Override public int checkService() { diff --git a/server/src/com/mirth/connect/client/core/BrandingConstants.java b/server/src/com/mirth/connect/client/core/BrandingConstants.java new file mode 100644 index 0000000000..b9d5cfe50f --- /dev/null +++ b/server/src/com/mirth/connect/client/core/BrandingConstants.java @@ -0,0 +1,12 @@ +package com.mirth.connect.client.core; + +public class BrandingConstants { + + public static final String PRODUCT_NAME = "Open Integration Engine"; + public static final String COMPANY_NAME = "Open Integration Engine"; + public static final String COMPANY_URL = "https://openintegrationengine.org"; + + public static final String CLIENT_CONNECTION_HEADER = "openintegrationengine-client"; + + public static final String SERVER_CERTIFICATE_CN = "oie-engine"; +} diff --git a/server/src/com/mirth/connect/client/core/Client.java b/server/src/com/mirth/connect/client/core/Client.java index fb2bde0012..a0ba3f57bb 100644 --- a/server/src/com/mirth/connect/client/core/Client.java +++ b/server/src/com/mirth/connect/client/core/Client.java @@ -329,7 +329,7 @@ public boolean isClosed() { ****************/ /** - * Logs in to the Mirth Connect server using the specified name and password. + * Logs in to the server using the specified name and password. * * @see UserServletInterface#login */ @@ -535,7 +535,7 @@ public String getServerId() throws ClientException { } /** - * Returns the version of the Mirth Connect server. + * Returns the version of the server. * * @see ConfigurationServletInterface#getVersion */ @@ -545,7 +545,7 @@ public String getVersion() throws ClientException { } /** - * Returns the build date of the Mirth Connect server. + * Returns the build date of the server. * * @see ConfigurationServletInterface#getBuildDate */ @@ -555,7 +555,7 @@ public String getBuildDate() throws ClientException { } /** - * Returns the status of the Mirth Connect server. + * Returns the status of the server. * * @see ConfigurationServletInterface#getStatus */ @@ -585,7 +585,7 @@ public Calendar getServerTime() throws ClientException { } /** - * Returns the name of the JVM running Mirth Connect. + * Returns the name of the JVM running the server. * * @see ConfigurationServletInterface#getJVMName */ @@ -595,7 +595,7 @@ public String getJVMName() throws ClientException { } /** - * Returns a map of common information about the Mirth Connect server. + * Returns a map of common information about the server. * * @see ConfigurationServletInterface#getAbout */ @@ -605,8 +605,8 @@ public Map getAbout() throws ClientException { } /** - * Returns a ServerConfiguration object which contains all of the channels, users, alerts and - * properties stored on the Mirth Connect server. + * Returns a ServerConfiguration object which contains all the channels, users, alerts and + * properties stored on the server. * * @see ConfigurationServletInterface#getServerConfiguration */ @@ -615,8 +615,8 @@ public ServerConfiguration getServerConfiguration() throws ClientException { } /** - * Returns a ServerConfiguration object which contains all of the channels, users, alerts and - * properties stored on the Mirth Connect server. + * Returns a ServerConfiguration object which contains all the channels, users, alerts and + * properties stored on the server. * * @see ConfigurationServletInterface#getServerConfiguration */ @@ -626,7 +626,7 @@ public ServerConfiguration getServerConfiguration(DeployedState initialState, bo } /** - * Updates all of the channels, alerts and properties stored on the Mirth Connect server. + * Updates all the channels, alerts and properties stored on the server. * * @see ConfigurationServletInterface#setServerConfiguration */ diff --git a/server/src/com/mirth/connect/client/core/ServerConnection.java b/server/src/com/mirth/connect/client/core/ServerConnection.java index 17aeaaadb8..2b50501805 100644 --- a/server/src/com/mirth/connect/client/core/ServerConnection.java +++ b/server/src/com/mirth/connect/client/core/ServerConnection.java @@ -424,7 +424,7 @@ private HttpRequestBase setupRequestBase(ClientRequest request, Map> entry : request.getStringHeaders().entrySet()) { for (String value : entry.getValue()) { diff --git a/server/src/com/mirth/connect/client/core/Version.java b/server/src/com/mirth/connect/client/core/Version.java index 0405ee2c72..c3f97dc816 100644 --- a/server/src/com/mirth/connect/client/core/Version.java +++ b/server/src/com/mirth/connect/client/core/Version.java @@ -16,7 +16,7 @@ public enum Version { // @formatter:off /* - * When a new version of Mirth Connect is released, do the following: + * When a new version of OIE is released, do the following: * 1) Add the new version to the end of the list below (the list must be kept in historical order) * 2) Specify a Migrator class for the new version in the ServerMigrator class * 3) Add migration code/classes for any plugins that need to be migrated (don't forget the MigratableConverter class) diff --git a/server/src/com/mirth/connect/client/core/api/servlets/ConfigurationServletInterface.java b/server/src/com/mirth/connect/client/core/api/servlets/ConfigurationServletInterface.java index fceec1ca15..9f8d391bfe 100644 --- a/server/src/com/mirth/connect/client/core/api/servlets/ConfigurationServletInterface.java +++ b/server/src/com/mirth/connect/client/core/api/servlets/ConfigurationServletInterface.java @@ -73,20 +73,20 @@ public interface ConfigurationServletInterface extends BaseServletInterface { @GET @Path("/version") @Produces(MediaType.TEXT_PLAIN) - @Operation(summary = "Returns the version of the Mirth Connect server.") + @Operation(summary = "Returns the version of the server.") @MirthOperation(name = "getVersion", display = "Get version", auditable = false) public String getVersion() throws ClientException; @GET @Path("/buildDate") @Produces(MediaType.TEXT_PLAIN) - @Operation(summary = "Returns the build date of the Mirth Connect server.") + @Operation(summary = "Returns the build date of the server.") @MirthOperation(name = "getBuildDate", display = "Get build date", auditable = false) public String getBuildDate() throws ClientException; @GET @Path("/status") - @Operation(summary = "Returns the status of the Mirth Connect server.") + @Operation(summary = "Returns the status of the server.") @ApiResponse(content = { @Content(mediaType = MediaType.APPLICATION_XML, examples = { @ExampleObject(name = "status", ref = "../apiexamples/integer_xml") }), @@ -116,13 +116,13 @@ public interface ConfigurationServletInterface extends BaseServletInterface { @GET @Path("/jvm") @Produces(MediaType.TEXT_PLAIN) - @Operation(summary = "Returns the name of the JVM running Mirth Connect.") + @Operation(summary = "Returns the name of the JVM running the server.") @MirthOperation(name = "getJVMName", display = "Get JVM name", auditable = false) public String getJVMName() throws ClientException; @GET @Path("/about") - @Operation(summary = "Returns a map of common information about the Mirth Connect server.") + @Operation(summary = "Returns a map of common information about the server.") @ApiResponse(content = { @Content(mediaType = MediaType.APPLICATION_XML, examples = { @ExampleObject(name = "aboutMap", ref = "../apiexamples/generic_map_xml") }), @@ -133,7 +133,7 @@ public interface ConfigurationServletInterface extends BaseServletInterface { @GET @Path("/configuration") - @Operation(summary = "Returns a ServerConfiguration object which contains all of the channels, alerts, configuration map, and properties stored on the Mirth Connect server.") + @Operation(summary = "Returns a ServerConfiguration object which contains all of the channels, alerts, configuration map, and properties stored on the server.") @ApiResponse(content = { @Content(mediaType = MediaType.APPLICATION_XML, examples = { @ExampleObject(name = "serverConfiguration", ref = "../apiexamples/server_configuration_xml") }), @Content(mediaType = MediaType.APPLICATION_JSON, examples = { @@ -147,7 +147,7 @@ public ServerConfiguration getServerConfiguration(// @formatter:off @PUT @Path("/configuration") - @Operation(summary = "Updates all of the channels, alerts and properties stored on the Mirth Connect server.") + @Operation(summary = "Updates all of the channels, alerts and properties stored on the server.") @MirthOperation(name = "setServerConfiguration", display = "Set server configuration", permission = Permissions.SERVER_CONFIGURATION_RESTORE, type = ExecuteType.ASYNC) public void setServerConfiguration(// @formatter:off @Param("serverConfiguration") @RequestBody(description = "The ServerConfiguration object containing all channels, users, alerts, and properties to update.", required = true, content = { diff --git a/server/src/com/mirth/connect/client/core/api/servlets/UserServletInterface.java b/server/src/com/mirth/connect/client/core/api/servlets/UserServletInterface.java index 119bf13ce5..906c9f4647 100644 --- a/server/src/com/mirth/connect/client/core/api/servlets/UserServletInterface.java +++ b/server/src/com/mirth/connect/client/core/api/servlets/UserServletInterface.java @@ -55,7 +55,7 @@ public interface UserServletInterface extends BaseServletInterface { @POST @Path("/_login") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) - @Operation(summary = "Logs in to the Mirth Connect server using the specified name and password.") + @Operation(summary = "Logs in to the server using the specified name and password.") @ApiResponse(content = { @Content(mediaType = MediaType.APPLICATION_XML, examples = { @ExampleObject(name = "loginStatus", ref = "../apiexamples/login_status_xml") }), @Content(mediaType = MediaType.APPLICATION_JSON, examples = { diff --git a/server/src/com/mirth/connect/connectors/http/HttpDispatcher.java b/server/src/com/mirth/connect/connectors/http/HttpDispatcher.java index 6360c35511..8bd8657000 100644 --- a/server/src/com/mirth/connect/connectors/http/HttpDispatcher.java +++ b/server/src/com/mirth/connect/connectors/http/HttpDispatcher.java @@ -26,6 +26,7 @@ import javax.mail.internet.MimeMultipart; import javax.mail.util.ByteArrayDataSource; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.map.CaseInsensitiveMap; import org.apache.commons.fileupload.FileUploadBase; @@ -583,7 +584,7 @@ private HttpRequestBase buildHttpRequest(URI hostURI, HttpDispatcherProperties h } } if (!userAgentFound) { - httpMethod.addHeader("user-agent", "Mirth Connect"); + httpMethod.addHeader("user-agent", BrandingConstants.PRODUCT_NAME); } // Only set the Content-Type for entity-enclosing methods, but not if multipart is used diff --git a/server/src/com/mirth/connect/model/ServerConfiguration.java b/server/src/com/mirth/connect/model/ServerConfiguration.java index 86e18f262f..a9b634dd65 100644 --- a/server/src/com/mirth/connect/model/ServerConfiguration.java +++ b/server/src/com/mirth/connect/model/ServerConfiguration.java @@ -24,6 +24,7 @@ import javax.swing.text.DateFormatter; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.ImmutablePair; @@ -216,7 +217,7 @@ public void migrate3_2_0(DonkeyElement element) { DirectoryResourceProperties defaultResource = new DirectoryResourceProperties(); defaultResource.setId(ResourceProperties.DEFAULT_RESOURCE_ID); defaultResource.setName(ResourceProperties.DEFAULT_RESOURCE_NAME); - defaultResource.setDescription("Loads libraries from the custom-lib folder in the Mirth Connect home directory."); + defaultResource.setDescription(String.format("Loads libraries from the custom-lib folder in the %s home directory.", BrandingConstants.PRODUCT_NAME)); defaultResource.setIncludeWithGlobalScripts(true); defaultResource.setDirectory("custom-lib"); list.getList().add(defaultResource); @@ -423,4 +424,4 @@ public void migrate3_11_1(DonkeyElement element) {} @Override public void migrate3_12_0(DonkeyElement element) {} -} \ No newline at end of file +} diff --git a/server/src/com/mirth/connect/plugins/datatypes/hl7v2/HL7v2ResponseGenerationProperties.java b/server/src/com/mirth/connect/plugins/datatypes/hl7v2/HL7v2ResponseGenerationProperties.java index 2a2b4c6a68..c5c1cb77c5 100644 --- a/server/src/com/mirth/connect/plugins/datatypes/hl7v2/HL7v2ResponseGenerationProperties.java +++ b/server/src/com/mirth/connect/plugins/datatypes/hl7v2/HL7v2ResponseGenerationProperties.java @@ -15,6 +15,7 @@ import java.util.LinkedHashMap; import java.util.Map; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.lang3.StringUtils; import com.mirth.connect.donkey.util.DonkeyElement; @@ -60,7 +61,7 @@ public Map getPropertyDescriptors() { properties.put("errorACKMessage", new DataTypePropertyDescriptor(errorACKMessage, "Error ACK Message", "The ACK message to respond with when an error occurs during message processing. This option has no effect unless an \"Auto-generate\" item has been selected in the response settings.", PropertyEditorType.STRING)); properties.put("rejectedACKCode", new DataTypePropertyDescriptor(rejectedACKCode, "Rejected ACK Code", "The ACK code to respond with when the message is filtered. This option has no effect unless an \"Auto-generate\" item has been selected in the response settings.", PropertyEditorType.STRING)); properties.put("rejectedACKMessage", new DataTypePropertyDescriptor(rejectedACKMessage, "Rejected ACK Message", "The ACK message to respond with when the message is filtered. This option has no effect unless an \"Auto-generate\" item has been selected in the response settings.", PropertyEditorType.STRING)); - properties.put("msh15ACKAccept", new DataTypePropertyDescriptor(msh15ACKAccept, "MSH-15 ACK Accept", "This setting determines if Mirth Connect should check the MSH-15 field of an incoming message to control the acknowledgment conditions. The MSH-15 field specifies if a message should be always acknowledged, never acknowledged, or only acknowledged on error. This option has no effect unless an \"Auto-generate\" item has been selected in the response settings.", PropertyEditorType.BOOLEAN)); + properties.put("msh15ACKAccept", new DataTypePropertyDescriptor(msh15ACKAccept, "MSH-15 ACK Accept", String.format("This setting determines if %s should check the MSH-15 field of an incoming message to control the acknowledgment conditions. The MSH-15 field specifies if a message should be always acknowledged, never acknowledged, or only acknowledged on error. This option has no effect unless an \"Auto-generate\" item has been selected in the response settings.", BrandingConstants.PRODUCT_NAME), PropertyEditorType.BOOLEAN)); properties.put("dateFormat", new DataTypePropertyDescriptor(dateFormat, "Date Format", "This setting determines the date format used for the timestamp in the generated ACK. The default value is \"yyyyMMddHHmmss.SSS\".", PropertyEditorType.STRING)); return properties; diff --git a/server/src/com/mirth/connect/server/ExtensionLoader.java b/server/src/com/mirth/connect/server/ExtensionLoader.java index 8868eb74c9..9af71f74d7 100644 --- a/server/src/com/mirth/connect/server/ExtensionLoader.java +++ b/server/src/com/mirth/connect/server/ExtensionLoader.java @@ -17,6 +17,7 @@ import java.util.List; import java.util.Map; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.configuration2.PropertiesConfiguration; import org.apache.commons.configuration2.ex.ConfigurationException; import org.apache.commons.io.FileUtils; @@ -205,11 +206,11 @@ private synchronized void loadExtensions() { pluginMetaDataMap.put(metaData.getName(), (PluginMetaData) metaData); } } else { - logger.error("Extension \"" + metaData.getName() + "\" is not compatible with this version of Mirth Connect and was not loaded. Please install a compatible version."); + logger.error("Extension \"{}\" is not compatible with this version of {} and was not loaded. Please install a compatible version.", metaData.getName(), BrandingConstants.PRODUCT_NAME); invalidMetaDataMap.put(metaData.getName(), metaData); } } catch (Exception e) { - logger.error("Error reading or parsing extension metadata file: " + extensionFile.getName(), e); + logger.error("Error reading or parsing extension metadata file: {}", extensionFile.getName(), e); } } } catch (Exception e) { diff --git a/server/src/com/mirth/connect/server/Mirth.java b/server/src/com/mirth/connect/server/Mirth.java index 62671690a0..24c64874a7 100644 --- a/server/src/com/mirth/connect/server/Mirth.java +++ b/server/src/com/mirth/connect/server/Mirth.java @@ -24,6 +24,7 @@ import java.util.Timer; import java.util.TimerTask; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.configuration2.PropertiesConfiguration; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; @@ -130,7 +131,7 @@ public void run() { initializeLogging(); if (initResources()) { - logger.debug("starting Mirth Connect server..."); + logger.debug("starting {} server...", BrandingConstants.PRODUCT_NAME); // Initialize TLS system properties as early as possible, because otherwise they will be cached if (System.getProperty("jdk.tls.ephemeralDHKeySize") == null) { @@ -539,9 +540,24 @@ public void run() { * system console. */ private void printSplashScreen() { - logger.info("Mirth Connect " + versionProperties.getString("mirth.version") + " (Built on " + versionProperties.getString("mirth.date") + ") server successfully started."); + logger.info( + "{} {} (Built on {}) server successfully started.", + BrandingConstants.PRODUCT_NAME, + versionProperties.getString("mirth.version"), + versionProperties.getString("mirth.date") + ); logger.info("This product was developed by NextGen Healthcare (https://www.nextgen.com) and its contributors (c)2005-2024."); - logger.info("Running " + System.getProperty("java.vm.name") + " " + System.getProperty("java.version") + " on " + System.getProperty("os.name") + " (" + System.getProperty("os.version") + ", " + System.getProperty("os.arch") + "), " + configurationController.getDatabaseType() + ", with charset " + Charset.defaultCharset() + "."); + logger.info("Open Integration Engine contributors (c)2025."); + logger.info( + "Running {} {} on {} ({}, {}), {}, with charset {}.", + System.getProperty("java.vm.name"), + System.getProperty("java.version"), + System.getProperty("os.name"), + System.getProperty("os.version"), + System.getProperty("os.arch"), + configurationController.getDatabaseType(), + Charset.defaultCharset() + ); if (webServer != null) { String httpUrl = null; diff --git a/server/src/com/mirth/connect/server/alert/AlertWorker.java b/server/src/com/mirth/connect/server/alert/AlertWorker.java index f5e376387a..4de7603b73 100644 --- a/server/src/com/mirth/connect/server/alert/AlertWorker.java +++ b/server/src/com/mirth/connect/server/alert/AlertWorker.java @@ -23,6 +23,7 @@ import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.LogManager; @@ -44,7 +45,7 @@ import com.mirth.connect.server.util.TemplateValueReplacer; public abstract class AlertWorker extends EventListener implements AlertActionAcceptor { - private static final String DEFAULT_SUBJECT = "Mirth Connect Alert"; + private static final String DEFAULT_SUBJECT = String.format("%s Alert", BrandingConstants.PRODUCT_NAME); protected Logger logger = LogManager.getLogger(this.getClass()); protected ExecutorService actionExecutor = new ThreadPoolExecutor(0, 1, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue()); diff --git a/server/src/com/mirth/connect/server/api/servlets/SystemServlet.java b/server/src/com/mirth/connect/server/api/servlets/SystemServlet.java index 40f363c23f..29d5930012 100644 --- a/server/src/com/mirth/connect/server/api/servlets/SystemServlet.java +++ b/server/src/com/mirth/connect/server/api/servlets/SystemServlet.java @@ -18,6 +18,7 @@ import javax.ws.rs.core.Context; import javax.ws.rs.core.SecurityContext; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.LogManager; @@ -85,7 +86,7 @@ public SystemStats getStats() throws ClientException { // Windows systems have multiple roots, like "A:" and "C:". if (StringUtils.containsIgnoreCase(System.getProperty("os.name"), "Windows")) { try { - // Attempt to get the correct root from the Mirth Connect base directory + // Attempt to get the correct root from the OIE base directory File baseDir = new File(configurationController.getBaseDir()); // Split on the file separator String[] path = StringUtils.split(baseDir.getCanonicalPath(), File.separatorChar); @@ -111,7 +112,7 @@ public SystemStats getStats() throws ClientException { root = pathRoot; } catch (Exception e) { - logger.warn("Unable to infer filesystem root from Mirth Connect base directory, defaulting to: " + root, e); + logger.warn("Unable to infer filesystem root from {} base directory, defaulting to: {}", BrandingConstants.PRODUCT_NAME, root, e); } } diff --git a/server/src/com/mirth/connect/server/controllers/DefaultConfigurationController.java b/server/src/com/mirth/connect/server/controllers/DefaultConfigurationController.java index 2b9751f483..49e113d23e 100644 --- a/server/src/com/mirth/connect/server/controllers/DefaultConfigurationController.java +++ b/server/src/com/mirth/connect/server/controllers/DefaultConfigurationController.java @@ -53,6 +53,7 @@ import javax.net.ssl.SSLSocketFactory; import javax.xml.parsers.DocumentBuilderFactory; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.codec.binary.Base64; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.MapUtils; @@ -1110,7 +1111,7 @@ public String getResources() { DirectoryResourceProperties defaultResource = new DirectoryResourceProperties(); defaultResource.setId(ResourceProperties.DEFAULT_RESOURCE_ID); defaultResource.setName(ResourceProperties.DEFAULT_RESOURCE_NAME); - defaultResource.setDescription("Loads libraries from the custom-lib folder in the Mirth Connect home directory."); + defaultResource.setDescription(String.format("Loads libraries from the custom-lib folder in the %s home directory.", BrandingConstants.PRODUCT_NAME)); defaultResource.setIncludeWithGlobalScripts(true); defaultResource.setDirectory("custom-lib"); @@ -1500,10 +1501,12 @@ private void configureEncryption(Provider provider, KeyStore keyStore, char[] ke if (StringUtils.equalsAnyIgnoreCase(encryptionConfig.getEncryptionAlgorithm(), "AES", "DES", "DESede")) { // @formatter:off - logger.error("Encryption algorithm is currently set to: \"" + encryptionConfig.getEncryptionAlgorithm() + "\"\n" - + "You should update the \"encryption.algorithm\" in mirth.properties to a more secure option, such as \"" + encryptionConfig.getEncryptionAlgorithm() + "/CBC/PKCS5Padding\".\n" - + "Support for the currently set algorithm will be REMOVED in a future version, so if you do not update it, Mirth Connect will fail to start.\n" - + "Please see the Security Best Practices -> Encryption Settings section of the User Guide for more information."); + logger.error( + "Encryption algorithm is currently set to: \"{}\"\nYou should update the \"encryption.algorithm\" in mirth.properties to a more secure option, such as \"{}/CBC/PKCS5Padding\".\nSupport for the currently set algorithm will be REMOVED in a future version, so if you do not update it, {} will fail to start.\nPlease see the Security Best Practices -> Encryption Settings section of the User Guide for more information.", + encryptionConfig.getEncryptionAlgorithm(), + encryptionConfig.getEncryptionAlgorithm(), + BrandingConstants.PRODUCT_NAME + ); // @formatter:on } } @@ -1527,7 +1530,7 @@ private void generateDefaultCertificate(Provider provider, KeyStore keyStore, ch logger.debug("generated new key pair for CA cert using provider: " + provider.getName()); // Generate CA cert - X500Name caSubjectName = new X500Name("CN=Mirth Connect Certificate Authority"); + X500Name caSubjectName = new X500Name(String.format("CN=%s Certificate Authority", BrandingConstants.PRODUCT_NAME)); SubjectPublicKeyInfo caSubjectKey = SubjectPublicKeyInfo.getInstance(caKeyPair.getPublic().getEncoded()); X509v3CertificateBuilder certBuilder = new X509v3CertificateBuilder(caSubjectName, BigInteger.ONE, startDate, expiryDate, caSubjectName, caSubjectKey); certBuilder.addExtension(org.bouncycastle.asn1.x509.Extension.basicConstraints, true, new BasicConstraints(0)); @@ -1538,7 +1541,7 @@ private void generateDefaultCertificate(Provider provider, KeyStore keyStore, ch KeyPair sslKeyPair = keyPairGenerator.generateKeyPair(); logger.debug("generated new key pair for SSL cert using provider: " + provider.getName()); - X500Name sslSubjectName = new X500Name("CN=mirth-connect"); + X500Name sslSubjectName = new X500Name(String.format("CN=%s", BrandingConstants.SERVER_CERTIFICATE_CN)); SubjectPublicKeyInfo sslSubjectKey = SubjectPublicKeyInfo.getInstance(sslKeyPair.getPublic().getEncoded()); X509v3CertificateBuilder sslCertBuilder = new X509v3CertificateBuilder(caSubjectName, new BigInteger(50, new SecureRandom()), startDate, expiryDate, sslSubjectName, sslSubjectKey); sslCertBuilder.addExtension(org.bouncycastle.asn1.x509.Extension.authorityKeyIdentifier, false, new AuthorityKeyIdentifier(caCert.getEncoded())); @@ -1680,7 +1683,7 @@ public ConnectionTestResponse sendTestEmail(Properties properties) throws Except } } - email.setSubject("Mirth Connect Test Email"); + email.setSubject(String.format("%s Test Email", BrandingConstants.PRODUCT_NAME)); try { for (String toAddress : StringUtils.split(to, ",")) { @@ -1688,10 +1691,15 @@ public ConnectionTestResponse sendTestEmail(Properties properties) throws Except } email.setFrom(from); - email.setMsg("Receipt of this email confirms that mail originating from this Mirth Connect Server is capable of reaching its intended destination.\n\nSMTP Configuration:\n- Host: " + host + "\n- Port: " + port); + email.setMsg(String.format( + "Receipt of this email confirms that mail originating from this %s Server is capable of reaching its intended destination.\n\nSMTP Configuration:\n- Host: %s\n- Port: %d", + BrandingConstants.PRODUCT_NAME, + host, + port + )); email.send(); - return new ConnectionTestResponse(ConnectionTestResponse.Type.SUCCESS, "Sucessfully sent test email to: " + to); + return new ConnectionTestResponse(ConnectionTestResponse.Type.SUCCESS, "Successfully sent test email to: " + to); } catch (EmailException e) { return new ConnectionTestResponse(ConnectionTestResponse.Type.FAILURE, e.getMessage()); } diff --git a/server/src/com/mirth/connect/server/controllers/DefaultExtensionController.java b/server/src/com/mirth/connect/server/controllers/DefaultExtensionController.java index 30b7bfa6ad..b4bd85e893 100644 --- a/server/src/com/mirth/connect/server/controllers/DefaultExtensionController.java +++ b/server/src/com/mirth/connect/server/controllers/DefaultExtensionController.java @@ -36,6 +36,7 @@ import javax.xml.parsers.DocumentBuilderFactory; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.io.FileUtils; import org.apache.commons.io.FilenameUtils; import org.apache.commons.io.IOUtils; @@ -444,7 +445,7 @@ public InstallationResult extractExtension(InputStream inputStream) { if (!extensionLoader.isExtensionCompatible(extensionMetaData)) { if (cause == null) { - cause = new VersionMismatchException("Extension \"" + entry.getName() + "\" is not compatible with this version of Mirth Connect."); + cause = new VersionMismatchException(String.format("Extension \"%s\" is not compatible with this version of %s.", entry.getName(), BrandingConstants.PRODUCT_NAME)); } } } diff --git a/server/src/com/mirth/connect/server/servlets/SwaggerServlet.java b/server/src/com/mirth/connect/server/servlets/SwaggerServlet.java index faf264334c..5ac2d11866 100644 --- a/server/src/com/mirth/connect/server/servlets/SwaggerServlet.java +++ b/server/src/com/mirth/connect/server/servlets/SwaggerServlet.java @@ -9,6 +9,7 @@ package com.mirth.connect.server.servlets; +import com.mirth.connect.client.core.BrandingConstants; import io.swagger.v3.jaxrs2.integration.ServletOpenApiContextBuilder; import io.swagger.v3.oas.integration.OpenApiConfigurationException; import io.swagger.v3.oas.integration.SwaggerConfiguration; @@ -60,8 +61,8 @@ public void init(ServletConfig config) throws ServletException { servers.add(new Server().url(basePath)); oas.servers(servers); - Info info = new Info().title("NextGen Connect Client API") - .description("Swagger documentation for the NextGen Connect Client API.") + Info info = new Info().title(String.format("%s Client API", BrandingConstants.PRODUCT_NAME)) + .description(String.format("Swagger documentation for the %s Client API.", BrandingConstants.PRODUCT_NAME)) .version(apiVersion.toString()); oas.info(info); diff --git a/server/src/com/mirth/connect/server/servlets/WebStartServlet.java b/server/src/com/mirth/connect/server/servlets/WebStartServlet.java index 16d5c2f9ed..ecc077b7ab 100644 --- a/server/src/com/mirth/connect/server/servlets/WebStartServlet.java +++ b/server/src/com/mirth/connect/server/servlets/WebStartServlet.java @@ -30,6 +30,7 @@ import javax.servlet.http.HttpServletResponse; import javax.xml.parsers.DocumentBuilderFactory; +import com.mirth.connect.client.core.BrandingConstants; import org.apache.commons.configuration2.PropertiesConfiguration; import org.apache.commons.configuration2.ex.ConfigurationException; import org.apache.commons.lang3.StringUtils; @@ -145,7 +146,7 @@ protected Document getAdministratorJnlp(HttpServletRequest request) throws Excep Element jnlpElement = document.getDocumentElement(); - // Change the title to include the version of Mirth Connect + // Change the title to include the version PropertiesConfiguration versionProperties = PropertiesConfigurationUtil.create(); InputStream versionPropsIs = null; @@ -349,7 +350,7 @@ protected Document getExtensionJnlp(String extensionPath) throws Exception { informationElement.appendChild(titleElement); Element vendorElement = document.createElement("vendor"); - vendorElement.setTextContent("NextGen Healthcare"); + vendorElement.setTextContent(BrandingConstants.COMPANY_NAME); informationElement.appendChild(vendorElement); jnlpElement.appendChild(informationElement);