19 package org.sleuthkit.autopsy.casemodule;
21 import java.nio.file.Path;
22 import java.util.Arrays;
23 import java.util.List;
24 import java.util.UUID;
25 import javax.swing.JPanel;
26 import org.openide.util.NbBundle;
27 import org.openide.util.lookup.ServiceProvider;
28 import org.openide.util.lookup.ServiceProviders;
40 @ServiceProviders(value={
41 @ServiceProvider(service=DataSourceProcessor.class),
42 @ServiceProvider(service=AutoIngestDataSourceProcessor.class)}
46 private static final String DATA_SOURCE_TYPE = NbBundle.getMessage(
LocalFilesDSProcessor.class,
"LocalFilesDSProcessor.dsType");
62 configPanel = LocalFilesPanel.getDefault();
73 return DATA_SOURCE_TYPE;
85 return DATA_SOURCE_TYPE;
111 return configPanel.validatePanel();
130 if (!setDataSourceOptionsCalled) {
131 localFilePaths = configPanel.getContentPaths();
133 run(UUID.randomUUID().toString(), configPanel.getFileSetName(), localFilePaths, progressMonitor, callback);
160 new Thread(
new AddLocalFilesTask(deviceId, rootVirtualDirectoryName, localFilePaths, progressMonitor, callback)).start();
184 localFilePaths = null;
185 setDataSourceOptionsCalled =
false;
198 this.localFilePaths = Arrays.asList(
new String[]{dataSourcePath.toString()});
199 run(deviceId, deviceId, this.localFilePaths, progressMonitor, callBack);
219 this.localFilePaths = Arrays.asList(paths.split(
","));
220 setDataSourceOptionsCalled =
true;
List< String > localFilePaths
void run(DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback)
String getDataSourceType()
void setDataSourceOptions(String paths)
void process(String deviceId, Path dataSourcePath, DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callBack)
final LocalFilesPanel configPanel
int canProcess(Path dataSourcePath)
boolean setDataSourceOptionsCalled
void run(String deviceId, String rootVirtualDirectoryName, List< String > localFilePaths, DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback)