3849 update copyright and comments

This commit is contained in:
William Schaefer 2021-07-27 13:09:42 -04:00
parent 28a011c3e9
commit 8d70a55315
6 changed files with 52 additions and 38 deletions

View File

@ -1,7 +1,7 @@
/* /*
* Autopsy Forensic Browser * Autopsy Forensic Browser
* *
* Copyright 2012-2019 Basis Technology Corp. * Copyright 2012-2021 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org * Contact: carrier <at> sleuthkit <dot> org
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,7 +1,7 @@
/* /*
* Autopsy Forensic Browser * Autopsy Forensic Browser
* *
* Copyright 2017-2019 Basis Technology Corp. * Copyright 2017-2021 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org * Contact: carrier <at> sleuthkit <dot> org
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,7 +1,7 @@
/* /*
* Autopsy Forensic Browser * Autopsy Forensic Browser
* *
* Copyright 2011 Basis Technology Corp. * Copyright 2011-2021 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org * Contact: carrier <at> sleuthkit <dot> org
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -48,6 +48,11 @@ class DataSourceFilter extends AbstractFileSearchFilter<DataSourcePanel> {
return this.getComponent().isSelected(); return this.getComponent().isSelected();
} }
/**
* Set the data source filter to select the specified data source initially.
*
* @param dataSourceId - The data source to select.
*/
void setSelectedDataSource(long dataSourceId) { void setSelectedDataSource(long dataSourceId) {
this.getComponent().setDataSourceSelected(dataSourceId); this.getComponent().setDataSourceSelected(dataSourceId);
} }

View File

@ -1,7 +1,7 @@
/* /*
* Autopsy Forensic Browser * Autopsy Forensic Browser
* *
* Copyright 2011-2018 Basis Technology Corp. * Copyright 2011-2021 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org * Contact: carrier <at> sleuthkit <dot> org
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
@ -48,7 +48,12 @@ final class FileSearchDialog extends javax.swing.JDialog {
}); });
} }
void setSelectedDataSourceFilter(long dataSourceId){ /**
* Set the data source filter to select the specified data source initially.
*
* @param dataSourceId - The data source to select.
*/
void setSelectedDataSourceFilter(long dataSourceId) {
fileSearchPanel1.setDataSourceFilter(dataSourceId); fileSearchPanel1.setDataSourceFilter(dataSourceId);
} }
@ -83,4 +88,3 @@ final class FileSearchDialog extends javax.swing.JDialog {
private org.sleuthkit.autopsy.filesearch.FileSearchPanel fileSearchPanel1; private org.sleuthkit.autopsy.filesearch.FileSearchPanel fileSearchPanel1;
// End of variables declaration//GEN-END:variables // End of variables declaration//GEN-END:variables
} }

View File

@ -1,7 +1,7 @@
/* /*
* Autopsy Forensic Browser * Autopsy Forensic Browser
* *
* Copyright 2011-2019 Basis Technology Corp. * Copyright 2011-2021 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org * Contact: carrier <at> sleuthkit <dot> org
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
@ -84,19 +84,19 @@ class FileSearchPanel extends javax.swing.JPanel {
label.setBorder(new EmptyBorder(0, 0, 10, 0)); label.setBorder(new EmptyBorder(0, 0, 10, 0));
JPanel panel1 = new JPanel(); JPanel panel1 = new JPanel();
panel1.setLayout(new GridLayout(1,2)); panel1.setLayout(new GridLayout(1, 2));
panel1.add(new JLabel("")); panel1.add(new JLabel(""));
JPanel panel2 = new JPanel(); JPanel panel2 = new JPanel();
panel2.setLayout(new GridLayout(1,2, 20, 0)); panel2.setLayout(new GridLayout(1, 2, 20, 0));
JPanel panel3 = new JPanel(); JPanel panel3 = new JPanel();
panel3.setLayout(new GridLayout(1,2, 20, 0)); panel3.setLayout(new GridLayout(1, 2, 20, 0));
JPanel panel4 = new JPanel(); JPanel panel4 = new JPanel();
panel4.setLayout(new GridLayout(1,2, 20, 0)); panel4.setLayout(new GridLayout(1, 2, 20, 0));
JPanel panel5 = new JPanel(); JPanel panel5 = new JPanel();
panel5.setLayout(new GridLayout(1,2, 20, 0)); panel5.setLayout(new GridLayout(1, 2, 20, 0));
// Create and add filter areas // Create and add filter areas
NameSearchFilter nameFilter = new NameSearchFilter(); NameSearchFilter nameFilter = new NameSearchFilter();
SizeSearchFilter sizeFilter = new SizeSearchFilter(); SizeSearchFilter sizeFilter = new SizeSearchFilter();
DateSearchFilter dateFilter = new DateSearchFilter(); DateSearchFilter dateFilter = new DateSearchFilter();
KnownStatusSearchFilter knowStatusFilter = new KnownStatusSearchFilter(); KnownStatusSearchFilter knowStatusFilter = new KnownStatusSearchFilter();
@ -104,9 +104,9 @@ class FileSearchPanel extends javax.swing.JPanel {
MimeTypeFilter mimeTypeFilter = new MimeTypeFilter(); MimeTypeFilter mimeTypeFilter = new MimeTypeFilter();
dataSourceFilter = new DataSourceFilter(); dataSourceFilter = new DataSourceFilter();
panel2.add(new FilterArea(NbBundle.getMessage(this.getClass(), "FileSearchPanel.filterTitle.name"),nameFilter)); panel2.add(new FilterArea(NbBundle.getMessage(this.getClass(), "FileSearchPanel.filterTitle.name"), nameFilter));
panel3.add(new FilterArea(NbBundle.getMessage(this.getClass(), "FileSearchPanel.filterTitle.metadata"),sizeFilter)); panel3.add(new FilterArea(NbBundle.getMessage(this.getClass(), "FileSearchPanel.filterTitle.metadata"), sizeFilter));
panel2.add(new FilterArea(NbBundle.getMessage(this.getClass(), "FileSearchPanel.filterTitle.metadata"), dateFilter)); panel2.add(new FilterArea(NbBundle.getMessage(this.getClass(), "FileSearchPanel.filterTitle.metadata"), dateFilter));
panel3.add(new FilterArea(NbBundle.getMessage(this.getClass(), "FileSearchPanel.filterTitle.knownStatus"), knowStatusFilter)); panel3.add(new FilterArea(NbBundle.getMessage(this.getClass(), "FileSearchPanel.filterTitle.knownStatus"), knowStatusFilter));
@ -146,7 +146,12 @@ class FileSearchPanel extends javax.swing.JPanel {
searchButton.setEnabled(isValidSearch()); searchButton.setEnabled(isValidSearch());
} }
void setDataSourceFilter(long dataSourceId){ /**
* Set the data source filter to select the specified data source initially.
*
* @param dataSourceId - The data source to select.
*/
void setDataSourceFilter(long dataSourceId) {
dataSourceFilter.setSelectedDataSource(dataSourceId); dataSourceFilter.setSelectedDataSource(dataSourceId);
} }
@ -205,10 +210,10 @@ class FileSearchPanel extends javax.swing.JPanel {
if (contentList.isEmpty()) { if (contentList.isEmpty()) {
Node emptyNode = new TableFilterNode(new EmptyNode(Bundle.FileSearchPanel_emptyNode_display_text()), true); Node emptyNode = new TableFilterNode(new EmptyNode(Bundle.FileSearchPanel_emptyNode_display_text()), true);
searchResultWin = DataResultTopComponent.createInstance(title, pathText, searchResultWin = DataResultTopComponent.createInstance(title, pathText,
emptyNode, 0); emptyNode, 0);
} else { } else {
searchResultWin = DataResultTopComponent.createInstance(title, pathText, searchResultWin = DataResultTopComponent.createInstance(title, pathText,
tableFilterNode, contentList.size()); tableFilterNode, contentList.size());
} }
searchResultWin.requestActive(); // make it the active top component searchResultWin.requestActive(); // make it the active top component