19 package org.sleuthkit.autopsy.report.infrastructure;
21 import java.io.Serializable;
22 import java.util.ArrayList;
23 import java.util.List;
32 final class TableReportSettings
implements Serializable {
37 enum TableReportOption {
40 SPECIFIC_TAGGED_RESULTS;
43 private static final long serialVersionUID = 1L;
44 private final List<BlackboardArtifact.Type> artifactTypes =
new ArrayList<>();
45 private final List<String> tagNames =
new ArrayList<>();
46 private final boolean useStoredTagsAndArtifactsLists;
47 private final TableReportOption reportOption;
62 TableReportSettings(Map<BlackboardArtifact.Type, Boolean> artifactTypeSelections, Map<String, Boolean> tagNameSelections,
boolean useTagsAndArtifactsLists, TableReportOption reportOption) {
64 for (Map.Entry<BlackboardArtifact.Type, Boolean> entry : artifactTypeSelections.entrySet()) {
65 if (entry.getValue()) {
66 artifactTypes.add(entry.getKey());
72 for (Map.Entry<String, Boolean> entry : tagNameSelections.entrySet()) {
73 if (entry.getValue() ==
true) {
74 tagNames.add(entry.getKey());
78 this.reportOption = reportOption;
79 this.useStoredTagsAndArtifactsLists = useTagsAndArtifactsLists;
82 List<BlackboardArtifact.Type> getArtifactSelections() {
86 List<String> getTagSelections() {
90 boolean useStoredTagsAndArtifactsLists() {
91 return useStoredTagsAndArtifactsLists;
99 TableReportOption getSelectedReportOption() {