19 package org.sleuthkit.autopsy.casemodule;
21 import java.util.Arrays;
22 import java.util.List;
23 import java.util.UUID;
24 import javax.swing.JPanel;
25 import org.openide.util.NbBundle;
26 import org.openide.util.lookup.ServiceProvider;
37 @ServiceProvider(service = DataSourceProcessor.class)
40 private static final String DATA_SOURCE_TYPE = NbBundle.getMessage(
LocalFilesDSProcessor.class,
"LocalFilesDSProcessor.dsType");
56 configPanel = LocalFilesPanel.getDefault();
67 return DATA_SOURCE_TYPE;
79 return DATA_SOURCE_TYPE;
105 return configPanel.validatePanel();
124 if (!setDataSourceOptionsCalled) {
125 localFilePaths = Arrays.asList(configPanel.getContentPaths().split(LocalFilesPanel.FILES_SEP));
127 run(UUID.randomUUID().toString(), configPanel.getFileSetName(), localFilePaths, progressMonitor, callback);
154 new Thread(
new AddLocalFilesTask(deviceId, rootVirtualDirectoryName, localFilePaths, progressMonitor, callback)).start();
178 localFilePaths = null;
179 setDataSourceOptionsCalled =
false;
196 this.localFilePaths = Arrays.asList(paths.split(LocalFilesPanel.FILES_SEP));
197 setDataSourceOptionsCalled =
true;
List< String > localFilePaths
void run(DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback)
String getDataSourceType()
void setDataSourceOptions(String paths)
final LocalFilesPanel configPanel
boolean setDataSourceOptionsCalled
void run(String deviceId, String rootVirtualDirectoryName, List< String > localFilePaths, DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callback)