mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 02:07:42 +00:00
fix usage of read status attribute
This commit is contained in:
parent
b682a57ba5
commit
3412410fd2
@ -169,7 +169,7 @@ public interface ArtifactEventType extends EventType {
|
||||
@Override
|
||||
public String apply(BlackboardArtifact artf, Map<BlackboardAttribute.ATTRIBUTE_TYPE, BlackboardAttribute> attrMap) {
|
||||
final BlackboardAttribute attr = attrMap.get(attribute);
|
||||
return (attr != null) ? StringUtils.defaultString(attr.getValueString()) : " ";
|
||||
return (attr != null) ? StringUtils.defaultString(attr.getDisplayString()) : " ";
|
||||
}
|
||||
|
||||
private final BlackboardAttribute.ATTRIBUTE_TYPE attribute;
|
||||
|
@ -142,14 +142,14 @@ public enum MiscTypes implements EventType, ArtifactEventType {
|
||||
new AttributeExtractor(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DEVICE_ID));
|
||||
|
||||
static public String stringValueOf(BlackboardAttribute attr) {
|
||||
return attr != null ? attr.getValueString() : "";
|
||||
return attr != null ? attr.getDisplayString() : "";
|
||||
}
|
||||
|
||||
public static String toFrom(BlackboardAttribute dir) {
|
||||
if (dir == null) {
|
||||
return "";
|
||||
} else {
|
||||
switch (dir.getValueString()) {
|
||||
switch (dir.getDisplayString()) {
|
||||
case "Incoming":
|
||||
return "from";
|
||||
case "Outgoing":
|
||||
|
Loading…
x
Reference in New Issue
Block a user