This commit is contained in:
adam-m 2012-05-22 11:17:30 -04:00
commit 5e8cd31a23

View File

@ -80,18 +80,24 @@ public class BlackboardArtifactNode extends AbstractNode implements DisplayableI
ss.put(new NodeProperty("File Name", ss.put(new NodeProperty("File Name",
"File Name", "File Name",
"no description", NO_DESCR,
associated.accept(new NameVisitor()))); associated.accept(new NameVisitor())));
ATTRIBUTE_TYPE[] attributeTypes = ATTRIBUTE_TYPE.values();
for(Map.Entry<Integer, Object> entry : map.entrySet()){ for(Map.Entry<Integer, Object> entry : map.entrySet()){
if(attributeTypes.length > entry.getKey()){ ss.put(new NodeProperty(BlackboardAttribute.ATTRIBUTE_TYPE.fromID(entry.getKey()).getDisplayName(),
ss.put(new NodeProperty(attributeTypes[entry.getKey()-1].getDisplayName(), BlackboardAttribute.ATTRIBUTE_TYPE.fromID(entry.getKey()).getDisplayName(),
attributeTypes[entry.getKey()-1].getDisplayName(),
NO_DESCR, NO_DESCR,
entry.getValue())); entry.getValue()));
}
} }
if(artifact.getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_HASHSET_HIT.getTypeID()
|| artifact.getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_KEYWORD_HIT.getTypeID()) {
ss.put(new NodeProperty("File Path",
"File Path",
NO_DESCR,
DataConversion.getformattedPath(ContentUtils.getDisplayPath(associated), 0, 1)));
}
return s; return s;
} }