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;
37 @ServiceProvider(service = DataSourceProcessor.class)
40 private static final String DATA_SOURCE_TYPE = NbBundle.getMessage(
LocalDiskDSProcessor.class,
"LocalDiskDSProcessor.dsType.text");
62 configPanel = LocalDiskPanel.getDefault();
73 return DATA_SOURCE_TYPE;
85 return DATA_SOURCE_TYPE;
98 configPanel.resetLocalDiskSelection();
111 return configPanel.validatePanel();
130 if (!setDataSourceOptionsCalled) {
131 deviceId = UUID.randomUUID().toString();
132 drivePath = configPanel.getContentPath();
133 sectorSize = configPanel.getSectorSize();
134 timeZone = configPanel.getTimeZone();
135 ignoreFatOrphanFiles = configPanel.getNoFatOrphans();
136 if (configPanel.getImageWriterEnabled()) {
137 imageWriterSettings = configPanel.getImageWriterSettings();
139 imageWriterSettings = null;
142 addDiskTask =
new AddImageTask(deviceId, drivePath, sectorSize, timeZone, ignoreFatOrphanFiles, null, null, null, imageWriterSettings, progressMonitor, callback);
143 new Thread(addDiskTask).start();
168 run(deviceId, drivePath, 0, timeZone, ignoreFatOrphanFiles, progressMonitor, callback);
194 addDiskTask =
new AddImageTask(deviceId, drivePath, sectorSize, timeZone, ignoreFatOrphanFiles, null, null, null, imageWriterSettings, progressMonitor, callback);
195 new Thread(addDiskTask).start();
207 if (null != addDiskTask) {
208 addDiskTask.cancelTask();
221 ignoreFatOrphanFiles =
false;
222 setDataSourceOptionsCalled =
false;
240 this.deviceId = UUID.randomUUID().toString();
241 this.drivePath = drivePath;
243 this.timeZone = Calendar.getInstance().getTimeZone().getID();
244 this.ignoreFatOrphanFiles = ignoreFatOrphanFiles;
245 setDataSourceOptionsCalled =
true;
final LocalDiskPanel configPanel
boolean ignoreFatOrphanFiles
ImageWriterSettings imageWriterSettings
boolean setDataSourceOptionsCalled
void run(DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback)
String getDataSourceType()
void run(String deviceId, String drivePath, int sectorSize, String timeZone, boolean ignoreFatOrphanFiles, DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback)
void run(String deviceId, String drivePath, String timeZone, boolean ignoreFatOrphanFiles, DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback)
void setDataSourceOptions(String drivePath, String timeZone, boolean ignoreFatOrphanFiles)