Autopsy  4.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
SampleExecutableIngestModuleFactory.java
Go to the documentation of this file.
1 /*
2  * Sample ingest module factory in the public domain.
3  * Feel free to use this as a template for your inget module factories.
4  *
5  * Contact: Brian Carrier [carrier <at> sleuthkit [dot] org]
6  *
7  * This is free and unencumbered software released into the public domain.
8  *
9  * Anyone is free to copy, modify, publish, use, compile, sell, or
10  * distribute this software, either in source code form or as a compiled
11  * binary, for any purpose, commercial or non-commercial, and by any
12  * means.
13  *
14  * In jurisdictions that recognize copyright laws, the author or authors
15  * of this software dedicate any and all copyright interest in the
16  * software to the public domain. We make this dedication for the benefit
17  * of the public at large and to the detriment of our heirs and
18  * successors. We intend this dedication to be an overt act of
19  * relinquishment in perpetuity of all present and future rights to this
20  * software under copyright law.
21  *
22  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28  * OTHER DEALINGS IN THE SOFTWARE.
29  */
30 package org.sleuthkit.autopsy.examples;
31 
32 import org.openide.util.NbBundle;
33 import org.openide.util.lookup.ServiceProvider;
34 import static org.sleuthkit.autopsy.examples.SampleIngestModuleFactory.getModuleName;
39 
43 @ServiceProvider(service = IngestModuleFactory.class) // Sample is discarded at runtime
45 
46  private static final String VERSION_NUMBER = "1.0.0";
47 
48  // This class method allows the ingest module instances created by this
49  // factory to use the same display name that is provided to the Autopsy
50  // ingest framework by the factory.
51  static String getModuleName() {
52  return NbBundle.getMessage(SampleIngestModuleFactory.class, "SampleExecutableIngestModuleFactory.moduleName");
53  }
54 
55  @Override
56  public String getModuleDisplayName() {
57  return getModuleName();
58  }
59 
60  @Override
61  public String getModuleDescription() {
62  return NbBundle.getMessage(SampleIngestModuleFactory.class, "SampleExecutableIngestModuleFactory.moduleDescription");
63  }
64 
65  @Override
66  public String getModuleVersionNumber() {
67  return VERSION_NUMBER;
68  }
69 
70  @Override
72  return true;
73  }
74 
75  @Override
78  }
79 }
DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings ingestOptions)

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