Autopsy  4.17.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-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.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  OPEN_CASE_IN_UI;
39  }
40 
44  static enum InputType {
45  CASE_NAME,
46  CASE_TYPE,
47  CASES_BASE_DIR_PATH,
48  CASE_FOLDER_PATH,
49  DATA_SOURCE_PATH,
50  DATA_SOURCE_ID,
51  INGEST_PROFILE_NAME,
52  REPORT_PROFILE_NAME;
53  }
54 
55  private final CommandType type;
56  private final Map<String, String> inputs = new HashMap<>();
57 
58  CommandLineCommand(CommandType type) {
59  this.type = type;
60  }
61 
68  void addInputValue(String inputName, String inputValue) {
69  inputs.put(inputName, inputValue);
70  }
71 
75  Map<String, String> getInputs() {
76  return inputs;
77  }
78 
82  CommandType getType() {
83  return type;
84  }
85 }

Copyright © 2012-2021 Basis Technology. Generated on: Tue Jan 19 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.