Autopsy  4.17.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
DomainFilterPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy
3  *
4  * Copyright 2020 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  */
19 package org.sleuthkit.autopsy.discovery.ui;
20 
26 
30 public class DomainFilterPanel extends AbstractFiltersPanel {
31 
32  private static final long serialVersionUID = 1L;
33  private static final SearchData.Type TYPE = SearchData.Type.DOMAIN;
34 
39  public DomainFilterPanel() {
40  super();
42  addFilter(new DataSourceFilterPanel(), false, null, 0);
43  addFilter(new PreviouslyNotableFilterPanel(), false, null, 1);
44  addFilter(new KnownAccountTypeFilterPanel(), false, null, 1);
45  addFilter(new ArtifactTypeFilterPanel(), false, null, 1);
46  addFilter(new DateFilterPanel(), false, null, 1);
47  int[] pastOccurrencesIndices = null;
49  pastOccurrencesIndices = new int[]{2, 3, 4};
50  }
51  addFilter(new PastOccurrencesFilterPanel(TYPE), true, pastOccurrencesIndices, 0);
52  addPanelsToScrollPane(domainFiltersSplitPane);
53  setLastGroupingAttributeType(DiscoveryAttributes.GroupingAttributeType.LAST_ACTIVITY_DATE);
54  setLastSortingMethod(ResultsSorter.SortingMethod.BY_DOMAIN_NAME);
55  }
56 
62  @SuppressWarnings("unchecked")
63  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
64  private void initComponents() {
65 
66  javax.swing.JScrollPane domainFiltersScrollPane = new javax.swing.JScrollPane();
67  javax.swing.JPanel domainFiltersPanel = new javax.swing.JPanel();
68  domainFiltersSplitPane = new javax.swing.JSplitPane();
69 
70  setPreferredSize(new java.awt.Dimension(225, 70));
71  setLayout(new java.awt.BorderLayout());
72 
73  domainFiltersSplitPane.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(DomainFilterPanel.class, "DomainFilterPanel.domainFiltersSplitPane.border.title"))); // NOI18N
74  domainFiltersSplitPane.setResizeWeight(0.5);
75  domainFiltersSplitPane.setToolTipText(org.openide.util.NbBundle.getMessage(DomainFilterPanel.class, "DomainFilterPanel.domainFiltersSplitPane.toolTipText")); // NOI18N
76 
77  javax.swing.GroupLayout domainFiltersPanelLayout = new javax.swing.GroupLayout(domainFiltersPanel);
78  domainFiltersPanel.setLayout(domainFiltersPanelLayout);
79  domainFiltersPanelLayout.setHorizontalGroup(
80  domainFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
81  .addGroup(domainFiltersPanelLayout.createSequentialGroup()
82  .addGap(8, 8, 8)
83  .addComponent(domainFiltersSplitPane)
84  .addGap(8, 8, 8))
85  );
86  domainFiltersPanelLayout.setVerticalGroup(
87  domainFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
88  .addGroup(domainFiltersPanelLayout.createSequentialGroup()
89  .addGap(8, 8, 8)
90  .addComponent(domainFiltersSplitPane)
91  .addGap(8, 8, 8))
92  );
93 
94  domainFiltersScrollPane.setViewportView(domainFiltersPanel);
95 
96  add(domainFiltersScrollPane, java.awt.BorderLayout.CENTER);
97  }// </editor-fold>//GEN-END:initComponents
98 
99  @Override
100  SearchData.Type getType() {
101  return TYPE;
102  }
103 
104 
105  // Variables declaration - do not modify//GEN-BEGIN:variables
106  private javax.swing.JSplitPane domainFiltersSplitPane;
107  // End of variables declaration//GEN-END:variables
108 }

Copyright © 2012-2021 Basis Technology. Generated on: Tue Jan 19 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.