Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
LogicalImagerConfig.java
Go to the documentation of this file.
1 /*
2  * Autopsy
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.logicalimager.configuration;
20 
21 import com.google.gson.annotations.Expose;
22 import com.google.gson.annotations.SerializedName;
23 import java.util.ArrayList;
24 import java.util.List;
25 
29 class LogicalImagerConfig {
30 
31  static private final String CURRENT_VERSION = "1.0";
32 
33  @SerializedName("version")
34  @Expose(serialize = true)
35  private String version;
36 
37  @SerializedName("finalize-image-writer")
38  @Expose(serialize = true)
39  private boolean finalizeImageWriter;
40 
41  @SerializedName("prompt-before-exit")
42  @Expose(serialize = true)
43  private boolean promptBeforeExit;
44 
45  @SerializedName("create-VHD")
46  @Expose(serialize = true)
47  private boolean createVHD;
48 
49  @SerializedName("rule-sets")
50  @Expose(serialize = true)
51  private List<LogicalImagerRuleSet> ruleSets;
52 
53  LogicalImagerConfig() {
54  this.version = CURRENT_VERSION;
55  this.finalizeImageWriter = false;
56  this.promptBeforeExit = true;
57  this.createVHD = false;
58  this.ruleSets = new ArrayList<>();
59  }
60 
61  LogicalImagerConfig(
62  boolean finalizeImageWriter,
63  List<LogicalImagerRuleSet> ruleSets
64  ) {
65  this.version = CURRENT_VERSION;
66  this.finalizeImageWriter = finalizeImageWriter;
67  this.promptBeforeExit = true;
68  this.createVHD = false;
69  this.ruleSets = ruleSets;
70  }
71 
72  LogicalImagerConfig(
73  String version,
74  boolean finalizeImageWriter,
75  List<LogicalImagerRuleSet> ruleSets
76  ) {
77  this.version = version;
78  this.finalizeImageWriter = finalizeImageWriter;
79  this.promptBeforeExit = true;
80  this.createVHD = false;
81  this.ruleSets = ruleSets;
82  }
83 
84  LogicalImagerConfig(
85  String version,
86  boolean finalizeImageWriter,
87  boolean promptBeforeExit,
88  boolean createVHD,
89  List<LogicalImagerRuleSet> ruleSets
90  ) {
91  this.version = version;
92  this.finalizeImageWriter = finalizeImageWriter;
93  this.promptBeforeExit = promptBeforeExit;
94  this.createVHD = createVHD;
95  this.ruleSets = ruleSets;
96  }
97 
98  String getVersion() {
99  return version;
100  }
101 
102  void setVersion(String version) {
103  this.version = version;
104  }
105 
106  static public String getCurrentVersion() {
107  return CURRENT_VERSION;
108  }
109 
110  boolean isFinalizeImageWriter() {
111  return finalizeImageWriter;
112  }
113 
114  void setFinalizeImageWriter(boolean finalizeImageWriter) {
115  this.finalizeImageWriter = finalizeImageWriter;
116  }
117 
118  boolean isPromptBeforeExit() {
119  return promptBeforeExit;
120  }
121 
122  void setPromptBeforeExit(boolean promptBeforeExit) {
123  this.promptBeforeExit = promptBeforeExit;
124  }
125 
126  boolean isCreateVHD() {
127  return createVHD;
128  }
129 
130  void setCreateVHD(boolean createVHD) {
131  this.createVHD = createVHD;
132  }
133 
134  List<LogicalImagerRuleSet> getRuleSets() {
135  return ruleSets;
136  }
137 
138  void setRuleSet(List<LogicalImagerRuleSet> ruleSets) {
139  this.ruleSets = ruleSets;
140  }
141 }

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.