19 package org.sleuthkit.autopsy.centralrepository.ingestmodule;
27 @SuppressWarnings(
"PMD.SingularField")
28 final class IngestSettingsPanel extends IngestModuleIngestJobSettingsPanel {
33 public IngestSettingsPanel(IngestSettings settings) {
35 customizeComponents(settings);
43 private void customizeComponents(IngestSettings settings) {
44 flagTaggedNotableItemsCheckbox.setSelected(settings.isFlagTaggedNotableItems());
45 flagPreviouslySeenDevicesCheckbox.setSelected(settings.isFlagPreviousDevices());
46 createCorrelationPropertiesCheckbox.setSelected(settings.shouldCreateCorrelationProperties());
47 flagUniqueAppsCheckbox.setSelected(settings.isFlagUniqueArtifacts());
51 public IngestModuleIngestJobSettings getSettings() {
52 return new IngestSettings(flagTaggedNotableItemsCheckbox.isSelected(), flagPreviouslySeenDevicesCheckbox.isSelected(),
53 createCorrelationPropertiesCheckbox.isSelected(), flagUniqueAppsCheckbox.isSelected());
61 @SuppressWarnings(
"unchecked")
63 private
void initComponents() {
65 ingestSettingsLabel =
new javax.swing.JLabel();
66 flagTaggedNotableItemsCheckbox =
new javax.swing.JCheckBox();
67 flagPreviouslySeenDevicesCheckbox =
new javax.swing.JCheckBox();
68 createCorrelationPropertiesCheckbox =
new javax.swing.JCheckBox();
69 flagUniqueAppsCheckbox =
new javax.swing.JCheckBox();
71 ingestSettingsLabel.setFont(ingestSettingsLabel.getFont().deriveFont(ingestSettingsLabel.getFont().getStyle() | java.awt.Font.BOLD));
72 org.openide.awt.Mnemonics.setLocalizedText(ingestSettingsLabel,
org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class,
"IngestSettingsPanel.ingestSettingsLabel.text"));
74 org.openide.awt.Mnemonics.setLocalizedText(flagTaggedNotableItemsCheckbox,
org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class,
"IngestSettingsPanel.flagTaggedNotableItemsCheckbox.text"));
76 org.openide.awt.Mnemonics.setLocalizedText(flagPreviouslySeenDevicesCheckbox,
org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class,
"IngestSettingsPanel.flagPreviouslySeenDevicesCheckbox.text"));
78 org.openide.awt.Mnemonics.setLocalizedText(createCorrelationPropertiesCheckbox,
org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class,
"IngestSettingsPanel.createCorrelationPropertiesCheckbox.text"));
80 org.openide.awt.Mnemonics.setLocalizedText(flagUniqueAppsCheckbox,
org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class,
"IngestSettingsPanel.flagUniqueAppsCheckbox.text"));
82 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
83 this.setLayout(layout);
84 layout.setHorizontalGroup(
85 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
86 .addGroup(layout.createSequentialGroup()
88 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
89 .addComponent(ingestSettingsLabel)
90 .addGroup(layout.createSequentialGroup()
92 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
93 .addComponent(flagTaggedNotableItemsCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
94 .addComponent(flagPreviouslySeenDevicesCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
95 .addComponent(createCorrelationPropertiesCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
96 .addComponent(flagUniqueAppsCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
97 .addContainerGap(16, Short.MAX_VALUE))
99 layout.setVerticalGroup(
100 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
101 .addGroup(layout.createSequentialGroup()
103 .addComponent(ingestSettingsLabel)
105 .addComponent(createCorrelationPropertiesCheckbox)
106 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
107 .addComponent(flagTaggedNotableItemsCheckbox)
108 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
109 .addComponent(flagPreviouslySeenDevicesCheckbox)
110 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
111 .addComponent(flagUniqueAppsCheckbox)
112 .addContainerGap(24, Short.MAX_VALUE))
117 private javax.swing.JCheckBox createCorrelationPropertiesCheckbox;
118 private javax.swing.JCheckBox flagPreviouslySeenDevicesCheckbox;
119 private javax.swing.JCheckBox flagTaggedNotableItemsCheckbox;
120 private javax.swing.JCheckBox flagUniqueAppsCheckbox;
121 private javax.swing.JLabel ingestSettingsLabel;