Autopsy  4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
DataSourceIntegrityModuleFactory.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2014-2018 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.modules.dataSourceIntegrity;
20 
21 import org.openide.util.NbBundle;
22 import org.openide.util.lookup.ServiceProvider;
30 
35 @ServiceProvider(service = IngestModuleFactory.class)
37 
38  static String getModuleName() {
39  return NbBundle.getMessage(DataSourceIntegrityIngestModule.class,
40  "DataSourceIntegrityModuleFactory.moduleName.text");
41  }
42 
43  @Override
44  public String getModuleDisplayName() {
45  return getModuleName();
46  }
47 
48  @Override
49  public String getModuleDescription() {
50  return NbBundle.getMessage(DataSourceIntegrityIngestModule.class,
51  "DataSourceIntegrityModuleFactory.moduleDesc.text");
52  }
53 
54  @Override
55  public String getModuleVersionNumber() {
56  return Version.getVersion();
57  }
58 
59  @Override
61  return true;
62  }
63 
64  @Override
66  if (settings instanceof DataSourceIntegrityIngestSettings) {
67  return new DataSourceIntegrityIngestModule((DataSourceIntegrityIngestSettings) settings);
68  }
69  /*
70  * Compatibility check for older versions.
71  */
72  if (settings instanceof NoIngestModuleIngestJobSettings) {
73  return new DataSourceIntegrityIngestModule(new DataSourceIntegrityIngestSettings());
74  }
75 
76  throw new IllegalArgumentException("Expected settings argument to be an instance of IngestSettings");
77  }
78 
79  @Override
81  return new DataSourceIntegrityIngestSettings();
82  }
83 
84  @Override
85  public boolean hasIngestJobSettingsPanel() {
86  return true;
87  }
88 
89  @Override
91  if (settings instanceof DataSourceIntegrityIngestSettings) {
92  return new DataSourceIntegrityIngestSettingsPanel((DataSourceIntegrityIngestSettings) settings);
93  }
94  /*
95  * Compatibility check for older versions.
96  */
97  if (settings instanceof NoIngestModuleIngestJobSettings) {
98  return new DataSourceIntegrityIngestSettingsPanel(new DataSourceIntegrityIngestSettings());
99  }
100 
101  throw new IllegalArgumentException("Expected settings argument to be an instance of IngestSettings");
102  }
103 }
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)
DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings)

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