19 package org.sleuthkit.autopsy.casemodule;
21 import java.util.Calendar;
22 import java.util.UUID;
23 import javax.swing.JPanel;
24 import org.openide.util.NbBundle;
25 import org.openide.util.lookup.ServiceProvider;
36 @ServiceProvider(service = DataSourceProcessor.class)
39 private static final String DATA_SOURCE_TYPE = NbBundle.getMessage(
LocalDiskDSProcessor.class,
"LocalDiskDSProcessor.dsType.text");
59 configPanel = LocalDiskPanel.getDefault();
70 return DATA_SOURCE_TYPE;
82 return DATA_SOURCE_TYPE;
108 return configPanel.validatePanel();
127 if (!setDataSourceOptionsCalled) {
128 deviceId = UUID.randomUUID().toString();
129 drivePath = configPanel.getContentPaths();
130 timeZone = configPanel.getTimeZone();
131 ignoreFatOrphanFiles = configPanel.getNoFatOrphans();
133 addDiskTask =
new AddImageTask(deviceId, drivePath, timeZone, ignoreFatOrphanFiles, progressMonitor, callback);
134 new Thread(addDiskTask).start();
159 addDiskTask =
new AddImageTask(deviceId, drivePath, timeZone, ignoreFatOrphanFiles, progressMonitor, callback);
160 new Thread(addDiskTask).start();
172 addDiskTask.cancelTask();
185 ignoreFatOrphanFiles =
false;
186 setDataSourceOptionsCalled =
false;
204 this.deviceId = UUID.randomUUID().toString();
205 this.drivePath = drivePath;
206 this.timeZone = Calendar.getInstance().getTimeZone().getID();
207 this.ignoreFatOrphanFiles = ignoreFatOrphanFiles;
208 setDataSourceOptionsCalled =
true;
final LocalDiskPanel configPanel
boolean ignoreFatOrphanFiles
boolean setDataSourceOptionsCalled
void run(DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback)
String getDataSourceType()
void run(String deviceId, String drivePath, String timeZone, boolean ignoreFatOrphanFiles, DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback)
void setDataSourceOptions(String drivePath, String timeZone, boolean ignoreFatOrphanFiles)