19 package org.sleuthkit.autopsy.logicalimager.configuration;
21 import com.google.gson.annotations.Expose;
22 import com.google.gson.annotations.SerializedName;
23 import java.util.ArrayList;
24 import java.util.List;
29 class LogicalImagerConfig {
31 static private final String CURRENT_VERSION =
"1.0";
33 @SerializedName(
"version")
34 @Expose(serialize =
true)
35 private String version;
37 @SerializedName("finalize-image-writer")
38 @Expose(serialize = true)
39 private
boolean finalizeImageWriter;
41 @SerializedName("prompt-before-exit")
42 @Expose(serialize = true)
43 private
boolean promptBeforeExit;
45 @SerializedName("create-VHD")
46 @Expose(serialize = true)
47 private
boolean createVHD;
49 @SerializedName("rule-sets")
50 @Expose(serialize = true)
51 private List<LogicalImagerRuleSet> ruleSets;
53 LogicalImagerConfig() {
54 this.version = CURRENT_VERSION;
55 this.finalizeImageWriter =
false;
56 this.promptBeforeExit =
true;
57 this.createVHD =
false;
58 this.ruleSets =
new ArrayList<>();
62 boolean finalizeImageWriter,
63 List<LogicalImagerRuleSet> ruleSets
65 this.version = CURRENT_VERSION;
66 this.finalizeImageWriter = finalizeImageWriter;
67 this.promptBeforeExit =
true;
68 this.createVHD =
false;
69 this.ruleSets = ruleSets;
74 boolean finalizeImageWriter,
75 List<LogicalImagerRuleSet> ruleSets
77 this.version = version;
78 this.finalizeImageWriter = finalizeImageWriter;
79 this.promptBeforeExit =
true;
80 this.createVHD =
false;
81 this.ruleSets = ruleSets;
86 boolean finalizeImageWriter,
87 boolean promptBeforeExit,
89 List<LogicalImagerRuleSet> ruleSets
91 this.version = version;
92 this.finalizeImageWriter = finalizeImageWriter;
93 this.promptBeforeExit = promptBeforeExit;
94 this.createVHD = createVHD;
95 this.ruleSets = ruleSets;
102 void setVersion(String version) {
103 this.version = version;
106 static public String getCurrentVersion() {
107 return CURRENT_VERSION;
110 boolean isFinalizeImageWriter() {
111 return finalizeImageWriter;
114 void setFinalizeImageWriter(
boolean finalizeImageWriter) {
115 this.finalizeImageWriter = finalizeImageWriter;
118 boolean isPromptBeforeExit() {
119 return promptBeforeExit;
122 void setPromptBeforeExit(
boolean promptBeforeExit) {
123 this.promptBeforeExit = promptBeforeExit;
126 boolean isCreateVHD() {
130 void setCreateVHD(
boolean createVHD) {
131 this.createVHD = createVHD;
134 List<LogicalImagerRuleSet> getRuleSets() {
138 void setRuleSet(List<LogicalImagerRuleSet> ruleSets) {
139 this.ruleSets = ruleSets;