mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 16:36:15 +00:00
added gpx module to pipeline config and place autopsy modules before third party modules
This commit is contained in:
parent
bd297c54da
commit
003d0c5e8b
@ -33,6 +33,7 @@ import javax.swing.JOptionPane;
|
|||||||
import org.netbeans.api.progress.ProgressHandle;
|
import org.netbeans.api.progress.ProgressHandle;
|
||||||
import org.openide.util.Cancellable;
|
import org.openide.util.Cancellable;
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
|
import org.openide.util.Pair;
|
||||||
import org.openide.windows.WindowManager;
|
import org.openide.windows.WindowManager;
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
||||||
@ -57,6 +58,7 @@ import org.sleuthkit.autopsy.python.FactoryClassNameNormalizer;
|
|||||||
* it.
|
* it.
|
||||||
*/
|
*/
|
||||||
public final class DataSourceIngestJob {
|
public final class DataSourceIngestJob {
|
||||||
|
private static String AUTOPSY_MODULE_PREFIX = "org.sleuthkit.autopsy";
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(DataSourceIngestJob.class.getName());
|
private static final Logger logger = Logger.getLogger(DataSourceIngestJob.class.getName());
|
||||||
|
|
||||||
@ -216,6 +218,30 @@ public final class DataSourceIngestJob {
|
|||||||
this.createIngestPipelines();
|
this.createIngestPipelines();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds ingest modules to a list with autopsy modules first and third party modules next.
|
||||||
|
* @param dest The destination for the modules to be added.
|
||||||
|
* @param src A map of fully qualified class name mapped to the IngestModuleTemplate.
|
||||||
|
*/
|
||||||
|
private static void addOrdered(final List<IngestModuleTemplate> dest, final Map<String, IngestModuleTemplate> src) {
|
||||||
|
final List<IngestModuleTemplate> autopsyModules = new ArrayList<>();
|
||||||
|
final List<IngestModuleTemplate> thirdPartyModules = new ArrayList<>();
|
||||||
|
|
||||||
|
src.entrySet().stream().forEach((templateEntry) -> {
|
||||||
|
if (templateEntry.getKey().startsWith(AUTOPSY_MODULE_PREFIX)) {
|
||||||
|
autopsyModules.add(templateEntry.getValue());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
thirdPartyModules.add(templateEntry.getValue());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
dest.addAll(autopsyModules);
|
||||||
|
dest.addAll(thirdPartyModules);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the file and data source ingest pipelines.
|
* Creates the file and data source ingest pipelines.
|
||||||
*/
|
*/
|
||||||
@ -250,12 +276,8 @@ public final class DataSourceIngestJob {
|
|||||||
* configuration to an appropriate pipeline - either the first stage
|
* configuration to an appropriate pipeline - either the first stage
|
||||||
* data source ingest pipeline or the file ingest pipeline.
|
* data source ingest pipeline or the file ingest pipeline.
|
||||||
*/
|
*/
|
||||||
for (IngestModuleTemplate template : dataSourceModuleTemplates.values()) {
|
addOrdered(firstStageDataSourceModuleTemplates, dataSourceModuleTemplates);
|
||||||
firstStageDataSourceModuleTemplates.add(template);
|
addOrdered(fileIngestModuleTemplates, fileModuleTemplates);
|
||||||
}
|
|
||||||
for (IngestModuleTemplate template : fileModuleTemplates.values()) {
|
|
||||||
fileIngestModuleTemplates.add(template);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct the data source ingest pipelines.
|
* Construct the data source ingest pipelines.
|
||||||
|
@ -17,6 +17,7 @@ Contains only the core ingest modules that ship with Autopsy -->
|
|||||||
<MODULE>org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchDetectorModuleFactory</MODULE>
|
<MODULE>org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchDetectorModuleFactory</MODULE>
|
||||||
<MODULE>org.sleuthkit.autopsy.modules.interestingitems.InterestingItemsIngestModuleFactory</MODULE>
|
<MODULE>org.sleuthkit.autopsy.modules.interestingitems.InterestingItemsIngestModuleFactory</MODULE>
|
||||||
<MODULE>org.sleuthkit.autopsy.modules.photoreccarver.PhotoRecCarverIngestModuleFactory</MODULE>
|
<MODULE>org.sleuthkit.autopsy.modules.photoreccarver.PhotoRecCarverIngestModuleFactory</MODULE>
|
||||||
|
<MODULE>org.sleuthkit.autopsy.modules.GPX_Module.GPXParserFileIngestModuleFactory</MODULE>
|
||||||
</PIPELINE>
|
</PIPELINE>
|
||||||
|
|
||||||
<PIPELINE type="ImageAnalysisStageTwo">
|
<PIPELINE type="ImageAnalysisStageTwo">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user