mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
4629 fix attributes to be associated with just their artifact
This commit is contained in:
parent
fe7ed5a438
commit
a93ea4b93c
@ -80,7 +80,6 @@ public class DataSourceUsageAnalyzer extends Extract {
|
||||
//shortcut out if it was called with no artifacts to create
|
||||
return;
|
||||
}
|
||||
Collection<BlackboardAttribute> bbattributes = new ArrayList<>();
|
||||
FileManager fileManager = currentCase.getServices().getFileManager();
|
||||
List<AbstractFile> files = new ArrayList<>();
|
||||
for (String filePath : filesToCheckFor) {
|
||||
@ -89,12 +88,14 @@ public class DataSourceUsageAnalyzer extends Extract {
|
||||
//create an artifact if any files with the windows/system32 specific path were found
|
||||
if (!files.isEmpty()) {
|
||||
if (!dataSourceUsageDescription.isEmpty()) {
|
||||
Collection<BlackboardAttribute> bbattributes = new ArrayList<>();
|
||||
bbattributes.add(new BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DESCRIPTION,
|
||||
Bundle.DataSourceUsageAnalyzer_parentModuleName(),
|
||||
dataSourceUsageDescription)); //NON-NLS
|
||||
addArtifact(BlackboardArtifact.ARTIFACT_TYPE.TSK_DATA_SOURCE_USAGE, dataSource, bbattributes);
|
||||
}
|
||||
if (!osInfoProgramName.isEmpty()) {
|
||||
Collection<BlackboardAttribute> bbattributes = new ArrayList<>();
|
||||
bbattributes.add(new BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PROG_NAME,
|
||||
Bundle.DataSourceUsageAnalyzer_parentModuleName(),
|
||||
osInfoProgramName)); //NON-NLS
|
||||
|
Loading…
x
Reference in New Issue
Block a user