mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Add data source id to org.sleuthkit.autopsy.casemodule.AddImageTask
This commit is contained in:
parent
05e38ee961
commit
466fedd871
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Autopsy Forensic Browser
|
* Autopsy Forensic Browser
|
||||||
*
|
*
|
||||||
* Copyright 2013-2014 Basis Technology Corp.
|
* Copyright 2013-2016 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -30,11 +30,9 @@ import org.sleuthkit.autopsy.coreutils.Logger;
|
|||||||
import org.sleuthkit.autopsy.coreutils.PlatformUtil;
|
import org.sleuthkit.autopsy.coreutils.PlatformUtil;
|
||||||
import org.sleuthkit.datamodel.Content;
|
import org.sleuthkit.datamodel.Content;
|
||||||
import org.sleuthkit.datamodel.Image;
|
import org.sleuthkit.datamodel.Image;
|
||||||
import org.sleuthkit.datamodel.SleuthkitCase;
|
|
||||||
import org.sleuthkit.datamodel.SleuthkitJNI;
|
import org.sleuthkit.datamodel.SleuthkitJNI;
|
||||||
import org.sleuthkit.datamodel.TskCoreException;
|
import org.sleuthkit.datamodel.TskCoreException;
|
||||||
import org.sleuthkit.datamodel.TskDataException;
|
import org.sleuthkit.datamodel.TskDataException;
|
||||||
import org.sleuthkit.datamodel.TskException;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A background task that adds the given image to database using the Sleuthkit
|
* A background task that adds the given image to database using the Sleuthkit
|
||||||
@ -72,6 +70,8 @@ class AddImageTask implements Runnable {
|
|||||||
private final String imagePath;
|
private final String imagePath;
|
||||||
String timeZone;
|
String timeZone;
|
||||||
boolean noFatOrphans;
|
boolean noFatOrphans;
|
||||||
|
|
||||||
|
private final String dataSourceId;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A thread that updates the progressMonitor with the name of the directory
|
* A thread that updates the progressMonitor with the name of the directory
|
||||||
@ -113,18 +113,16 @@ class AddImageTask implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public AddImageTask(String imgPath, String tz, boolean noOrphans, DataSourceProcessorProgressMonitor aProgressMonitor, DataSourceProcessorCallback cbObj) {
|
AddImageTask(String dataSourceId, String imgPath, String tz, boolean noOrphans, DataSourceProcessorProgressMonitor aProgressMonitor, DataSourceProcessorCallback cbObj) {
|
||||||
|
|
||||||
currentCase = Case.getCurrentCase();
|
currentCase = Case.getCurrentCase();
|
||||||
|
this.dataSourceId = dataSourceId;
|
||||||
this.imagePath = imgPath;
|
this.imagePath = imgPath;
|
||||||
this.timeZone = tz;
|
this.timeZone = tz;
|
||||||
this.noFatOrphans = noOrphans;
|
this.noFatOrphans = noOrphans;
|
||||||
|
|
||||||
this.callbackObj = cbObj;
|
this.callbackObj = cbObj;
|
||||||
this.progressMonitor = aProgressMonitor;
|
this.progressMonitor = aProgressMonitor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the addImage process, but does not commit the results.
|
* Starts the addImage process, but does not commit the results.
|
||||||
*
|
*
|
||||||
|
@ -139,7 +139,7 @@ public class ImageDSProcessor implements DataSourceProcessor {
|
|||||||
ignoreFatOrphanFiles = configPanel.getNoFatOrphans();
|
ignoreFatOrphanFiles = configPanel.getNoFatOrphans();
|
||||||
configured = true;
|
configured = true;
|
||||||
}
|
}
|
||||||
addImageTask = new AddImageTask(imagePath, timeZone, ignoreFatOrphanFiles, monitor, cbObj);
|
addImageTask = new AddImageTask(dataSourceId, imagePath, timeZone, ignoreFatOrphanFiles, monitor, cbObj);
|
||||||
new Thread(addImageTask).start();
|
new Thread(addImageTask).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ public class LocalDiskDSProcessor implements DataSourceProcessor {
|
|||||||
ignoreFatOrphanFiles = configPanel.getNoFatOrphans();
|
ignoreFatOrphanFiles = configPanel.getNoFatOrphans();
|
||||||
configured = true;
|
configured = true;
|
||||||
}
|
}
|
||||||
addDiskTask = new AddImageTask(drivePath, timeZone, ignoreFatOrphanFiles, progressMonitor, cbObj);
|
addDiskTask = new AddImageTask(dataSourceId, drivePath, timeZone, ignoreFatOrphanFiles, progressMonitor, cbObj);
|
||||||
new Thread(addDiskTask).start();
|
new Thread(addDiskTask).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user