Merge pull request #2326 from millmanorama/835-account-reporting

835 account reporting
This commit is contained in:
Richard Cordovano 2016-09-12 10:16:43 -04:00 committed by GitHub
commit 5ff4e3679d
3 changed files with 26 additions and 1 deletions

View File

@ -254,6 +254,9 @@ class ReportHTML implements TableReportModule {
case TSK_REMOTE_DRIVE:
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/drive_network.png"); //NON-NLS
break;
case TSK_CREDIT_CARD_ACCOUNT:
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/credit-card.png"); //NON-NLS
break;
default:
logger.log(Level.WARNING, "useDataTypeIcon: unhandled artifact type = " + dataType); //NON-NLS
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/star.png"); //NON-NLS

View File

@ -1,7 +1,7 @@
/*
* Autopsy Forensic Browser
*
* Copyright 2013 Basis Technology Corp.
* Copyright 2013-16 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
@ -1449,6 +1449,8 @@ class TableReportGenerator {
columns.add(new AttributeColumn(NbBundle.getMessage(this.getClass(), "ReportGenerator.artTableColHdr.remotePath"),
new BlackboardAttribute.Type(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_REMOTE_PATH)));
} else if (artifactTypeId == BlackboardArtifact.ARTIFACT_TYPE.TSK_CREDIT_CARD_ACCOUNT.getTypeID()) {
columns.add(new StatusColumn());
} else {
// This is the case that it is a custom type. The reason an else is
// necessary is to make sure that the source file column is added
@ -1562,6 +1564,26 @@ class TableReportGenerator {
Set<BlackboardAttribute.Type> removeTypeFromSet(Set<BlackboardAttribute.Type> types);
}
private class StatusColumn implements Column {
@NbBundle.Messages("TableReportGenerator.StatusColumn.Header=Review Status")
@Override
public String getColumnHeader() {
return Bundle.TableReportGenerator_StatusColumn_Header();
}
@Override
public String getCellData(ArtifactData artData) {
return artData.getArtifact().getReviewStatus().getDisplayName();
}
@Override
public Set<BlackboardAttribute.Type> removeTypeFromSet(Set<BlackboardAttribute.Type> types) {
// This column doesn't have a type, so nothing to remove
return types;
}
}
private class AttributeColumn implements Column {
private final String columnHeader;

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B