Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CentralRepoDbChoice.java
Go to the documentation of this file.
1 /*
2  * Central Repository
3  *
4  * Copyright 2015-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 
21 import org.openide.util.NbBundle.Messages;
22 
26 @Messages({
27  "CentralRepoDbChoice.Disabled.Text=Disabled",
28  "CentralRepoDbChoice.Sqlite.Text=SQLite",
29  "CentralRepoDbChoice.PostgreSQL_Multiuser.Text=PostgreSQL using multi-user settings",
30  "CentralRepoDbChoice.PostgreSQL.Text=Custom PostgreSQL",
31 })
32 public enum CentralRepoDbChoice {
33  DISABLED("Disabled", Bundle.CentralRepoDbChoice_Disabled_Text(), CentralRepoPlatforms.DISABLED),
34  SQLITE("Sqlite", Bundle.CentralRepoDbChoice_Sqlite_Text(), CentralRepoPlatforms.SQLITE),
35  POSTGRESQL_MULTIUSER("PostgreSQL_Multiuser", Bundle.CentralRepoDbChoice_PostgreSQL_Multiuser_Text(), CentralRepoPlatforms.POSTGRESQL),
36  POSTGRESQL_CUSTOM("PostgreSQL", Bundle.CentralRepoDbChoice_PostgreSQL_Text(), CentralRepoPlatforms.POSTGRESQL);
37 
38  public static final CentralRepoDbChoice[] DB_CHOICES = new CentralRepoDbChoice[]{
39  SQLITE, POSTGRESQL_MULTIUSER, POSTGRESQL_CUSTOM
40  };
41 
42 
43  private final String settingKey;
44  private final String title;
46 
47  CentralRepoDbChoice(String key, String title, CentralRepoPlatforms platform) {
48  this.settingKey = key;
49  this.title = title;
50  this.platform = platform;
51  }
52 
57  public String getSettingKey() {
58  return settingKey;
59  }
60 
65  public String getTitle() {
66  return title;
67  }
68 
74  return platform;
75  }
76 }
CentralRepoDbChoice(String key, String title, CentralRepoPlatforms platform)

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.