mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Hiding columns when checkbox is selected.
This commit is contained in:
parent
e11e421a69
commit
d74f496a09
@ -22,6 +22,7 @@ import java.util.List;
|
|||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
||||||
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.autopsy.datamodel.DisplayableItemNodeVisitor;
|
import org.sleuthkit.autopsy.datamodel.DisplayableItemNodeVisitor;
|
||||||
import org.sleuthkit.autopsy.datamodel.FileNode;
|
import org.sleuthkit.autopsy.datamodel.FileNode;
|
||||||
import org.sleuthkit.autopsy.datamodel.NodeProperty;
|
import org.sleuthkit.autopsy.datamodel.NodeProperty;
|
||||||
@ -84,10 +85,12 @@ public class CaseDBCommonAttributeInstanceNode extends FileNode {
|
|||||||
final String NO_DESCR = Bundle.CommonFilesSearchResultsViewerTable_noDescText();
|
final String NO_DESCR = Bundle.CommonFilesSearchResultsViewerTable_noDescText();
|
||||||
|
|
||||||
sheetSet.put(new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_filesColLbl(), Bundle.CommonFilesSearchResultsViewerTable_filesColLbl(), NO_DESCR, this.getContent().getName()));
|
sheetSet.put(new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_filesColLbl(), Bundle.CommonFilesSearchResultsViewerTable_filesColLbl(), NO_DESCR, this.getContent().getName()));
|
||||||
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
|
||||||
this.addScoreProperty(sheetSet, tags);
|
this.addScoreProperty(sheetSet, tags);
|
||||||
this.addCommentProperty(sheetSet, tags, correlationAttribute);
|
if (UserPreferences.hideExaminerNotifications() == false) {
|
||||||
this.addCountProperty(sheetSet, correlationAttribute);
|
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
||||||
|
this.addCommentProperty(sheetSet, tags, correlationAttribute);
|
||||||
|
this.addCountProperty(sheetSet, correlationAttribute);
|
||||||
|
}
|
||||||
sheetSet.put(new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), NO_DESCR, this.getContent().getParentPath()));
|
sheetSet.put(new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), Bundle.CommonFilesSearchResultsViewerTable_pathColLbl(), NO_DESCR, this.getContent().getParentPath()));
|
||||||
sheetSet.put(new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_hashsetHitsColLbl(), Bundle.CommonFilesSearchResultsViewerTable_hashsetHitsColLbl(), NO_DESCR, getHashSetHitsCsvList(this.getContent())));
|
sheetSet.put(new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_hashsetHitsColLbl(), Bundle.CommonFilesSearchResultsViewerTable_hashsetHitsColLbl(), NO_DESCR, getHashSetHitsCsvList(this.getContent())));
|
||||||
sheetSet.put(new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), NO_DESCR, this.getDataSource()));
|
sheetSet.put(new NodeProperty<>(Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), Bundle.CommonFilesSearchResultsViewerTable_dataSourceColLbl(), NO_DESCR, this.getDataSource()));
|
||||||
|
@ -24,6 +24,7 @@ import java.util.logging.Level;
|
|||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
||||||
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
import org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode;
|
import org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode;
|
||||||
import org.sleuthkit.autopsy.datamodel.NodeProperty;
|
import org.sleuthkit.autopsy.datamodel.NodeProperty;
|
||||||
@ -68,10 +69,12 @@ final class RelationshipNode extends BlackboardArtifactNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sheetSet.put(new NodeProperty<>("Type", "Type", "Type", getDisplayName()));
|
sheetSet.put(new NodeProperty<>("Type", "Type", "Type", getDisplayName()));
|
||||||
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
|
||||||
addScoreProperty(sheetSet, tags);
|
addScoreProperty(sheetSet, tags);
|
||||||
addCommentProperty(sheetSet, tags, correlationAttribute);
|
if (UserPreferences.hideExaminerNotifications() == false) {
|
||||||
addCountProperty(sheetSet, correlationAttribute);
|
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
||||||
|
addCommentProperty(sheetSet, tags, correlationAttribute);
|
||||||
|
addCountProperty(sheetSet, correlationAttribute);
|
||||||
|
}
|
||||||
final BlackboardArtifact artifact = getArtifact();
|
final BlackboardArtifact artifact = getArtifact();
|
||||||
BlackboardArtifact.ARTIFACT_TYPE fromID = BlackboardArtifact.ARTIFACT_TYPE.fromID(getArtifact().getArtifactTypeID());
|
BlackboardArtifact.ARTIFACT_TYPE fromID = BlackboardArtifact.ARTIFACT_TYPE.fromID(getArtifact().getArtifactTypeID());
|
||||||
if (null != fromID) {
|
if (null != fromID) {
|
||||||
|
@ -37,6 +37,7 @@ import org.openide.nodes.Sheet;
|
|||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
import org.openide.util.lookup.ServiceProvider;
|
import org.openide.util.lookup.ServiceProvider;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
||||||
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer;
|
import org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer;
|
||||||
import org.sleuthkit.autopsy.corecomponents.DataResultPanel;
|
import org.sleuthkit.autopsy.corecomponents.DataResultPanel;
|
||||||
import org.sleuthkit.autopsy.corecomponents.TableFilterNode;
|
import org.sleuthkit.autopsy.corecomponents.TableFilterNode;
|
||||||
@ -729,10 +730,12 @@ public class MessageContentViewer extends javax.swing.JPanel implements DataCont
|
|||||||
|
|
||||||
AbstractFile file = getContent();
|
AbstractFile file = getContent();
|
||||||
sheetSet.put(new NodeProperty<>("Name", "Name", "Name", file.getName()));
|
sheetSet.put(new NodeProperty<>("Name", "Name", "Name", file.getName()));
|
||||||
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
|
||||||
addScoreProperty(sheetSet, tags);
|
addScoreProperty(sheetSet, tags);
|
||||||
addCommentProperty(sheetSet, tags, correlationAttribute);
|
if (UserPreferences.hideExaminerNotifications() == false) {
|
||||||
addCountProperty(sheetSet, correlationAttribute);
|
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
||||||
|
addCommentProperty(sheetSet, tags, correlationAttribute);
|
||||||
|
addCountProperty(sheetSet, correlationAttribute);
|
||||||
|
}
|
||||||
sheetSet.put(new NodeProperty<>("Size", "Size", "Size", file.getSize()));
|
sheetSet.put(new NodeProperty<>("Size", "Size", "Size", file.getSize()));
|
||||||
sheetSet.put(new NodeProperty<>("Mime Type", "Mime Type", "Mime Type", StringUtils.defaultString(file.getMIMEType())));
|
sheetSet.put(new NodeProperty<>("Mime Type", "Mime Type", "Mime Type", StringUtils.defaultString(file.getMIMEType())));
|
||||||
sheetSet.put(new NodeProperty<>("Known", "Known", "Known", file.getKnown().getName()));
|
sheetSet.put(new NodeProperty<>("Known", "Known", "Known", file.getKnown().getName()));
|
||||||
|
@ -71,6 +71,7 @@ public final class UserPreferences {
|
|||||||
private static final int LOG_FILE_NUM_INT = 10;
|
private static final int LOG_FILE_NUM_INT = 10;
|
||||||
public static final String GROUP_ITEMS_IN_TREE_BY_DATASOURCE = "GroupItemsInTreeByDataSource"; //NON-NLS
|
public static final String GROUP_ITEMS_IN_TREE_BY_DATASOURCE = "GroupItemsInTreeByDataSource"; //NON-NLS
|
||||||
public static final String SHOW_ONLY_CURRENT_USER_TAGS = "ShowOnlyCurrentUserTags";
|
public static final String SHOW_ONLY_CURRENT_USER_TAGS = "ShowOnlyCurrentUserTags";
|
||||||
|
public static final String HIDE_EXAMINER_NOTIFICATIONS = "HideExaminerNotifications";
|
||||||
|
|
||||||
// Prevent instantiation.
|
// Prevent instantiation.
|
||||||
private UserPreferences() {
|
private UserPreferences() {
|
||||||
@ -220,6 +221,21 @@ public final class UserPreferences {
|
|||||||
preferences.putBoolean(SHOW_ONLY_CURRENT_USER_TAGS, value);
|
preferences.putBoolean(SHOW_ONLY_CURRENT_USER_TAGS, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* //DLG:
|
||||||
|
*/
|
||||||
|
public static boolean hideExaminerNotifications() {
|
||||||
|
return preferences.getBoolean(HIDE_EXAMINER_NOTIFICATIONS, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* //DLG:
|
||||||
|
*/
|
||||||
|
public static void setHideExaminerNotifications(boolean value) {
|
||||||
|
preferences.putBoolean(HIDE_EXAMINER_NOTIFICATIONS, value);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reads persisted case database connection info.
|
* Reads persisted case database connection info.
|
||||||
*
|
*
|
||||||
|
@ -188,3 +188,4 @@ ViewPreferencesPanel.dataSourcesHideSlackCheckbox.text=Data Sources area (the di
|
|||||||
ViewPreferencesPanel.viewsHideSlackCheckbox.text=Views area
|
ViewPreferencesPanel.viewsHideSlackCheckbox.text=Views area
|
||||||
ViewPreferencesPanel.currentSessionSettingsPanel.border.title=Current Session Settings
|
ViewPreferencesPanel.currentSessionSettingsPanel.border.title=Current Session Settings
|
||||||
ViewPreferencesPanel.hideRejectedResultsCheckbox.text=Hide rejected results
|
ViewPreferencesPanel.hideRejectedResultsCheckbox.text=Hide rejected results
|
||||||
|
ViewPreferencesPanel.hideExaminerNotificationsCheckbox.text=Hide examiner notifications
|
||||||
|
@ -54,12 +54,12 @@
|
|||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Component id="globalSettingsPanel" min="-2" pref="197" max="-2" attributes="0"/>
|
<Component id="globalSettingsPanel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Component id="currentCaseSettingsPanel" min="-2" max="-2" attributes="0"/>
|
<Component id="currentCaseSettingsPanel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Component id="currentSessionSettingsPanel" min="-2" max="-2" attributes="0"/>
|
<Component id="currentSessionSettingsPanel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
<EmptySpace pref="13" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@ -82,52 +82,63 @@
|
|||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="displayTimeLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Group type="102" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace min="10" pref="10" max="-2" attributes="0"/>
|
<Component id="hideExaminerNotificationsCheckbox" min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||||
<Component id="keepCurrentViewerRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="useBestViewerRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="useGMTTimeRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="useLocalTimeRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
</Group>
|
||||||
<Component id="selectFileLabel" min="-2" max="-2" attributes="0"/>
|
<Group type="102" alignment="0" attributes="0">
|
||||||
</Group>
|
<Component id="hideOtherUsersTagsCheckbox" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace type="separate" min="-2" max="-2" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
</Group>
|
||||||
<Component id="hideOtherUsersTagsCheckbox" min="-2" max="-2" attributes="0"/>
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Component id="hideKnownFilesLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
|
<Component id="hideKnownFilesLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="103" alignment="1" groupAlignment="0" attributes="0">
|
<Group type="103" alignment="0" groupAlignment="1" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="103" alignment="1" groupAlignment="0" attributes="0">
|
||||||
<EmptySpace min="-2" pref="10" max="-2" attributes="0"/>
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<EmptySpace min="-2" pref="10" max="-2" attributes="0"/>
|
||||||
<Component id="dataSourcesHideSlackCheckbox" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="viewsHideSlackCheckbox" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="dataSourcesHideSlackCheckbox" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="viewsHideSlackCheckbox" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
<Component id="hideSlackFilesLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Group type="102" alignment="1" attributes="0">
|
||||||
|
<EmptySpace min="-2" pref="10" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Component id="dataSourcesHideKnownCheckbox" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="viewsHideKnownCheckbox" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<Component id="hideSlackFilesLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<EmptySpace min="-2" pref="27" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" pref="10" max="-2" attributes="0"/>
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Component id="displayTimeLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="dataSourcesHideKnownCheckbox" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="selectFileLabel" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="viewsHideKnownCheckbox" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<EmptySpace min="10" pref="10" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Component id="keepCurrentViewerRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="useBestViewerRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="useGMTTimeRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="useLocalTimeRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
|
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace pref="29" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Component id="hideKnownFilesLabel" min="-2" max="-2" attributes="0"/>
|
<Component id="hideKnownFilesLabel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="dataSourcesHideKnownCheckbox" min="-2" max="-2" attributes="0"/>
|
<Component id="dataSourcesHideKnownCheckbox" min="-2" max="-2" attributes="0"/>
|
||||||
@ -140,7 +151,7 @@
|
|||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="viewsHideSlackCheckbox" min="-2" max="-2" attributes="0"/>
|
<Component id="viewsHideSlackCheckbox" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Component id="selectFileLabel" min="-2" max="-2" attributes="0"/>
|
<Component id="selectFileLabel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="useBestViewerRadioButton" min="-2" max="-2" attributes="0"/>
|
<Component id="useBestViewerRadioButton" min="-2" max="-2" attributes="0"/>
|
||||||
@ -156,7 +167,8 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Component id="hideOtherUsersTagsCheckbox" min="-2" max="-2" attributes="0"/>
|
<Component id="hideOtherUsersTagsCheckbox" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="hideExaminerNotificationsCheckbox" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@ -286,6 +298,16 @@
|
|||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="hideOtherUsersTagsCheckboxActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="hideOtherUsersTagsCheckboxActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
|
<Component class="javax.swing.JCheckBox" name="hideExaminerNotificationsCheckbox">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
|
<ResourceString bundle="org/sleuthkit/autopsy/corecomponents/Bundle.properties" key="ViewPreferencesPanel.hideExaminerNotificationsCheckbox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="hideExaminerNotificationsCheckboxActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
<Container class="javax.swing.JPanel" name="currentCaseSettingsPanel">
|
<Container class="javax.swing.JPanel" name="currentCaseSettingsPanel">
|
||||||
|
@ -61,12 +61,15 @@ public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
|
|||||||
dataSourcesHideSlackCheckbox.setSelected(UserPreferences.hideSlackFilesInDataSourcesTree());
|
dataSourcesHideSlackCheckbox.setSelected(UserPreferences.hideSlackFilesInDataSourcesTree());
|
||||||
viewsHideSlackCheckbox.setSelected(UserPreferences.hideSlackFilesInViewsTree());
|
viewsHideSlackCheckbox.setSelected(UserPreferences.hideSlackFilesInViewsTree());
|
||||||
|
|
||||||
|
hideOtherUsersTagsCheckbox.setSelected(UserPreferences.showOnlyCurrentUserTags());
|
||||||
|
hideExaminerNotificationsCheckbox.setSelected(UserPreferences.hideExaminerNotifications());
|
||||||
|
|
||||||
|
|
||||||
// Current Case Settings
|
// Current Case Settings
|
||||||
boolean caseIsOpen = Case.isCaseOpen();
|
boolean caseIsOpen = Case.isCaseOpen();
|
||||||
currentCaseSettingsPanel.setEnabled(caseIsOpen);
|
currentCaseSettingsPanel.setEnabled(caseIsOpen);
|
||||||
groupByDataSourceCheckbox.setEnabled(caseIsOpen);
|
groupByDataSourceCheckbox.setEnabled(caseIsOpen);
|
||||||
|
|
||||||
hideOtherUsersTagsCheckbox.setSelected(UserPreferences.showOnlyCurrentUserTags());
|
|
||||||
groupByDataSourceCheckbox.setSelected(Objects.equals(CasePreferences.getGroupItemsInTreeByDataSource(), true));
|
groupByDataSourceCheckbox.setSelected(Objects.equals(CasePreferences.getGroupItemsInTreeByDataSource(), true));
|
||||||
|
|
||||||
// Current Session Settings
|
// Current Session Settings
|
||||||
@ -82,6 +85,7 @@ public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
|
|||||||
UserPreferences.setHideSlackFilesInDataSourcesTree(dataSourcesHideSlackCheckbox.isSelected());
|
UserPreferences.setHideSlackFilesInDataSourcesTree(dataSourcesHideSlackCheckbox.isSelected());
|
||||||
UserPreferences.setHideSlackFilesInViewsTree(viewsHideSlackCheckbox.isSelected());
|
UserPreferences.setHideSlackFilesInViewsTree(viewsHideSlackCheckbox.isSelected());
|
||||||
UserPreferences.setShowOnlyCurrentUserTags(hideOtherUsersTagsCheckbox.isSelected());
|
UserPreferences.setShowOnlyCurrentUserTags(hideOtherUsersTagsCheckbox.isSelected());
|
||||||
|
UserPreferences.setHideExaminerNotifications(hideExaminerNotificationsCheckbox.isSelected());
|
||||||
|
|
||||||
storeGroupItemsInTreeByDataSource();
|
storeGroupItemsInTreeByDataSource();
|
||||||
|
|
||||||
@ -127,6 +131,7 @@ public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
|
|||||||
useLocalTimeRadioButton = new javax.swing.JRadioButton();
|
useLocalTimeRadioButton = new javax.swing.JRadioButton();
|
||||||
useGMTTimeRadioButton = new javax.swing.JRadioButton();
|
useGMTTimeRadioButton = new javax.swing.JRadioButton();
|
||||||
hideOtherUsersTagsCheckbox = new javax.swing.JCheckBox();
|
hideOtherUsersTagsCheckbox = new javax.swing.JCheckBox();
|
||||||
|
hideExaminerNotificationsCheckbox = new javax.swing.JCheckBox();
|
||||||
currentCaseSettingsPanel = new javax.swing.JPanel();
|
currentCaseSettingsPanel = new javax.swing.JPanel();
|
||||||
groupByDataSourceCheckbox = new javax.swing.JCheckBox();
|
groupByDataSourceCheckbox = new javax.swing.JCheckBox();
|
||||||
currentSessionSettingsPanel = new javax.swing.JPanel();
|
currentSessionSettingsPanel = new javax.swing.JPanel();
|
||||||
@ -209,6 +214,13 @@ public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(hideExaminerNotificationsCheckbox, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.hideExaminerNotificationsCheckbox.text")); // NOI18N
|
||||||
|
hideExaminerNotificationsCheckbox.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
hideExaminerNotificationsCheckboxActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
javax.swing.GroupLayout globalSettingsPanelLayout = new javax.swing.GroupLayout(globalSettingsPanel);
|
javax.swing.GroupLayout globalSettingsPanelLayout = new javax.swing.GroupLayout(globalSettingsPanel);
|
||||||
globalSettingsPanel.setLayout(globalSettingsPanelLayout);
|
globalSettingsPanel.setLayout(globalSettingsPanelLayout);
|
||||||
globalSettingsPanelLayout.setHorizontalGroup(
|
globalSettingsPanelLayout.setHorizontalGroup(
|
||||||
@ -216,38 +228,45 @@ public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
|
|||||||
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(displayTimeLabel)
|
|
||||||
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
||||||
.addGap(10, 10, 10)
|
.addComponent(hideExaminerNotificationsCheckbox)
|
||||||
|
.addGap(0, 0, Short.MAX_VALUE))
|
||||||
|
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
||||||
|
.addComponent(hideOtherUsersTagsCheckbox)
|
||||||
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
|
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
||||||
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(keepCurrentViewerRadioButton)
|
.addComponent(hideKnownFilesLabel)
|
||||||
.addComponent(useBestViewerRadioButton)
|
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
.addComponent(useGMTTimeRadioButton)
|
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(useLocalTimeRadioButton)))
|
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
||||||
.addComponent(selectFileLabel))
|
.addGap(10, 10, 10)
|
||||||
.addGap(18, 18, 18)
|
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addComponent(dataSourcesHideSlackCheckbox)
|
||||||
.addComponent(hideOtherUsersTagsCheckbox)
|
.addComponent(viewsHideSlackCheckbox)))
|
||||||
.addComponent(hideKnownFilesLabel)
|
.addComponent(hideSlackFilesLabel))
|
||||||
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
||||||
|
.addGap(10, 10, 10)
|
||||||
|
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
.addComponent(dataSourcesHideKnownCheckbox)
|
||||||
|
.addComponent(viewsHideKnownCheckbox)))))
|
||||||
|
.addGap(27, 27, 27)
|
||||||
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
.addComponent(displayTimeLabel)
|
||||||
|
.addComponent(selectFileLabel)
|
||||||
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
||||||
.addGap(10, 10, 10)
|
.addGap(10, 10, 10)
|
||||||
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(dataSourcesHideSlackCheckbox)
|
.addComponent(keepCurrentViewerRadioButton)
|
||||||
.addComponent(viewsHideSlackCheckbox)))
|
.addComponent(useBestViewerRadioButton)
|
||||||
.addComponent(hideSlackFilesLabel))
|
.addComponent(useGMTTimeRadioButton)
|
||||||
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
.addComponent(useLocalTimeRadioButton))))
|
||||||
.addGap(10, 10, 10)
|
.addGap(20, 20, 20))))
|
||||||
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
||||||
.addComponent(dataSourcesHideKnownCheckbox)
|
|
||||||
.addComponent(viewsHideKnownCheckbox)))))
|
|
||||||
.addContainerGap(29, Short.MAX_VALUE))
|
|
||||||
);
|
);
|
||||||
globalSettingsPanelLayout.setVerticalGroup(
|
globalSettingsPanelLayout.setVerticalGroup(
|
||||||
globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
.addGroup(globalSettingsPanelLayout.createSequentialGroup()
|
||||||
.addComponent(hideKnownFilesLabel)
|
.addComponent(hideKnownFilesLabel)
|
||||||
@ -275,7 +294,8 @@ public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
|
|||||||
.addComponent(useGMTTimeRadioButton)))
|
.addComponent(useGMTTimeRadioButton)))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(hideOtherUsersTagsCheckbox)
|
.addComponent(hideOtherUsersTagsCheckbox)
|
||||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addComponent(hideExaminerNotificationsCheckbox))
|
||||||
);
|
);
|
||||||
|
|
||||||
currentCaseSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.currentCaseSettingsPanel.border.title"))); // NOI18N
|
currentCaseSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.currentCaseSettingsPanel.border.title"))); // NOI18N
|
||||||
@ -343,12 +363,12 @@ public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
|
|||||||
viewPreferencesPanelLayout.setVerticalGroup(
|
viewPreferencesPanelLayout.setVerticalGroup(
|
||||||
viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(viewPreferencesPanelLayout.createSequentialGroup()
|
.addGroup(viewPreferencesPanelLayout.createSequentialGroup()
|
||||||
.addComponent(globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addContainerGap(13, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
|
|
||||||
viewPreferencesScrollPane.setViewportView(viewPreferencesPanel);
|
viewPreferencesScrollPane.setViewportView(viewPreferencesPanel);
|
||||||
@ -461,6 +481,14 @@ public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
|
|||||||
}
|
}
|
||||||
}//GEN-LAST:event_hideRejectedResultsCheckboxActionPerformed
|
}//GEN-LAST:event_hideRejectedResultsCheckboxActionPerformed
|
||||||
|
|
||||||
|
private void hideExaminerNotificationsCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hideExaminerNotificationsCheckboxActionPerformed
|
||||||
|
if (immediateUpdates) {
|
||||||
|
UserPreferences.setHideExaminerNotifications(hideExaminerNotificationsCheckbox.isSelected());
|
||||||
|
} else {
|
||||||
|
firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
|
||||||
|
}
|
||||||
|
}//GEN-LAST:event_hideExaminerNotificationsCheckboxActionPerformed
|
||||||
|
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JPanel currentCaseSettingsPanel;
|
private javax.swing.JPanel currentCaseSettingsPanel;
|
||||||
@ -470,6 +498,7 @@ public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
|
|||||||
private javax.swing.JLabel displayTimeLabel;
|
private javax.swing.JLabel displayTimeLabel;
|
||||||
private javax.swing.JPanel globalSettingsPanel;
|
private javax.swing.JPanel globalSettingsPanel;
|
||||||
private javax.swing.JCheckBox groupByDataSourceCheckbox;
|
private javax.swing.JCheckBox groupByDataSourceCheckbox;
|
||||||
|
private javax.swing.JCheckBox hideExaminerNotificationsCheckbox;
|
||||||
private javax.swing.JLabel hideKnownFilesLabel;
|
private javax.swing.JLabel hideKnownFilesLabel;
|
||||||
private javax.swing.JCheckBox hideOtherUsersTagsCheckbox;
|
private javax.swing.JCheckBox hideOtherUsersTagsCheckbox;
|
||||||
private javax.swing.JCheckBox hideRejectedResultsCheckbox;
|
private javax.swing.JCheckBox hideRejectedResultsCheckbox;
|
||||||
|
@ -24,6 +24,7 @@ import java.util.Map;
|
|||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
||||||
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
import org.sleuthkit.datamodel.AbstractFile;
|
import org.sleuthkit.datamodel.AbstractFile;
|
||||||
import org.sleuthkit.datamodel.ContentTag;
|
import org.sleuthkit.datamodel.ContentTag;
|
||||||
@ -82,12 +83,14 @@ public abstract class AbstractFsContentNode<T extends AbstractFile> extends Abst
|
|||||||
AbstractFilePropertyType.NAME.toString(),
|
AbstractFilePropertyType.NAME.toString(),
|
||||||
NO_DESCR,
|
NO_DESCR,
|
||||||
getName()));
|
getName()));
|
||||||
//add the cr status property before the propertyMap to ensure it is early in column order
|
//add the status property before the propertyMap to ensure it is early in column order
|
||||||
addScoreProperty(sheetSet, tags);
|
addScoreProperty(sheetSet, tags);
|
||||||
//add the comment property before the propertyMap to ensure it is early in column order
|
if (UserPreferences.hideExaminerNotifications() == false) {
|
||||||
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
//add the comment property before the propertyMap to ensure it is early in column order
|
||||||
addCommentProperty(sheetSet, tags, correlationAttribute);
|
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
||||||
addCountProperty(sheetSet, correlationAttribute);
|
addCommentProperty(sheetSet, tags, correlationAttribute);
|
||||||
|
addCountProperty(sheetSet, correlationAttribute);
|
||||||
|
}
|
||||||
for (AbstractFilePropertyType propType : AbstractFilePropertyType.values()) {
|
for (AbstractFilePropertyType propType : AbstractFilePropertyType.values()) {
|
||||||
final String propString = propType.toString();
|
final String propString = propType.toString();
|
||||||
sheetSet.put(new NodeProperty<>(propString, propString, NO_DESCR, map.get(propString)));
|
sheetSet.put(new NodeProperty<>(propString, propString, NO_DESCR, map.get(propString)));
|
||||||
|
@ -55,6 +55,7 @@ import org.sleuthkit.autopsy.centralrepository.datamodel.EamArtifactUtil;
|
|||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDb;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbException;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil;
|
||||||
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.Score;
|
import org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.Score;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
|
import org.sleuthkit.autopsy.coreutils.MessageNotifyUtil;
|
||||||
@ -350,10 +351,12 @@ public class BlackboardArtifactNode extends AbstractContentNode<BlackboardArtifa
|
|||||||
NbBundle.getMessage(BlackboardArtifactNode.class, "BlackboardArtifactNode.createSheet.srcFile.displayName"),
|
NbBundle.getMessage(BlackboardArtifactNode.class, "BlackboardArtifactNode.createSheet.srcFile.displayName"),
|
||||||
NO_DESCR,
|
NO_DESCR,
|
||||||
this.getSourceName()));
|
this.getSourceName()));
|
||||||
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
|
||||||
addScoreProperty(sheetSet, tags);
|
addScoreProperty(sheetSet, tags);
|
||||||
addCommentProperty(sheetSet, tags, correlationAttribute);
|
if (UserPreferences.hideExaminerNotifications() == false) {
|
||||||
addCountProperty(sheetSet, correlationAttribute);
|
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
||||||
|
addCommentProperty(sheetSet, tags, correlationAttribute);
|
||||||
|
addCountProperty(sheetSet, correlationAttribute);
|
||||||
|
}
|
||||||
if (artifact.getArtifactTypeID() == ARTIFACT_TYPE.TSK_INTERESTING_ARTIFACT_HIT.getTypeID()) {
|
if (artifact.getArtifactTypeID() == ARTIFACT_TYPE.TSK_INTERESTING_ARTIFACT_HIT.getTypeID()) {
|
||||||
try {
|
try {
|
||||||
BlackboardAttribute attribute = artifact.getAttribute(new BlackboardAttribute.Type(ATTRIBUTE_TYPE.TSK_ASSOCIATED_ARTIFACT));
|
BlackboardAttribute attribute = artifact.getAttribute(new BlackboardAttribute.Type(ATTRIBUTE_TYPE.TSK_ASSOCIATED_ARTIFACT));
|
||||||
|
@ -32,6 +32,7 @@ import org.openide.util.Utilities;
|
|||||||
import org.sleuthkit.autopsy.actions.AddContentTagAction;
|
import org.sleuthkit.autopsy.actions.AddContentTagAction;
|
||||||
import org.sleuthkit.autopsy.actions.DeleteFileContentTagAction;
|
import org.sleuthkit.autopsy.actions.DeleteFileContentTagAction;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
||||||
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.autopsy.coreutils.ContextMenuExtensionPoint;
|
import org.sleuthkit.autopsy.coreutils.ContextMenuExtensionPoint;
|
||||||
import org.sleuthkit.autopsy.directorytree.ExternalViewerAction;
|
import org.sleuthkit.autopsy.directorytree.ExternalViewerAction;
|
||||||
import org.sleuthkit.autopsy.directorytree.ExtractAction;
|
import org.sleuthkit.autopsy.directorytree.ExtractAction;
|
||||||
@ -90,10 +91,12 @@ public class LayoutFileNode extends AbstractAbstractFileNode<LayoutFile> {
|
|||||||
NbBundle.getMessage(this.getClass(), "LayoutFileNode.createSheet.name.displayName"),
|
NbBundle.getMessage(this.getClass(), "LayoutFileNode.createSheet.name.displayName"),
|
||||||
NbBundle.getMessage(this.getClass(), "LayoutFileNode.createSheet.name.desc"),
|
NbBundle.getMessage(this.getClass(), "LayoutFileNode.createSheet.name.desc"),
|
||||||
getName()));
|
getName()));
|
||||||
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
|
||||||
addScoreProperty(sheetSet, tags);
|
addScoreProperty(sheetSet, tags);
|
||||||
addCommentProperty(sheetSet, tags, correlationAttribute);
|
if (UserPreferences.hideExaminerNotifications() == false) {
|
||||||
addCountProperty(sheetSet, correlationAttribute);
|
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
||||||
|
addCommentProperty(sheetSet, tags, correlationAttribute);
|
||||||
|
addCountProperty(sheetSet, correlationAttribute);
|
||||||
|
}
|
||||||
final String NO_DESCR = NbBundle.getMessage(this.getClass(), "LayoutFileNode.createSheet.noDescr.text");
|
final String NO_DESCR = NbBundle.getMessage(this.getClass(), "LayoutFileNode.createSheet.noDescr.text");
|
||||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||||
sheetSet.put(new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue()));
|
sheetSet.put(new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue()));
|
||||||
|
@ -24,6 +24,7 @@ import java.util.Map;
|
|||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
||||||
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.datamodel.ContentTag;
|
import org.sleuthkit.datamodel.ContentTag;
|
||||||
import org.sleuthkit.datamodel.LocalDirectory;
|
import org.sleuthkit.datamodel.LocalDirectory;
|
||||||
|
|
||||||
@ -63,10 +64,12 @@ public class LocalDirectoryNode extends SpecialDirectoryNode {
|
|||||||
Bundle.LocalDirectoryNode_createSheet_name_displayName(),
|
Bundle.LocalDirectoryNode_createSheet_name_displayName(),
|
||||||
Bundle.LocalDirectoryNode_createSheet_name_desc(),
|
Bundle.LocalDirectoryNode_createSheet_name_desc(),
|
||||||
getName()));
|
getName()));
|
||||||
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
|
||||||
addScoreProperty(sheetSet, tags);
|
addScoreProperty(sheetSet, tags);
|
||||||
addCommentProperty(sheetSet, tags, correlationAttribute);
|
if (UserPreferences.hideExaminerNotifications() == false) {
|
||||||
addCountProperty(sheetSet, correlationAttribute);
|
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
||||||
|
addCommentProperty(sheetSet, tags, correlationAttribute);
|
||||||
|
addCountProperty(sheetSet, correlationAttribute);
|
||||||
|
}
|
||||||
// At present, a LocalDirectory will never be a datasource - the top level of a logical
|
// At present, a LocalDirectory will never be a datasource - the top level of a logical
|
||||||
// file set is a VirtualDirectory
|
// file set is a VirtualDirectory
|
||||||
Map<String, Object> map = new LinkedHashMap<>();
|
Map<String, Object> map = new LinkedHashMap<>();
|
||||||
|
@ -33,6 +33,7 @@ import org.openide.util.Utilities;
|
|||||||
import org.sleuthkit.autopsy.actions.AddContentTagAction;
|
import org.sleuthkit.autopsy.actions.AddContentTagAction;
|
||||||
import org.sleuthkit.autopsy.actions.DeleteFileContentTagAction;
|
import org.sleuthkit.autopsy.actions.DeleteFileContentTagAction;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
||||||
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.autopsy.coreutils.ContextMenuExtensionPoint;
|
import org.sleuthkit.autopsy.coreutils.ContextMenuExtensionPoint;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
import org.sleuthkit.autopsy.directorytree.ExternalViewerAction;
|
import org.sleuthkit.autopsy.directorytree.ExternalViewerAction;
|
||||||
@ -82,10 +83,12 @@ public class LocalFileNode extends AbstractAbstractFileNode<AbstractFile> {
|
|||||||
NbBundle.getMessage(this.getClass(), "LocalFileNode.createSheet.name.displayName"),
|
NbBundle.getMessage(this.getClass(), "LocalFileNode.createSheet.name.displayName"),
|
||||||
NbBundle.getMessage(this.getClass(), "LocalFileNode.createSheet.name.desc"),
|
NbBundle.getMessage(this.getClass(), "LocalFileNode.createSheet.name.desc"),
|
||||||
getName()));
|
getName()));
|
||||||
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
|
||||||
addScoreProperty(sheetSet, tags);
|
addScoreProperty(sheetSet, tags);
|
||||||
addCommentProperty(sheetSet, tags, correlationAttribute);
|
if (UserPreferences.hideExaminerNotifications() == false) {
|
||||||
addCountProperty(sheetSet, correlationAttribute);
|
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
||||||
|
addCommentProperty(sheetSet, tags, correlationAttribute);
|
||||||
|
addCountProperty(sheetSet, correlationAttribute);
|
||||||
|
}
|
||||||
final String NO_DESCR = NbBundle.getMessage(this.getClass(), "LocalFileNode.createSheet.noDescr.text");
|
final String NO_DESCR = NbBundle.getMessage(this.getClass(), "LocalFileNode.createSheet.noDescr.text");
|
||||||
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
||||||
sheetSet.put(new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue()));
|
sheetSet.put(new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue()));
|
||||||
|
@ -29,6 +29,7 @@ import org.openide.util.NbBundle;
|
|||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
||||||
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance;
|
||||||
|
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||||
import org.sleuthkit.datamodel.ContentTag;
|
import org.sleuthkit.datamodel.ContentTag;
|
||||||
import org.sleuthkit.datamodel.SleuthkitCase;
|
import org.sleuthkit.datamodel.SleuthkitCase;
|
||||||
@ -90,10 +91,12 @@ public class VirtualDirectoryNode extends SpecialDirectoryNode {
|
|||||||
NbBundle.getMessage(this.getClass(), "VirtualDirectoryNode.createSheet.name.desc"),
|
NbBundle.getMessage(this.getClass(), "VirtualDirectoryNode.createSheet.name.desc"),
|
||||||
getName()));
|
getName()));
|
||||||
if (!this.content.isDataSource()) {
|
if (!this.content.isDataSource()) {
|
||||||
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
|
||||||
addScoreProperty(sheetSet, tags);
|
addScoreProperty(sheetSet, tags);
|
||||||
addCommentProperty(sheetSet, tags, correlationAttribute);
|
if (UserPreferences.hideExaminerNotifications() == false) {
|
||||||
addCountProperty(sheetSet, correlationAttribute);
|
CorrelationAttributeInstance correlationAttribute = getCorrelationAttributeInstance();
|
||||||
|
addCommentProperty(sheetSet, tags, correlationAttribute);
|
||||||
|
addCountProperty(sheetSet, correlationAttribute);
|
||||||
|
}
|
||||||
Map<String, Object> map = new LinkedHashMap<>();
|
Map<String, Object> map = new LinkedHashMap<>();
|
||||||
fillPropertyMap(map, getContent());
|
fillPropertyMap(map, getContent());
|
||||||
|
|
||||||
|
@ -175,6 +175,7 @@ public final class DirectoryTreeTopComponent extends TopComponent implements Dat
|
|||||||
switch (evt.getKey()) {
|
switch (evt.getKey()) {
|
||||||
case UserPreferences.HIDE_KNOWN_FILES_IN_DATA_SRCS_TREE:
|
case UserPreferences.HIDE_KNOWN_FILES_IN_DATA_SRCS_TREE:
|
||||||
case UserPreferences.HIDE_SLACK_FILES_IN_DATA_SRCS_TREE:
|
case UserPreferences.HIDE_SLACK_FILES_IN_DATA_SRCS_TREE:
|
||||||
|
case UserPreferences.HIDE_EXAMINER_NOTIFICATIONS:
|
||||||
refreshContentTreeSafe();
|
refreshContentTreeSafe();
|
||||||
break;
|
break;
|
||||||
case UserPreferences.SHOW_ONLY_CURRENT_USER_TAGS:
|
case UserPreferences.SHOW_ONLY_CURRENT_USER_TAGS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user