Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
PlasoModuleFactory.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2018-2019 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.plaso;
20 
21 import org.openide.util.NbBundle;
22 import org.openide.util.lookup.ServiceProvider;
30 
35 @ServiceProvider(service = IngestModuleFactory.class)
36 @NbBundle.Messages({"PlasoModuleFactory.ingestJobSettings.exception.msg=Expected settings argument to be instanceof PlasoModuleSettings"})
37 public class PlasoModuleFactory implements IngestModuleFactory {
38 
39  @NbBundle.Messages({"PlasoModuleFactory_moduleName=Plaso"})
40  static String getModuleName() {
41  return Bundle.PlasoModuleFactory_moduleName();
42  }
43 
44  @Override
45  public String getModuleDisplayName() {
46  return getModuleName();
47  }
48 
49  @NbBundle.Messages({"PlasoModuleFactory_moduleDesc=Runs Plaso against a Data Source."})
50  @Override
51  public String getModuleDescription() {
52  return Bundle.PlasoModuleFactory_moduleDesc();
53  }
54 
55  @Override
56  public String getModuleVersionNumber() {
57  return Version.getVersion();
58  }
59 
60  @Override
62  return true;
63  }
64 
65  @Override
67  assert settings instanceof PlasoModuleSettings;
68  if (settings instanceof PlasoModuleSettings) {
69  return new PlasoIngestModule((PlasoModuleSettings) settings);
70  }
71  throw new IllegalArgumentException(Bundle.PlasoModuleFactory_ingestJobSettings_exception_msg());
72  }
73 
74  @Override
75  public boolean hasGlobalSettingsPanel() {
76  return false;
77  }
78 
79  @Override
81  throw new UnsupportedOperationException();
82  }
83 
84  @Override
86  return new PlasoModuleSettings();
87  }
88 
89  @Override
90  public boolean hasIngestJobSettingsPanel() {
91  return true;
92  }
93 
94  @Override
96  assert settings instanceof PlasoModuleSettings;
97  if (settings instanceof PlasoModuleSettings) {
98  return new PlasoModuleSettingsPanel((PlasoModuleSettings) settings);
99  }
100  throw new IllegalArgumentException(Bundle.PlasoModuleFactory_ingestJobSettings_exception_msg());
101  }
102 
103  @Override
104  public boolean isFileIngestModuleFactory() {
105  return false;
106  }
107 
108  @Override
110  throw new UnsupportedOperationException();
111  }
112 }
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)
DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings)
FileIngestModule createFileIngestModule(IngestModuleIngestJobSettings settings)

Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.