/*
 * Autopsy Forensic Browser
 *
 * Copyright 2014-2018 Basis Technology Corp.
 * Contact: carrier <at> sleuthkit <dot> org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.sleuthkit.autopsy.ingest;
import java.util.HashMap;
import java.util.Map;


/**
 * Generic Ingest Job settings class  
 */
public class GenericIngestModuleJobSettings implements IngestModuleIngestJobSettings {
    private static final long serialVersionUID = 1L;
    
    @Override
    public long getVersionNumber(){
        return serialVersionUID;
    }
    
    private final Map<String, String> settings;
    
    public GenericIngestModuleJobSettings(){
        this.settings = new HashMap<>();
        
    }
    
    /**
     * Return the string value for passed key parameter from the settings HashMap
     * When the key does not exist null will be returned.
     * @param key The key for setting to be fetched
     * @return The value for the key passed as parameter
     */
    public String getSettings(String key){
        return settings.get(key);
    }
    
    /**
     * Adds the passed key value pair to the settings HashMap
     * @param key The key to be added to the settings
     * @param value The value to be added for the key
     */
    public void setSettings(String key ,String value){
        settings.put(key, value);
    }
    
    /**
     * removes the passed key parameter from the settings HashMap
     * @param key The key to be removed from settings
     */
    public void removeSettings(String key){
        settings.remove(key);
    }
    
}

@@ -10,25 +10,8 @@
 opsy
- Forensic Browser
 %0A *%0A
@@ -27,13 +27,8 @@
 ght 
-2014-
 2018
@@ -786,17 +786,150 @@
 gs class
- 
+.%0A * Primary use of this class is for Python modules because classes created in Python%0A * cannot be serialized / deserialized in Java.
  %0A */%0Apu
@@ -1308,17 +1308,8 @@
 ();%0A
-        %0A
     
@@ -1382,92 +1382,16 @@
 eter
- from the settings HashMap%0A     * When the key does not exist null will be returned.
+.%0A     *
 %0A   
@@ -1417,33 +1417,17 @@
 key 
-for setting to be fetched
+to lookup
 %0A   
@@ -1452,20 +1452,27 @@
 lue 
-f
 or 
+null if 
 the key 
 pass
@@ -1471,27 +1471,23 @@
 key 
-passed as parameter
+was not found. 
 %0A   
@@ -1511,33 +1511,32 @@
 tring getSetting
-s
 (String key)%7B%0A  
@@ -1627,32 +1627,15 @@
 pair
- to the settings HashMap
+%0A     *
 %0A   
@@ -1769,25 +1769,24 @@
 d setSetting
-s
 (String key 
@@ -1788,10 +1788,10 @@
  key
- 
 ,
+ 
 Stri
@@ -1861,17 +1861,17 @@
 %0A     * 
-r
+R
 emoves t
@@ -1873,36 +1873,19 @@
 ves the 
-passed key parameter
+key
  from th
@@ -1894,24 +1894,18 @@
 settings
+.
  
-HashMap
 %0A     * 
@@ -1940,22 +1940,8 @@
 oved
- from settings
 %0A   
@@ -1974,17 +1974,16 @@
 eSetting
-s
 (String 
@@ -2024,15 +2024,10 @@
 ;%0A    %7D%0A
-    %0A
 %7D%0A

Update GenericIngestModuleJobSettings.java