Autopsy  4.10.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
SearchHit.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2019 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.keywordsearch.multicase;
20 
21 import javax.annotation.concurrent.Immutable;
22 
26 @Immutable
27 final class SearchHit {
28 
29  private final String caseDisplayName;
30  private final String caseDirectoryPath;
31  private final String dataSourceName;
32  private final SourceType sourceType;
33  private final String sourceName;
34  private final String sourcePath;
35 
52  SearchHit(String caseDisplayName, String caseDirectoryPath, String dataSourceName, SourceType sourceType, String sourceName, String sourcePath) {
53  this.caseDisplayName = caseDisplayName;
54  this.caseDirectoryPath = caseDirectoryPath;
55  this.dataSourceName = dataSourceName;
56  this.sourceType = sourceType;
57  this.sourceName = sourceName;
58  this.sourcePath = sourcePath;
59  }
60 
66  String getCaseDisplayName() {
67  return this.caseDisplayName;
68  }
69 
75  String getCaseDirectoryPath() {
76  return this.caseDirectoryPath;
77  }
78 
84  String getDataSourceName() {
85  return this.dataSourceName;
86  }
87 
93  SourceType getSourceType() {
94  return this.sourceType;
95  }
96 
103  String getSourceName() {
104  return this.sourceName;
105  }
106 
113  String getSourcePath() {
114  return this.sourcePath;
115  }
116 
120  enum SourceType {
121  FILE("File"),
122  LOCAL_FILE("Local File"),
123  ARTIFACT("Artifact"),
124  REPORT("Report");
125 
126  private final String displayName;
127 
128  private SourceType(String displayName) {
129  this.displayName = displayName;
130  }
131 
132  String getDisplayName() {
133  return this.displayName;
134  }
135  }
136 
137 }

Copyright © 2012-2018 Basis Technology. Generated on: Fri Mar 22 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.