Autopsy  4.4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
IngestModuleTemplate.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2014 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.ingest;
20 
25 final class IngestModuleTemplate {
26 
27  private final IngestModuleFactory moduleFactory;
28  private IngestModuleIngestJobSettings settings = null;
29  private boolean enabled = true;
30 
31  IngestModuleTemplate(IngestModuleFactory moduleFactory, IngestModuleIngestJobSettings settings) {
32  this.moduleFactory = moduleFactory;
33  this.settings = settings;
34  }
35 
36  IngestModuleFactory getModuleFactory() {
37  return moduleFactory;
38  }
39 
40  String getModuleName() {
41  return moduleFactory.getModuleDisplayName();
42  }
43 
44  String getModuleDescription() {
45  return moduleFactory.getModuleDescription();
46  }
47 
48  IngestModuleIngestJobSettings getModuleSettings() {
49  return settings;
50  }
51 
52  void setModuleSettings(IngestModuleIngestJobSettings settings) {
53  this.settings = settings;
54  }
55 
56  boolean hasModuleSettingsPanel() {
57  return moduleFactory.hasIngestJobSettingsPanel();
58  }
59 
60  IngestModuleIngestJobSettingsPanel getModuleSettingsPanel() {
61  return moduleFactory.getIngestJobSettingsPanel(settings);
62  }
63 
64  boolean hasGlobalSettingsPanel() {
65  return moduleFactory.hasGlobalSettingsPanel();
66  }
67 
68  IngestModuleGlobalSettingsPanel getGlobalSettingsPanel() {
69  return moduleFactory.getGlobalSettingsPanel();
70  }
71 
72  boolean isDataSourceIngestModuleTemplate() {
73  return moduleFactory.isDataSourceIngestModuleFactory();
74  }
75 
76  DataSourceIngestModule createDataSourceIngestModule() {
77  return moduleFactory.createDataSourceIngestModule(settings);
78  }
79 
80  boolean isFileIngestModuleTemplate() {
81  return moduleFactory.isFileIngestModuleFactory();
82  }
83 
84  FileIngestModule createFileIngestModule() {
85  return moduleFactory.createFileIngestModule(settings);
86  }
87 
88  void setEnabled(boolean enabled) {
89  this.enabled = enabled;
90  }
91 
92  boolean isEnabled() {
93  return enabled;
94  }
95 }

Copyright © 2012-2016 Basis Technology. Generated on: Fri Sep 29 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.