mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
commit
0b34e6aa3c
@ -362,7 +362,7 @@ public class AnalysisResultDAO extends BlackboardArtifactDAO {
|
||||
? TreeDisplayCount.INDETERMINATE
|
||||
: TreeDisplayCount.getDeterminate(entry.getValue().getLeft());
|
||||
|
||||
return getTreeItem(entry.getKey(), null, dataSourceId, displayCount, entry.getValue().getRight());
|
||||
return new AnalysisResultTreeItem(entry.getKey(), null, dataSourceId, displayCount, entry.getValue().getRight());
|
||||
})
|
||||
.sorted(Comparator.comparing(countRow -> countRow.getDisplayName()))
|
||||
.collect(Collectors.toList());
|
||||
@ -1107,7 +1107,12 @@ public class AnalysisResultDAO extends BlackboardArtifactDAO {
|
||||
displayCount
|
||||
);
|
||||
} else {
|
||||
return getTreeItem(arEvt.getArtifactType(), arEvt.getConfiguration(), arEvt.getDataSourceId(), displayCount, null);
|
||||
return getConfigTreeItem(
|
||||
arEvt.getArtifactType(),
|
||||
arEvt.getDataSourceId(),
|
||||
arEvt.getConfiguration(),
|
||||
StringUtils.isBlank(arEvt.getConfiguration()) ? arEvt.getArtifactType().getDisplayName() : arEvt.getConfiguration(),
|
||||
displayCount);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1134,11 +1139,6 @@ public class AnalysisResultDAO extends BlackboardArtifactDAO {
|
||||
displayCount);
|
||||
}
|
||||
|
||||
private TreeItemDTO<AnalysisResultSearchParam> getTreeItem(BlackboardArtifact.Type type, String configuration,
|
||||
Long dataSourceId, TreeDisplayCount displayCount, Boolean hasChildren) {
|
||||
return new AnalysisResultTreeItem(type, configuration, dataSourceId, displayCount, hasChildren);
|
||||
}
|
||||
|
||||
@Override
|
||||
Set<? extends DAOEvent> handleIngestComplete() {
|
||||
return SubDAOUtils.getIngestCompleteEvents(this.treeCounts, (arEvt, count) -> getTreeItem(arEvt, count));
|
||||
|
Loading…
x
Reference in New Issue
Block a user