mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Change approach to be driven by data source
This commit is contained in:
parent
82b5002b2a
commit
c8269001eb
@ -45,6 +45,7 @@ import org.sleuthkit.datamodel.BlackboardArtifact;
|
||||
import org.sleuthkit.datamodel.BlackboardArtifactTag;
|
||||
import org.sleuthkit.datamodel.BlackboardAttribute;
|
||||
import org.sleuthkit.datamodel.ContentTag;
|
||||
import org.sleuthkit.datamodel.DataSource;
|
||||
import org.sleuthkit.datamodel.SleuthkitCase;
|
||||
import org.sleuthkit.datamodel.TskCoreException;
|
||||
import org.sleuthkit.datamodel.TskData;
|
||||
@ -211,29 +212,32 @@ public final class CaseUcoFormatExporter {
|
||||
initializeJsonOutputFile(jsonGenerator);
|
||||
String caseTraceId = saveCaseInfo(currentCase, jsonGenerator);
|
||||
|
||||
for(TagName tn : tagTypes) {
|
||||
for(ContentTag ct : tagsManager.getContentTagsByTagName(tn)) {
|
||||
//copy content tag
|
||||
}
|
||||
|
||||
for(BlackboardArtifactTag bat : tagsManager.getBlackboardArtifactTagsByTagName(tn)) {
|
||||
//copy content
|
||||
//copy associated content
|
||||
}
|
||||
}
|
||||
|
||||
if(!interestingItemSets.isEmpty()) {
|
||||
for(BlackboardArtifact bArt : currentCase.getBlackboardArtifacts(INTERESTING_FILE_HIT)) {
|
||||
BlackboardAttribute setAttr = bArt.getAttribute(SET_NAME);
|
||||
if (interestingItemSets.contains(setAttr.getValueString())) {
|
||||
for(DataSource ds : currentCase.getDataSources()) {
|
||||
String dataSourceTraceId = saveDataSourceInfo(ds.getId(), caseTraceId, currentCase, jsonGenerator);
|
||||
for(TagName tn : tagTypes) {
|
||||
for(ContentTag ct : tagsManager.getContentTagsByTagName(tn, ds.getId())) {
|
||||
// copy content tag.
|
||||
}
|
||||
|
||||
for(BlackboardArtifactTag bat : tagsManager.getBlackboardArtifactTagsByTagName(tn, ds.getId())) {
|
||||
//copy content
|
||||
//copy associated content
|
||||
}
|
||||
}
|
||||
|
||||
for(BlackboardArtifact bArt : currentCase.getBlackboardArtifacts(INTERESTING_ARTIFACT_HIT)) {
|
||||
BlackboardAttribute setAttr = bArt.getAttribute(SET_NAME);
|
||||
if (interestingItemSets.contains(setAttr.getValueString())) {
|
||||
if(!interestingItemSets.isEmpty()) {
|
||||
for(BlackboardArtifact bArt : currentCase.getBlackboardArtifacts(INTERESTING_FILE_HIT, ds.getId())) {
|
||||
BlackboardAttribute setAttr = bArt.getAttribute(SET_NAME);
|
||||
if (interestingItemSets.contains(setAttr.getValueString())) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
for(BlackboardArtifact bArt : currentCase.getBlackboardArtifacts(INTERESTING_ARTIFACT_HIT, ds.getId())) {
|
||||
BlackboardAttribute setAttr = bArt.getAttribute(SET_NAME);
|
||||
if (interestingItemSets.contains(setAttr.getValueString())) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user