19 package org.sleuthkit.autopsy.ingest;
25 final class IngestModuleTemplate {
27 private final IngestModuleFactory moduleFactory;
28 private IngestModuleIngestJobSettings settings = null;
29 private boolean enabled =
true;
31 IngestModuleTemplate(IngestModuleFactory moduleFactory, IngestModuleIngestJobSettings settings) {
32 this.moduleFactory = moduleFactory;
33 this.settings = settings;
36 IngestModuleFactory getModuleFactory() {
40 String getModuleName() {
41 return moduleFactory.getModuleDisplayName();
44 String getModuleDescription() {
45 return moduleFactory.getModuleDescription();
48 IngestModuleIngestJobSettings getModuleSettings() {
52 void setModuleSettings(IngestModuleIngestJobSettings settings) {
53 this.settings = settings;
56 boolean hasModuleSettingsPanel() {
57 return moduleFactory.hasIngestJobSettingsPanel();
60 IngestModuleIngestJobSettingsPanel getModuleSettingsPanel() {
61 return moduleFactory.getIngestJobSettingsPanel(settings);
64 boolean hasGlobalSettingsPanel() {
65 return moduleFactory.hasGlobalSettingsPanel();
68 IngestModuleGlobalSettingsPanel getGlobalSettingsPanel() {
69 return moduleFactory.getGlobalSettingsPanel();
72 boolean isDataSourceIngestModuleTemplate() {
73 return moduleFactory.isDataSourceIngestModuleFactory();
76 DataSourceIngestModule createDataSourceIngestModule() {
77 return moduleFactory.createDataSourceIngestModule(settings);
80 boolean isFileIngestModuleTemplate() {
81 return moduleFactory.isFileIngestModuleFactory();
84 FileIngestModule createFileIngestModule() {
85 return moduleFactory.createFileIngestModule(settings);
88 void setEnabled(
boolean enabled) {
89 this.enabled = enabled;