Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CommandLineCommand.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2019-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.commandlineingest;
20 
21 import java.util.HashMap;
22 import java.util.Map;
23 
27 class CommandLineCommand {
28 
32  static enum CommandType {
33  CREATE_CASE,
34  ADD_DATA_SOURCE,
35  RUN_INGEST,
36  LIST_ALL_DATA_SOURCES,
37  GENERATE_REPORTS;
38  }
39 
43  static enum InputType {
44  CASE_NAME,
45  CASE_TYPE,
46  CASES_BASE_DIR_PATH,
47  CASE_FOLDER_PATH,
48  DATA_SOURCE_PATH,
49  DATA_SOURCE_ID,
50  INGEST_PROFILE_NAME;
51  }
52 
53  private final CommandType type;
54  private final Map<String, String> inputs = new HashMap<>();
55 
56  CommandLineCommand(CommandType type) {
57  this.type = type;
58  }
59 
66  void addInputValue(String inputName, String inputValue) {
67  inputs.put(inputName, inputValue);
68  }
69 
73  Map<String, String> getInputs() {
74  return inputs;
75  }
76 
80  CommandType getType() {
81  return type;
82  }
83 }

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.