Autopsy  4.6.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
FileExtMismatchDetectorModuleFactory.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.modules.fileextmismatch;
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(FileExtMismatchIngestModule.class,
40  "FileExtMismatchIngestModule.moduleName");
41  }
42 
43  @Override
44  public String getModuleDisplayName() {
45  return getModuleName();
46  }
47 
48  @Override
49  public String getModuleDescription() {
50  return NbBundle.getMessage(FileExtMismatchIngestModule.class,
51  "FileExtMismatchIngestModule.moduleDesc.text");
52  }
53 
54  @Override
55  public String getModuleVersionNumber() {
56  return Version.getVersion();
57  }
58 
59  @Override
61  return new FileExtMismatchDetectorModuleSettings();
62  }
63 
64  @Override
65  public boolean hasIngestJobSettingsPanel() {
66  return true;
67  }
68 
69  @Override
71  assert settings instanceof FileExtMismatchDetectorModuleSettings;
72  if (!(settings instanceof FileExtMismatchDetectorModuleSettings)) {
73  throw new IllegalArgumentException(NbBundle.getMessage(this.getClass(),
74  "FileExtMismatchDetectorModuleFactory.getIngestJobSettingsPanel.exception.msg"));
75  }
76  FileExtMismatchModuleSettingsPanel settingsPanel = new FileExtMismatchModuleSettingsPanel((FileExtMismatchDetectorModuleSettings) settings);
77  return settingsPanel;
78  }
79 
80  @Override
81  public boolean hasGlobalSettingsPanel() {
82  return true;
83  }
84 
85  @Override
87  FileExtMismatchSettingsPanel globalOptionsPanel = new FileExtMismatchSettingsPanel();
88  globalOptionsPanel.load();
89  return globalOptionsPanel;
90  }
91 
92  @Override
93  public boolean isFileIngestModuleFactory() {
94  return true;
95  }
96 
97  @Override
99  assert settings instanceof FileExtMismatchDetectorModuleSettings;
100  if (!(settings instanceof FileExtMismatchDetectorModuleSettings)) {
101  throw new IllegalArgumentException(NbBundle.getMessage(this.getClass(),
102  "FileExtMismatchDetectorModuleFactory.getIngestJobSettingsPanel.exception.msg"));
103  }
104  return new FileExtMismatchIngestModule((FileExtMismatchDetectorModuleSettings) settings);
105  }
106 }
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)

Copyright © 2012-2016 Basis Technology. Generated on: Mon May 7 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.