Skip to content
Snippets Groups Projects
Commit a93ea4b9 authored by William Schaefer's avatar William Schaefer
Browse files

4629 fix attributes to be associated with just their artifact

parent fe7ed5a4
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,6 @@ private void checkForOSFiles(List<String> filesToCheckFor, String dataSourceUsag ...@@ -80,7 +80,6 @@ private void checkForOSFiles(List<String> filesToCheckFor, String dataSourceUsag
//shortcut out if it was called with no artifacts to create //shortcut out if it was called with no artifacts to create
return; return;
} }
Collection<BlackboardAttribute> bbattributes = new ArrayList<>();
FileManager fileManager = currentCase.getServices().getFileManager(); FileManager fileManager = currentCase.getServices().getFileManager();
List<AbstractFile> files = new ArrayList<>(); List<AbstractFile> files = new ArrayList<>();
for (String filePath : filesToCheckFor) { for (String filePath : filesToCheckFor) {
...@@ -89,12 +88,14 @@ private void checkForOSFiles(List<String> filesToCheckFor, String dataSourceUsag ...@@ -89,12 +88,14 @@ private void checkForOSFiles(List<String> filesToCheckFor, String dataSourceUsag
//create an artifact if any files with the windows/system32 specific path were found //create an artifact if any files with the windows/system32 specific path were found
if (!files.isEmpty()) { if (!files.isEmpty()) {
if (!dataSourceUsageDescription.isEmpty()) { if (!dataSourceUsageDescription.isEmpty()) {
Collection<BlackboardAttribute> bbattributes = new ArrayList<>();
bbattributes.add(new BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DESCRIPTION, bbattributes.add(new BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DESCRIPTION,
Bundle.DataSourceUsageAnalyzer_parentModuleName(), Bundle.DataSourceUsageAnalyzer_parentModuleName(),
dataSourceUsageDescription)); //NON-NLS dataSourceUsageDescription)); //NON-NLS
addArtifact(BlackboardArtifact.ARTIFACT_TYPE.TSK_DATA_SOURCE_USAGE, dataSource, bbattributes); addArtifact(BlackboardArtifact.ARTIFACT_TYPE.TSK_DATA_SOURCE_USAGE, dataSource, bbattributes);
} }
if (!osInfoProgramName.isEmpty()) { if (!osInfoProgramName.isEmpty()) {
Collection<BlackboardAttribute> bbattributes = new ArrayList<>();
bbattributes.add(new BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PROG_NAME, bbattributes.add(new BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PROG_NAME,
Bundle.DataSourceUsageAnalyzer_parentModuleName(), Bundle.DataSourceUsageAnalyzer_parentModuleName(),
osInfoProgramName)); //NON-NLS osInfoProgramName)); //NON-NLS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment