Autopsy 4.22.1
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 */
19package org.sleuthkit.autopsy.discovery.search;
20
21import java.util.ArrayList;
22import java.util.Collections;
23import java.util.List;
24import org.sleuthkit.datamodel.Content;
25import org.sleuthkit.datamodel.TskCoreException;
26import org.sleuthkit.datamodel.TskData;
27
31public 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() {
64 this.notabilityStatus = SearchData.PreviouslyNotable.PREVIOUSLY_NOTABLE;
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}
final SearchData.PreviouslyNotable getPreviouslyNotableInCR()
Definition Result.java:72
SearchData.PreviouslyNotable notabilityStatus
Definition Result.java:34
abstract TskData.FileKnown getKnown()
final void setFrequency(SearchData.Frequency frequency)
Definition Result.java:81

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.