mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 02:07:42 +00:00
Mor3e work on AutoIngestSettingsPanel
This commit is contained in:
parent
63cbf531a1
commit
f2b2a55a32
@ -21,23 +21,13 @@
|
||||
<DimensionLayout dim="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="nodePanel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<EmptySpace min="-2" pref="26" max="-2" attributes="0"/>
|
||||
<Component id="bnSave" min="-2" pref="90" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="bnCancel" min="-2" pref="90" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
<DimensionLayout dim="1">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Component id="nodePanel" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="bnSave" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="bnCancel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace min="0" pref="38" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
@ -55,12 +45,21 @@
|
||||
<Layout>
|
||||
<DimensionLayout dim="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||
<Component id="jPanelNodeType" max="32767" attributes="0"/>
|
||||
<Component id="jPanelSharedConfig" alignment="0" max="32767" attributes="0"/>
|
||||
<Component id="jPanelIngestSettings" alignment="0" max="32767" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="cbJoinAutoIngestCluster" min="-2" max="-2" attributes="0"/>
|
||||
<Group type="102" attributes="0">
|
||||
<EmptySpace min="10" pref="10" max="-2" attributes="0"/>
|
||||
<Component id="bnSave" min="-2" pref="90" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="bnCancel" min="-2" pref="90" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||
<Component id="jPanelNodeType" max="32767" attributes="0"/>
|
||||
<Component id="jPanelSharedConfig" alignment="0" max="32767" attributes="0"/>
|
||||
<Component id="jPanelIngestSettings" alignment="0" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
</Group>
|
||||
@ -70,12 +69,19 @@
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="cbJoinAutoIngestCluster" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace min="-2" pref="3" max="-2" attributes="0"/>
|
||||
<Component id="jPanelNodeType" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="jPanelIngestSettings" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="jPanelSharedConfig" max="32767" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="bnSave" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="bnCancel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
@ -115,24 +121,13 @@
|
||||
<Component id="browseOutputFolderButton" alignment="1" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||
<Component id="jRadioButtonCopyFilesMode" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonAutomated" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonReview" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonStandalone" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Group type="102" attributes="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Component id="jLabelSelectMode" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="restartRequiredNodeLabel" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Component id="multiUserErrorTextField" alignment="0" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="32767" attributes="0"/>
|
||||
<Component id="jLabelAimDiagram" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Group type="102" attributes="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Component id="jLabelSelectInputFolder" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||
@ -143,6 +138,8 @@
|
||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||
<Component id="jLabelInvalidResultsFolder" min="-2" pref="544" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Component id="jRadioButtonAutomated" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonReview" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
@ -153,28 +150,16 @@
|
||||
</DimensionLayout>
|
||||
<DimensionLayout dim="1">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" attributes="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" attributes="0">
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="jLabelSelectMode" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="restartRequiredNodeLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonStandalone" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonCopyFilesMode" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonAutomated" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonReview" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="multiUserErrorTextField" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Component id="jLabelAimDiagram" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="jLabelSelectMode" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="restartRequiredNodeLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace min="-2" pref="6" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonAutomated" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="jRadioButtonReview" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="jLabelSelectInputFolder" alignment="3" min="-2" pref="22" max="-2" attributes="0"/>
|
||||
<Component id="jLabelInvalidImageFolder" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
@ -194,7 +179,7 @@
|
||||
<Component id="browseOutputFolderButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="outputPathTextField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace min="-2" pref="6" max="-2" attributes="0"/>
|
||||
<EmptySpace min="0" pref="9" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
@ -217,35 +202,6 @@
|
||||
</Property>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JRadioButton" name="jRadioButtonStandalone">
|
||||
<Properties>
|
||||
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
|
||||
<ComponentRef name="modeRadioButtons"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.jRadioButtonStandalone.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
<Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.jRadioButtonStandalone.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jRadioButtonStandaloneActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
<Component class="javax.swing.JRadioButton" name="jRadioButtonCopyFilesMode">
|
||||
<Properties>
|
||||
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
|
||||
<ComponentRef name="modeRadioButtons"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.jRadioButtonCopyFilesMode.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jRadioButtonCopyFilesModeActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
<Component class="javax.swing.JRadioButton" name="jRadioButtonAutomated">
|
||||
<Properties>
|
||||
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
|
||||
@ -334,16 +290,6 @@
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="browseOutputFolderButtonActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="jLabelAimDiagram">
|
||||
<Properties>
|
||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||
<Image iconType="3" name="/org/sleuthkit/autopsy/experimental/images/AIM.png"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.jLabelAimDiagram.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="jLabelInvalidImageFolder">
|
||||
<Properties>
|
||||
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||
@ -364,20 +310,6 @@
|
||||
</Property>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JTextField" name="multiUserErrorTextField">
|
||||
<Properties>
|
||||
<Property name="editable" type="boolean" value="false"/>
|
||||
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||
<Color blue="0" green="0" red="ff" type="rgb"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.multiUserErrorTextField.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||
<Border info="null"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Container>
|
||||
<Container class="javax.swing.JPanel" name="jPanelSharedConfig">
|
||||
@ -665,27 +597,42 @@
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Container>
|
||||
<Component class="javax.swing.JButton" name="bnSave">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.bnSave.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="bnSaveActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="bnCancel">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.bnCancel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="bnCancelActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
<Component class="javax.swing.JCheckBox" name="cbJoinAutoIngestCluster">
|
||||
<Properties>
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.editors2.FontEditor">
|
||||
<FontInfo relative="true">
|
||||
<Font bold="false" component="cbJoinAutoIngestCluster" property="font" relativeSize="false" size="11"/>
|
||||
</FontInfo>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.cbJoinAutoIngestCluster.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbJoinAutoIngestClusterActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Container>
|
||||
<Component class="javax.swing.JButton" name="bnSave">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.bnSave.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="bnSaveActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="bnCancel">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/experimental/configuration/Bundle.properties" key="AutoIngestSettingsPanel.bnCancel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="bnCancelActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Form>
|
||||
|
@ -67,6 +67,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
controller = theController;
|
||||
initComponents();
|
||||
|
||||
cbJoinAutoIngestCluster.setVisible(true);
|
||||
load(true);
|
||||
sharedSettingsTextField.getDocument().addDocumentListener(new MyDocumentListener());
|
||||
inputPathTextField.getDocument().addDocumentListener(new MyDocumentListener());
|
||||
@ -77,7 +78,6 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
sharedSettingsErrorTextField.setText("");
|
||||
jLabelTaskDescription.setText("");
|
||||
configButtonErrorTextField.setText("");
|
||||
multiUserErrorTextField.setText("");
|
||||
|
||||
pbTaskInProgress.setEnabled(false);
|
||||
jLabelCurrentTask.setEnabled(false);
|
||||
@ -123,15 +123,18 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
enableOptionsBasedOnMode(OptionsUiMode.AIM);
|
||||
break;
|
||||
case COPYFILES:
|
||||
jRadioButtonCopyFilesMode.setSelected(true);
|
||||
enableOptionsBasedOnMode(OptionsUiMode.UTILITY);
|
||||
break;
|
||||
default:
|
||||
jRadioButtonStandalone.setSelected(true);
|
||||
cbJoinAutoIngestCluster.setSelected(false);
|
||||
enableOptionsBasedOnMode(OptionsUiMode.STANDALONE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// multi user mode must be enabled
|
||||
if (!UserPreferences.getIsMultiUserModeEnabled()) {
|
||||
cbJoinAutoIngestCluster.setEnabled(false);
|
||||
enableUI(false);
|
||||
}
|
||||
|
||||
String images = AutoIngestUserPreferences.getAutoModeImageFolder();
|
||||
if (images != null) {
|
||||
@ -194,9 +197,12 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
* Save mode to persistent storage.
|
||||
*/
|
||||
void store() {
|
||||
if (jRadioButtonStandalone.isSelected()) {
|
||||
if (!cbJoinAutoIngestCluster.isSelected()) {
|
||||
AutoIngestUserPreferences.setMode(AutoIngestUserPreferences.SelectedMode.STANDALONE);
|
||||
} else if (jRadioButtonAutomated.isSelected()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (jRadioButtonAutomated.isSelected()) {
|
||||
boolean needsSaving = false;
|
||||
String thePath = AutoIngestUserPreferences.getAutoModeImageFolder();
|
||||
if (thePath != null && 0 != inputPathTextField.getText().compareTo(thePath)) {
|
||||
@ -224,7 +230,8 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
AutoIngestUserPreferences.setSharedConfigFolder(globalSettingsPath);
|
||||
AutoIngestUserPreferences.setSharedConfigMaster(masterNodeCheckBox.isSelected());
|
||||
}
|
||||
} else if (jRadioButtonCopyFilesMode.isSelected()) {
|
||||
} /* ELTODO Make this into a Tool
|
||||
else if (jRadioButtonCopyFilesMode.isSelected()) {
|
||||
|
||||
boolean needsSaving = false;
|
||||
String thePath = AutoIngestUserPreferences.getAutoModeImageFolder();
|
||||
@ -253,7 +260,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
AutoIngestUserPreferences.setSharedConfigFolder(globalSettingsPath);
|
||||
AutoIngestUserPreferences.setSharedConfigMaster(masterNodeCheckBox.isSelected());
|
||||
}
|
||||
} else if (jRadioButtonReview.isSelected()) {
|
||||
}*/ else if (jRadioButtonReview.isSelected()) {
|
||||
String thePath = AutoIngestUserPreferences.getAutoModeResultsFolder();
|
||||
if (thePath != null && 0 != outputPathTextField.getText().compareTo(thePath)) {
|
||||
JOptionPane.showMessageDialog(null,
|
||||
@ -309,7 +316,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
jLabelInvalidResultsFolder.setVisible(false);
|
||||
boolean isValidNodePanel = true;
|
||||
|
||||
if (jRadioButtonAutomated.isSelected() || jRadioButtonCopyFilesMode.isSelected()) {
|
||||
if (jRadioButtonAutomated.isSelected()) {
|
||||
if (sharedConfigCheckbox.isEnabled() && sharedConfigCheckbox.isSelected() && !validSharedConfigSettings()) {
|
||||
isValidNodePanel = false;
|
||||
}
|
||||
@ -594,10 +601,8 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
}
|
||||
|
||||
private OptionsUiMode getModeFromRadioButtons() {
|
||||
if (jRadioButtonStandalone.isSelected()) {
|
||||
if (!cbJoinAutoIngestCluster.isSelected()) {
|
||||
return OptionsUiMode.STANDALONE;
|
||||
} else if (jRadioButtonCopyFilesMode.isSelected()) {
|
||||
return OptionsUiMode.UTILITY;
|
||||
} else if (jRadioButtonAutomated.isSelected()) {
|
||||
return OptionsUiMode.AIM;
|
||||
} else {
|
||||
@ -657,8 +662,6 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
jPanelNodeType = new javax.swing.JPanel();
|
||||
jLabelSelectMode = new javax.swing.JLabel();
|
||||
restartRequiredNodeLabel = new javax.swing.JLabel();
|
||||
jRadioButtonStandalone = new javax.swing.JRadioButton();
|
||||
jRadioButtonCopyFilesMode = new javax.swing.JRadioButton();
|
||||
jRadioButtonAutomated = new javax.swing.JRadioButton();
|
||||
jRadioButtonReview = new javax.swing.JRadioButton();
|
||||
jLabelSelectInputFolder = new javax.swing.JLabel();
|
||||
@ -667,10 +670,8 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
jLabelSelectOutputFolder = new javax.swing.JLabel();
|
||||
outputPathTextField = new javax.swing.JTextField();
|
||||
browseOutputFolderButton = new javax.swing.JButton();
|
||||
jLabelAimDiagram = new javax.swing.JLabel();
|
||||
jLabelInvalidImageFolder = new javax.swing.JLabel();
|
||||
jLabelInvalidResultsFolder = new javax.swing.JLabel();
|
||||
multiUserErrorTextField = new javax.swing.JTextField();
|
||||
jPanelSharedConfig = new javax.swing.JPanel();
|
||||
sharedConfigCheckbox = new javax.swing.JCheckBox();
|
||||
sharedSettingsTextField = new javax.swing.JTextField();
|
||||
@ -690,6 +691,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
bnFileExport = new javax.swing.JButton();
|
||||
bnSave = new javax.swing.JButton();
|
||||
bnCancel = new javax.swing.JButton();
|
||||
cbJoinAutoIngestCluster = new javax.swing.JCheckBox();
|
||||
|
||||
nodePanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
||||
|
||||
@ -701,23 +703,6 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
restartRequiredNodeLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/experimental/images/warning16.png"))); // NOI18N
|
||||
org.openide.awt.Mnemonics.setLocalizedText(restartRequiredNodeLabel, org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.restartRequiredNodeLabel.text")); // NOI18N
|
||||
|
||||
modeRadioButtons.add(jRadioButtonStandalone);
|
||||
org.openide.awt.Mnemonics.setLocalizedText(jRadioButtonStandalone, org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.jRadioButtonStandalone.text")); // NOI18N
|
||||
jRadioButtonStandalone.setToolTipText(org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.jRadioButtonStandalone.toolTipText")); // NOI18N
|
||||
jRadioButtonStandalone.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
jRadioButtonStandaloneActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
|
||||
modeRadioButtons.add(jRadioButtonCopyFilesMode);
|
||||
org.openide.awt.Mnemonics.setLocalizedText(jRadioButtonCopyFilesMode, org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.jRadioButtonCopyFilesMode.text")); // NOI18N
|
||||
jRadioButtonCopyFilesMode.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
jRadioButtonCopyFilesModeActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
|
||||
modeRadioButtons.add(jRadioButtonAutomated);
|
||||
org.openide.awt.Mnemonics.setLocalizedText(jRadioButtonAutomated, org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.jRadioButtonAutomated.text")); // NOI18N
|
||||
jRadioButtonAutomated.setToolTipText(org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.jRadioButtonAutomated.toolTipText")); // NOI18N
|
||||
@ -762,20 +747,12 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
}
|
||||
});
|
||||
|
||||
jLabelAimDiagram.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/experimental/images/AIM.png"))); // NOI18N
|
||||
org.openide.awt.Mnemonics.setLocalizedText(jLabelAimDiagram, org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.jLabelAimDiagram.text")); // NOI18N
|
||||
|
||||
jLabelInvalidImageFolder.setForeground(new java.awt.Color(255, 0, 0));
|
||||
org.openide.awt.Mnemonics.setLocalizedText(jLabelInvalidImageFolder, org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.jLabelInvalidImageFolder.text")); // NOI18N
|
||||
|
||||
jLabelInvalidResultsFolder.setForeground(new java.awt.Color(255, 0, 0));
|
||||
org.openide.awt.Mnemonics.setLocalizedText(jLabelInvalidResultsFolder, org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.jLabelInvalidResultsFolder.text")); // NOI18N
|
||||
|
||||
multiUserErrorTextField.setEditable(false);
|
||||
multiUserErrorTextField.setForeground(new java.awt.Color(255, 0, 0));
|
||||
multiUserErrorTextField.setText(org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.multiUserErrorTextField.text")); // NOI18N
|
||||
multiUserErrorTextField.setBorder(null);
|
||||
|
||||
javax.swing.GroupLayout jPanelNodeTypeLayout = new javax.swing.GroupLayout(jPanelNodeType);
|
||||
jPanelNodeType.setLayout(jPanelNodeTypeLayout);
|
||||
jPanelNodeTypeLayout.setHorizontalGroup(
|
||||
@ -792,20 +769,11 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
.addComponent(browseInputFolderButton, javax.swing.GroupLayout.Alignment.TRAILING)
|
||||
.addComponent(browseOutputFolderButton, javax.swing.GroupLayout.Alignment.TRAILING)))
|
||||
.addGroup(jPanelNodeTypeLayout.createSequentialGroup()
|
||||
.addGroup(jPanelNodeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||
.addComponent(jRadioButtonCopyFilesMode)
|
||||
.addComponent(jRadioButtonAutomated)
|
||||
.addComponent(jRadioButtonReview)
|
||||
.addComponent(jRadioButtonStandalone)
|
||||
.addGroup(jPanelNodeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(jPanelNodeTypeLayout.createSequentialGroup()
|
||||
.addComponent(jLabelSelectMode)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(restartRequiredNodeLabel))
|
||||
.addComponent(multiUserErrorTextField))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(jLabelAimDiagram))
|
||||
.addGroup(jPanelNodeTypeLayout.createSequentialGroup()
|
||||
.addGroup(jPanelNodeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(jPanelNodeTypeLayout.createSequentialGroup()
|
||||
.addComponent(jLabelSelectInputFolder)
|
||||
.addGap(18, 18, 18)
|
||||
@ -813,31 +781,23 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
.addGroup(jPanelNodeTypeLayout.createSequentialGroup()
|
||||
.addComponent(jLabelSelectOutputFolder)
|
||||
.addGap(18, 18, 18)
|
||||
.addComponent(jLabelInvalidResultsFolder, javax.swing.GroupLayout.PREFERRED_SIZE, 544, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
||||
.addComponent(jLabelInvalidResultsFolder, javax.swing.GroupLayout.PREFERRED_SIZE, 544, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addComponent(jRadioButtonAutomated)
|
||||
.addComponent(jRadioButtonReview))
|
||||
.addGap(0, 0, Short.MAX_VALUE)))
|
||||
.addContainerGap())
|
||||
);
|
||||
jPanelNodeTypeLayout.setVerticalGroup(
|
||||
jPanelNodeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(jPanelNodeTypeLayout.createSequentialGroup()
|
||||
.addGroup(jPanelNodeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(jPanelNodeTypeLayout.createSequentialGroup()
|
||||
.addContainerGap()
|
||||
.addGroup(jPanelNodeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(jLabelSelectMode)
|
||||
.addComponent(restartRequiredNodeLabel))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||
.addComponent(jRadioButtonStandalone)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(jRadioButtonCopyFilesMode)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(jRadioButtonAutomated)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(jRadioButtonReview)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(multiUserErrorTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addComponent(jLabelAimDiagram))
|
||||
.addGap(6, 6, 6)
|
||||
.addGroup(jPanelNodeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(jLabelSelectMode)
|
||||
.addComponent(restartRequiredNodeLabel))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(jRadioButtonAutomated)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(jRadioButtonReview)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(jPanelNodeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(jLabelSelectInputFolder, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addComponent(jLabelInvalidImageFolder))
|
||||
@ -853,7 +813,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
.addGroup(jPanelNodeTypeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(browseOutputFolderButton)
|
||||
.addComponent(outputPathTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addGap(6, 6, 6))
|
||||
.addGap(0, 9, Short.MAX_VALUE))
|
||||
);
|
||||
|
||||
jPanelSharedConfig.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.jPanelSharedConfig.border.title"))); // NOI18N
|
||||
@ -1025,30 +985,6 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||
);
|
||||
|
||||
javax.swing.GroupLayout nodePanelLayout = new javax.swing.GroupLayout(nodePanel);
|
||||
nodePanel.setLayout(nodePanelLayout);
|
||||
nodePanelLayout.setHorizontalGroup(
|
||||
nodePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(nodePanelLayout.createSequentialGroup()
|
||||
.addContainerGap()
|
||||
.addGroup(nodePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||
.addComponent(jPanelNodeType, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(jPanelSharedConfig, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(jPanelIngestSettings, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||
.addContainerGap())
|
||||
);
|
||||
nodePanelLayout.setVerticalGroup(
|
||||
nodePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(nodePanelLayout.createSequentialGroup()
|
||||
.addContainerGap()
|
||||
.addComponent(jPanelNodeType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addGap(18, 18, 18)
|
||||
.addComponent(jPanelIngestSettings, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addGap(18, 18, 18)
|
||||
.addComponent(jPanelSharedConfig, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addContainerGap())
|
||||
);
|
||||
|
||||
org.openide.awt.Mnemonics.setLocalizedText(bnSave, org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.bnSave.text")); // NOI18N
|
||||
bnSave.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
@ -1063,25 +999,62 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
}
|
||||
});
|
||||
|
||||
cbJoinAutoIngestCluster.setFont(cbJoinAutoIngestCluster.getFont().deriveFont(cbJoinAutoIngestCluster.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
|
||||
org.openide.awt.Mnemonics.setLocalizedText(cbJoinAutoIngestCluster, org.openide.util.NbBundle.getMessage(AutoIngestSettingsPanel.class, "AutoIngestSettingsPanel.cbJoinAutoIngestCluster.text")); // NOI18N
|
||||
cbJoinAutoIngestCluster.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
cbJoinAutoIngestClusterActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
|
||||
javax.swing.GroupLayout nodePanelLayout = new javax.swing.GroupLayout(nodePanel);
|
||||
nodePanel.setLayout(nodePanelLayout);
|
||||
nodePanelLayout.setHorizontalGroup(
|
||||
nodePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(nodePanelLayout.createSequentialGroup()
|
||||
.addContainerGap()
|
||||
.addGroup(nodePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(cbJoinAutoIngestCluster)
|
||||
.addGroup(nodePanelLayout.createSequentialGroup()
|
||||
.addGap(10, 10, 10)
|
||||
.addComponent(bnSave, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(bnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addGroup(nodePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||
.addComponent(jPanelNodeType, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(jPanelSharedConfig, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(jPanelIngestSettings, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
|
||||
.addContainerGap())
|
||||
);
|
||||
nodePanelLayout.setVerticalGroup(
|
||||
nodePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(nodePanelLayout.createSequentialGroup()
|
||||
.addContainerGap()
|
||||
.addComponent(cbJoinAutoIngestCluster)
|
||||
.addGap(3, 3, 3)
|
||||
.addComponent(jPanelNodeType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(jPanelIngestSettings, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(jPanelSharedConfig, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(nodePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(bnSave)
|
||||
.addComponent(bnCancel))
|
||||
.addContainerGap())
|
||||
);
|
||||
|
||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
||||
this.setLayout(layout);
|
||||
layout.setHorizontalGroup(
|
||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(nodePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addGroup(layout.createSequentialGroup()
|
||||
.addGap(26, 26, 26)
|
||||
.addComponent(bnSave, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(bnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
);
|
||||
layout.setVerticalGroup(
|
||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(layout.createSequentialGroup()
|
||||
.addComponent(nodePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(bnSave)
|
||||
.addComponent(bnCancel)))
|
||||
.addGap(0, 38, Short.MAX_VALUE))
|
||||
);
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
|
||||
@ -1163,18 +1136,6 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
validateSettings();
|
||||
}//GEN-LAST:event_jRadioButtonAutomatedActionPerformed
|
||||
|
||||
private void jRadioButtonCopyFilesModeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonCopyFilesModeActionPerformed
|
||||
enableOptionsBasedOnMode(OptionsUiMode.UTILITY);
|
||||
setSharedConfigEnable();
|
||||
validateSettings();
|
||||
}//GEN-LAST:event_jRadioButtonCopyFilesModeActionPerformed
|
||||
|
||||
private void jRadioButtonStandaloneActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButtonStandaloneActionPerformed
|
||||
enableOptionsBasedOnMode(OptionsUiMode.STANDALONE);
|
||||
setSharedConfigEnable();
|
||||
validateSettings();
|
||||
}//GEN-LAST:event_jRadioButtonStandaloneActionPerformed
|
||||
|
||||
boolean permissionsAppropriate(String path) {
|
||||
return FileUtil.hasReadWriteAccess(Paths.get(path));
|
||||
}
|
||||
@ -1225,7 +1186,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
String globalSettingsPath = getNormalizedFolderPath(sharedSettingsTextField.getText().trim());
|
||||
AutoIngestUserPreferences.setSharedConfigFolder(globalSettingsPath);
|
||||
|
||||
disableUI();
|
||||
enableUI(false);
|
||||
jLabelCurrentTask.setEnabled(true);
|
||||
jLabelTaskDescription.setEnabled(true);
|
||||
pbTaskInProgress.setEnabled(true);
|
||||
@ -1242,7 +1203,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
private void uploadButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_uploadButtonActionPerformed
|
||||
store();
|
||||
|
||||
disableUI();
|
||||
enableUI(false);
|
||||
jLabelCurrentTask.setEnabled(true);
|
||||
jLabelTaskDescription.setEnabled(true);
|
||||
pbTaskInProgress.setEnabled(true);
|
||||
@ -1290,9 +1251,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
}
|
||||
if (sharedConfigCheckbox.isEnabled()) {
|
||||
jRadioButtonAutomated.setEnabled(false);
|
||||
jRadioButtonCopyFilesMode.setEnabled(false);
|
||||
jRadioButtonReview.setEnabled(false);
|
||||
jRadioButtonStandalone.setEnabled(false);
|
||||
}
|
||||
}//GEN-LAST:event_masterNodeCheckBoxItemStateChanged
|
||||
|
||||
@ -1327,17 +1286,25 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
jDialog.setVisible(true);
|
||||
}//GEN-LAST:event_bnFileExportActionPerformed
|
||||
|
||||
private void disableUI() {
|
||||
enableOptionsBasedOnMode(OptionsUiMode.DOWNLOADING_CONFIGURATION);
|
||||
downloadButton.setEnabled(false);
|
||||
uploadButton.setEnabled(false);
|
||||
browseSharedSettingsButton.setEnabled(false);
|
||||
sharedConfigCheckbox.setEnabled(false);
|
||||
masterNodeCheckBox.setEnabled(false);
|
||||
sharedSettingsTextField.setEnabled(false);
|
||||
private void cbJoinAutoIngestClusterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbJoinAutoIngestClusterActionPerformed
|
||||
|
||||
enableUI(cbJoinAutoIngestCluster.isSelected());
|
||||
|
||||
// ELTODO enableMultiUserComponents(textBoxes, cbJoinAutoIngestCluster.isSelected());
|
||||
controller.changed();
|
||||
}//GEN-LAST:event_cbJoinAutoIngestClusterActionPerformed
|
||||
|
||||
bnSave.setEnabled(false);
|
||||
bnCancel.setEnabled(false);
|
||||
private void enableUI(boolean state) {
|
||||
enableOptionsBasedOnMode(OptionsUiMode.DOWNLOADING_CONFIGURATION);
|
||||
downloadButton.setEnabled(state);
|
||||
uploadButton.setEnabled(state);
|
||||
browseSharedSettingsButton.setEnabled(state);
|
||||
sharedConfigCheckbox.setEnabled(state);
|
||||
masterNodeCheckBox.setEnabled(state);
|
||||
sharedSettingsTextField.setEnabled(state);
|
||||
|
||||
bnSave.setEnabled(state);
|
||||
bnCancel.setEnabled(state);
|
||||
}
|
||||
|
||||
private void resetUI() {
|
||||
@ -1460,10 +1427,7 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
jPanelNodeType.setEnabled(enabled);
|
||||
jPanelSharedConfig.setEnabled(enabled);
|
||||
jRadioButtonAutomated.setEnabled(enabled);
|
||||
jRadioButtonCopyFilesMode.setEnabled(enabled);
|
||||
jRadioButtonReview.setEnabled(enabled);
|
||||
jRadioButtonStandalone.setEnabled(enabled);
|
||||
multiUserErrorTextField.setEnabled(enabled);
|
||||
outputPathTextField.setEnabled(enabled);
|
||||
restartRequiredNodeLabel.setEnabled(enabled);
|
||||
}
|
||||
@ -1477,10 +1441,10 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
private javax.swing.JButton browseInputFolderButton;
|
||||
private javax.swing.JButton browseOutputFolderButton;
|
||||
private javax.swing.JButton browseSharedSettingsButton;
|
||||
private javax.swing.JCheckBox cbJoinAutoIngestCluster;
|
||||
private javax.swing.JTextField configButtonErrorTextField;
|
||||
private javax.swing.JButton downloadButton;
|
||||
private javax.swing.JTextField inputPathTextField;
|
||||
private javax.swing.JLabel jLabelAimDiagram;
|
||||
private javax.swing.JLabel jLabelCurrentTask;
|
||||
private javax.swing.JLabel jLabelInvalidImageFolder;
|
||||
private javax.swing.JLabel jLabelInvalidResultsFolder;
|
||||
@ -1492,13 +1456,10 @@ public class AutoIngestSettingsPanel extends javax.swing.JPanel {
|
||||
private javax.swing.JPanel jPanelNodeType;
|
||||
private javax.swing.JPanel jPanelSharedConfig;
|
||||
private javax.swing.JRadioButton jRadioButtonAutomated;
|
||||
private javax.swing.JRadioButton jRadioButtonCopyFilesMode;
|
||||
private javax.swing.JRadioButton jRadioButtonReview;
|
||||
private javax.swing.JRadioButton jRadioButtonStandalone;
|
||||
private javax.swing.JSeparator jSeparator1;
|
||||
private javax.swing.JCheckBox masterNodeCheckBox;
|
||||
private javax.swing.ButtonGroup modeRadioButtons;
|
||||
private javax.swing.JTextField multiUserErrorTextField;
|
||||
private javax.swing.JPanel nodePanel;
|
||||
private javax.swing.JTextField outputPathTextField;
|
||||
private javax.swing.JProgressBar pbTaskInProgress;
|
||||
|
@ -69,10 +69,8 @@ StartupWindow.AutoIngestMode=Automated Ingest Node
|
||||
StartupWindow.ReviewMode=Cases
|
||||
StartupWindow.CopyAndImportMode=Utilities
|
||||
StartupWindow.CaseImportMode=Single User Case Import
|
||||
AutoIngestSettingsPanel.multiUserErrorTextField.text=jTextField1
|
||||
AutoIngestSettingsPanel.jLabelInvalidResultsFolder.text=jLabelInvalidResultsFolder
|
||||
AutoIngestSettingsPanel.jLabelInvalidImageFolder.text=jLabelInvalidImageFolder
|
||||
AutoIngestSettingsPanel.jLabelAimDiagram.text=
|
||||
AutoIngestSettingsPanel.browseOutputFolderButton.text=Browse
|
||||
AutoIngestSettingsPanel.bnCancel.text=Cancel
|
||||
AutoIngestSettingsPanel.outputPathTextField.toolTipText=Results folder for automated processing, i.e., the location where results folders will be created by automated processing mode for presentation to the user in review mode. Also, cases that were single-user and were converted to multi-user cases will end up here.
|
||||
@ -84,12 +82,9 @@ AutoIngestSettingsPanel.inputPathTextField.toolTipText=Input folder for automate
|
||||
AutoIngestSettingsPanel.inputPathTextField.text=
|
||||
AutoIngestSettingsPanel.jLabelSelectInputFolder.text=Select shared images folder:
|
||||
AutoIngestSettingsPanel.jRadioButtonReview.toolTipText=Review cases created in automated processing mode
|
||||
AutoIngestSettingsPanel.jRadioButtonReview.text=Reviewer
|
||||
AutoIngestSettingsPanel.jRadioButtonReview.text=Examiner
|
||||
AutoIngestSettingsPanel.jRadioButtonAutomated.toolTipText=Automatically detect new data sources and create cases.
|
||||
AutoIngestSettingsPanel.jRadioButtonAutomated.text=Automated ingest
|
||||
AutoIngestSettingsPanel.jRadioButtonCopyFilesMode.text=Single user case import
|
||||
AutoIngestSettingsPanel.jRadioButtonStandalone.toolTipText=Run as Autopsy with advanced features.
|
||||
AutoIngestSettingsPanel.jRadioButtonStandalone.text=Standalone
|
||||
AutoIngestSettingsPanel.restartRequiredNodeLabel.text=Application restart required
|
||||
AutoIngestSettingsPanel.jLabelSelectMode.text=Select mode:
|
||||
AutoIngestSettingsPanel.jPanelNodeType.border.title=Node Type Setup
|
||||
@ -110,3 +105,4 @@ AutoIngestSettingsPanel.browseSharedSettingsButton.text=Browse
|
||||
AutoIngestSettingsPanel.sharedSettingsTextField.text=
|
||||
AutoIngestSettingsPanel.sharedConfigCheckbox.text=Use shared configuration in folder:
|
||||
AutoIngestSettingsPanel.jPanelSharedConfig.border.title=Shared Configuration
|
||||
AutoIngestSettingsPanel.cbJoinAutoIngestCluster.text=Join Automated Ingest Cluster
|
||||
|
@ -0,0 +1,2 @@
|
||||
|
||||
AutoIngestSettingsPanel.cbJoinAutoIngestCluster.text=\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u30b1\u30fc\u30b9\u3092\u6709\u52b9\u5316
|
Loading…
x
Reference in New Issue
Block a user