mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-20 03:24:55 +00:00
Merge branch '8277-fix' of https://github.com/gdicristofaro/autopsy into REALLY_delete_kws_8276
This commit is contained in:
commit
ae2760dff9
@ -361,7 +361,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());
|
||||
@ -1106,7 +1106,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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1133,11 +1138,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