Autopsy  4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
FilesIdentifierIngestJobSettings.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2014 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.modules.interestingitems;
20 
21 import java.util.ArrayList;
22 import java.util.HashSet;
23 import java.util.List;
24 import java.util.Set;
26 
30 final class FilesIdentifierIngestJobSettings implements IngestModuleIngestJobSettings {
31 
32  private static final long serialVersionUID = 1L;
33  private Set<String> enabledFilesSetNames = new HashSet<>();
34  private Set<String> disabledFilesSetNames = new HashSet<>();
35 
43  FilesIdentifierIngestJobSettings(List<String> enabledFilesSetNames) {
44  this(enabledFilesSetNames, new ArrayList<>());
45  }
46 
56  FilesIdentifierIngestJobSettings(List<String> enabledFilesSetNames, List<String> disabledFilesSetNames) {
57  this.enabledFilesSetNames = new HashSet<>(enabledFilesSetNames);
58  this.disabledFilesSetNames = new HashSet<>(disabledFilesSetNames);
59  }
60 
64  @Override
65  public long getVersionNumber() {
66  return FilesIdentifierIngestJobSettings.serialVersionUID;
67  }
68 
78  boolean interestingFilesSetIsEnabled(String filesSetName) {
79  return !(this.disabledFilesSetNames.contains(filesSetName));
80  }
81 
88  List<String> getNamesOfEnabledInterestingFilesSets() {
89  return new ArrayList<>(this.enabledFilesSetNames);
90  }
91 
98  List<String> getNamesOfDisabledInterestingFilesSets() {
99  return new ArrayList<>(disabledFilesSetNames);
100  }
101 
102 }

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