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;
 
   48     private List<Long> selectedDataSources;
 
   63     TableReportSettings(Map<BlackboardArtifact.Type, Boolean> artifactTypeSelections, Map<String, Boolean> tagNameSelections, 
boolean useTagsAndArtifactsLists, TableReportOption reportOption) {
 
   65         for (Map.Entry<BlackboardArtifact.Type, Boolean> entry : artifactTypeSelections.entrySet()) {
 
   66             if (entry.getValue()) {
 
   67                 artifactTypes.add(entry.getKey());
 
   73         for (Map.Entry<String, Boolean> entry : tagNameSelections.entrySet()) {
 
   74             if (entry.getValue() == 
true) {
 
   75                 tagNames.add(entry.getKey());
 
   79         this.reportOption = reportOption;
 
   80         this.useStoredTagsAndArtifactsLists = useTagsAndArtifactsLists;
 
   83     List<BlackboardArtifact.
Type> getArtifactSelections() {
 
   87     List<String> getTagSelections() {
 
   91     boolean useStoredTagsAndArtifactsLists() {
 
   92         return useStoredTagsAndArtifactsLists;
 
  100     TableReportOption getSelectedReportOption() {
 
  107     List<Long> getSelectedDataSources() {
 
  108         return selectedDataSources;
 
  114     void setSelectedDataSources(List<Long> selectedDataSources) {
 
  115         this.selectedDataSources = 
new ArrayList<>(selectedDataSources);