Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Persona.java
Go to the documentation of this file.
1 /*
2  * Central Repository
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.centralrepository.datamodel;
20 
27 class Persona {
28 
32  public enum Confidence {
33  UNKNOWN(1, "Unknown"),
34  LOW(2, "Low confidence"),
35  MEDIUM(3, "Medium confidence"),
36  HIGH(4, "High confidence"),
37  DERIVED(5, "Derived directly");
38 
39  private final String name;
40  private final int level_id;
41 
42  Confidence(int level, String name) {
43  this.name = name;
44  this.level_id = level;
45 
46  }
47 
48  @Override
49  public String toString() {
50  return name;
51  }
52 
53  public int getLevel() {
54  return this.level_id;
55  }
56  }
57 
61  public enum PersonaStatus {
62 
63  UNKNOWN(1, "Unknown"),
64  ACTIVE(2, "Active"),
65  MERGED(3, "Merged"),
66  SPLIT(4, "Split"),
67  DELETED(5, "Deleted");
68 
69  private final String description;
70  private final int status_id;
71 
72  PersonaStatus(int status, String description) {
73  this.status_id = status;
74  this.description = description;
75  }
76 
77  @Override
78  public String toString() {
79  return description;
80  }
81 
82  public int getStatus() {
83  return this.status_id;
84  }
85  }
86 
87 }

Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.