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());
50 public IngestModuleIngestJobSettings getSettings() {
51 return new IngestSettings(flagTaggedNotableItemsCheckbox.isSelected(), flagPreviouslySeenDevicesCheckbox.isSelected(), createCorrelationPropertiesCheckbox.isSelected());
59 @SuppressWarnings(
"unchecked")
61 private
void initComponents() {
63 ingestSettingsLabel =
new javax.swing.JLabel();
64 flagTaggedNotableItemsCheckbox =
new javax.swing.JCheckBox();
65 flagPreviouslySeenDevicesCheckbox =
new javax.swing.JCheckBox();
66 createCorrelationPropertiesCheckbox =
new javax.swing.JCheckBox();
68 ingestSettingsLabel.setFont(ingestSettingsLabel.getFont().deriveFont(ingestSettingsLabel.getFont().getStyle() | java.awt.Font.BOLD));
69 org.openide.awt.Mnemonics.setLocalizedText(ingestSettingsLabel,
org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class,
"IngestSettingsPanel.ingestSettingsLabel.text"));
71 org.openide.awt.Mnemonics.setLocalizedText(flagTaggedNotableItemsCheckbox,
org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class,
"IngestSettingsPanel.flagTaggedNotableItemsCheckbox.text"));
73 org.openide.awt.Mnemonics.setLocalizedText(flagPreviouslySeenDevicesCheckbox,
org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class,
"IngestSettingsPanel.flagPreviouslySeenDevicesCheckbox.text"));
75 org.openide.awt.Mnemonics.setLocalizedText(createCorrelationPropertiesCheckbox,
org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class,
"IngestSettingsPanel.createCorrelationPropertiesCheckbox.text"));
77 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
78 this.setLayout(layout);
79 layout.setHorizontalGroup(
80 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
81 .addGroup(layout.createSequentialGroup()
83 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
84 .addComponent(ingestSettingsLabel)
85 .addGroup(layout.createSequentialGroup()
87 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
88 .addComponent(flagTaggedNotableItemsCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
89 .addComponent(flagPreviouslySeenDevicesCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
90 .addComponent(createCorrelationPropertiesCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
91 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
93 layout.setVerticalGroup(
94 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
95 .addGroup(layout.createSequentialGroup()
97 .addComponent(ingestSettingsLabel)
99 .addComponent(createCorrelationPropertiesCheckbox)
100 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
101 .addComponent(flagTaggedNotableItemsCheckbox)
102 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
103 .addComponent(flagPreviouslySeenDevicesCheckbox)
104 .addContainerGap(47, Short.MAX_VALUE))
109 private javax.swing.JCheckBox createCorrelationPropertiesCheckbox;
110 private javax.swing.JCheckBox flagPreviouslySeenDevicesCheckbox;
111 private javax.swing.JCheckBox flagTaggedNotableItemsCheckbox;
112 private javax.swing.JLabel ingestSettingsLabel;