Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Result.java
Go to the documentation of this file.
1 /*
2  * Autopsy
3  *
4  * Copyright 2020 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.discovery.search;
20 
21 import java.util.ArrayList;
22 import java.util.Collections;
23 import java.util.List;
24 import org.sleuthkit.datamodel.Content;
25 import org.sleuthkit.datamodel.TskCoreException;
26 import org.sleuthkit.datamodel.TskData;
27 
31 public abstract class Result {
32 
35  private final List<String> tagNames = new ArrayList<>();
36 
42  public abstract long getDataSourceObjectId();
43 
50  return frequency;
51  }
52 
58  public abstract TskData.FileKnown getKnown();
59 
63  final public void markAsPreviouslyNotableInCR() {
65  }
66 
73  return this.notabilityStatus;
74  }
75 
82  this.frequency = frequency;
83  }
84 
92  public abstract Content getDataSource() throws TskCoreException;
93 
99  public abstract SearchData.Type getType();
100 
106  public void addTagName(String tagName) {
107  if (!tagNames.contains(tagName)) {
108  tagNames.add(tagName);
109  }
110 
111  // Sort the list so the getTagNames() will be consistent regardless of the order added
112  Collections.sort(tagNames);
113  }
114 
120  public List<String> getTagNames() {
121  return Collections.unmodifiableList(tagNames);
122  }
123 }
abstract TskData.FileKnown getKnown()
final void setFrequency(SearchData.Frequency frequency)
Definition: Result.java:81
SearchData.PreviouslyNotable notabilityStatus
Definition: Result.java:34
final SearchData.PreviouslyNotable getPreviouslyNotableInCR()
Definition: Result.java:72

Copyright © 2012-2022 Basis Technology. Generated on: Sat Nov 26 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.