mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
Fixed property map for blackboard artifact node
This commit is contained in:
parent
6c947ceaeb
commit
cd486f44ed
@ -286,16 +286,17 @@ public class BlackboardArtifactNode extends DisplayableItemNode {
|
||||
* are put
|
||||
* @param artifact to extract properties from
|
||||
*/
|
||||
@SuppressWarnings("deprecation") // TODO: Remove this when TSK_TAGGED_ARTIFACT rows are removed in a database upgrade.
|
||||
@SuppressWarnings("deprecation")
|
||||
private void fillPropertyMap(Map<String, Object> map, BlackboardArtifact artifact) {
|
||||
try {
|
||||
for (BlackboardAttribute attribute : artifact.getAttributes()) {
|
||||
final int attributeTypeID = attribute.getAttributeTypeID();
|
||||
final int attributeTypeID = attribute.getAttributeType().getTypeID();
|
||||
//skip some internal attributes that user shouldn't see
|
||||
if (attributeTypeID == ATTRIBUTE_TYPE.TSK_PATH_ID.getTypeID()
|
||||
|| attributeTypeID == ATTRIBUTE_TYPE.TSK_TAGGED_ARTIFACT.getTypeID()
|
||||
|| attributeTypeID == ATTRIBUTE_TYPE.TSK_ASSOCIATED_ARTIFACT.getTypeID()
|
||||
|| attributeTypeID == ATTRIBUTE_TYPE.TSK_SET_NAME.getTypeID()) {
|
||||
continue;
|
||||
} else if (attributeTypeID == ATTRIBUTE_TYPE.TSK_DATETIME.getTypeID()
|
||||
|| attributeTypeID == ATTRIBUTE_TYPE.TSK_DATETIME_ACCESSED.getTypeID()
|
||||
|| attributeTypeID == ATTRIBUTE_TYPE.TSK_DATETIME_CREATED.getTypeID()
|
||||
@ -304,7 +305,7 @@ public class BlackboardArtifactNode extends DisplayableItemNode {
|
||||
|| attributeTypeID == ATTRIBUTE_TYPE.TSK_DATETIME_SENT.getTypeID()
|
||||
|| attributeTypeID == ATTRIBUTE_TYPE.TSK_DATETIME_START.getTypeID()
|
||||
|| attributeTypeID == ATTRIBUTE_TYPE.TSK_DATETIME_END.getTypeID()) {
|
||||
map.put(attribute.getAttributeTypeDisplayName(), ContentUtils.getStringTime(attribute.getValueLong(), associated));
|
||||
map.put(attribute.getAttributeType().getDisplayName(), attribute.getDisplayString());
|
||||
} else if (artifact.getArtifactTypeID() == ARTIFACT_TYPE.TSK_TOOL_OUTPUT.getTypeID()
|
||||
&& attributeTypeID == ATTRIBUTE_TYPE.TSK_TEXT.getTypeID()) {
|
||||
/*
|
||||
@ -318,9 +319,9 @@ public class BlackboardArtifactNode extends DisplayableItemNode {
|
||||
if (value.length() > 512) {
|
||||
value = value.substring(0, 512);
|
||||
}
|
||||
map.put(attribute.getAttributeTypeDisplayName(), value);
|
||||
map.put(attribute.getAttributeType().getDisplayName(), value);
|
||||
} else {
|
||||
map.put(attribute.getAttributeTypeDisplayName(), attribute.getDisplayString());
|
||||
map.put(attribute.getAttributeType().getDisplayName(), attribute.getDisplayString());
|
||||
}
|
||||
}
|
||||
} catch (TskException ex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user