Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
IngestSettingsPanel.java
Go to the documentation of this file.
1/*
2 * Central Repository
3 *
4 * Copyright 2018-2021 Basis Technology Corp.
5 * Contact: carrier <at> sleuthkit <dot> org
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19package org.sleuthkit.autopsy.centralrepository.ingestmodule;
20
21import org.sleuthkit.autopsy.ingest.IngestModuleIngestJobSettings;
22import org.sleuthkit.autopsy.ingest.IngestModuleIngestJobSettingsPanel;
23
27@SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
28final class IngestSettingsPanel extends IngestModuleIngestJobSettingsPanel {
29
33 public IngestSettingsPanel(IngestSettings settings) {
34 initComponents();
35 customizeComponents(settings);
36 }
37
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());
48 }
49
50 @Override
51 public IngestModuleIngestJobSettings getSettings() {
52 return new IngestSettings(flagTaggedNotableItemsCheckbox.isSelected(), flagPreviouslySeenDevicesCheckbox.isSelected(),
53 createCorrelationPropertiesCheckbox.isSelected(), flagUniqueAppsCheckbox.isSelected());
54 }
55
61 @SuppressWarnings("unchecked")
62 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
63 private void initComponents() {
64
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();
70
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")); // NOI18N
73
74 org.openide.awt.Mnemonics.setLocalizedText(flagTaggedNotableItemsCheckbox, org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class, "IngestSettingsPanel.flagTaggedNotableItemsCheckbox.text")); // NOI18N
75
76 org.openide.awt.Mnemonics.setLocalizedText(flagPreviouslySeenDevicesCheckbox, org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class, "IngestSettingsPanel.flagPreviouslySeenDevicesCheckbox.text")); // NOI18N
77
78 org.openide.awt.Mnemonics.setLocalizedText(createCorrelationPropertiesCheckbox, org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class, "IngestSettingsPanel.createCorrelationPropertiesCheckbox.text")); // NOI18N
79
80 org.openide.awt.Mnemonics.setLocalizedText(flagUniqueAppsCheckbox, org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class, "IngestSettingsPanel.flagUniqueAppsCheckbox.text")); // NOI18N
81
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()
87 .addContainerGap()
88 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
89 .addComponent(ingestSettingsLabel)
90 .addGroup(layout.createSequentialGroup()
91 .addGap(10, 10, 10)
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))
98 );
99 layout.setVerticalGroup(
100 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
101 .addGroup(layout.createSequentialGroup()
102 .addContainerGap()
103 .addComponent(ingestSettingsLabel)
104 .addGap(9, 9, 9)
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))
113 );
114 }// </editor-fold>//GEN-END:initComponents
115
116 // Variables declaration - do not modify//GEN-BEGIN:variables
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;
122 // End of variables declaration//GEN-END:variables
123
124}

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.