From 2de422a1a60d100fc7906ad5c9a12b0f5228fbb0 Mon Sep 17 00:00:00 2001 From: apriestman Date: Thu, 21 Oct 2021 13:10:21 -0400 Subject: [PATCH] Switch to Blackboard methods --- .../autopsy/modules/leappanalyzers/LeappFileProcessor.java | 4 ++-- .../autopsy/report/infrastructure/TableReportGenerator.java | 2 +- .../report/modules/portablecase/PortableCaseReportModule.java | 4 ++-- .../autopsy/experimental/autoingest/FileExportRuleSet.java | 4 ++-- .../sleuthkit/autopsy/recentactivity/ExtractRecycleBin.java | 2 +- .../org/sleuthkit/autopsy/thunderbirdparser/VcardParser.java | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/LeappFileProcessor.java b/Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/LeappFileProcessor.java index 06ee9efe4c..9f19f18996 100644 --- a/Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/LeappFileProcessor.java +++ b/Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/LeappFileProcessor.java @@ -1120,7 +1120,7 @@ public final class LeappFileProcessor { BlackboardArtifact.Type foundArtifactType = null; try { - foundArtifactType = Case.getCurrentCase().getSleuthkitCase().getArtifactType(artifactName); + foundArtifactType = Case.getCurrentCase().getSleuthkitCase().getBlackboard().getArtifactType(artifactName); } catch (TskCoreException ex) { logger.log(Level.SEVERE, String.format("There was an issue that arose while trying to fetch artifact type for %s.", artifactName), ex); } @@ -1165,7 +1165,7 @@ public final class LeappFileProcessor { BlackboardAttribute.Type foundAttrType = null; try { - foundAttrType = Case.getCurrentCase().getSleuthkitCase().getAttributeType(attributeName.toUpperCase()); + foundAttrType = Case.getCurrentCase().getSleuthkitCase().getBlackboard().getAttributeType(attributeName.toUpperCase()); } catch (TskCoreException ex) { logger.log(Level.SEVERE, String.format("There was an issue that arose while trying to fetch attribute type for %s.", attributeName), ex); } diff --git a/Core/src/org/sleuthkit/autopsy/report/infrastructure/TableReportGenerator.java b/Core/src/org/sleuthkit/autopsy/report/infrastructure/TableReportGenerator.java index e2c4d0d1eb..bdb895bec6 100644 --- a/Core/src/org/sleuthkit/autopsy/report/infrastructure/TableReportGenerator.java +++ b/Core/src/org/sleuthkit/autopsy/report/infrastructure/TableReportGenerator.java @@ -1232,7 +1232,7 @@ class TableReportGenerator { continue; } try { - artifacts.add(new ArtifactData(artifact, Case.getCurrentCaseThrows().getSleuthkitCase().getBlackboardAttributes(artifact), uniqueTagNames)); + artifacts.add(new ArtifactData(artifact, Case.getCurrentCaseThrows().getSleuthkitCase().getBlackboard().getBlackboardAttributes(artifact), uniqueTagNames)); } catch (TskCoreException ex) { errorList.add(NbBundle.getMessage(this.getClass(), "ReportGenerator.errList.failedGetBBAttribs")); logger.log(Level.SEVERE, "Failed to get Blackboard Attributes when generating report.", ex); //NON-NLS diff --git a/Core/src/org/sleuthkit/autopsy/report/modules/portablecase/PortableCaseReportModule.java b/Core/src/org/sleuthkit/autopsy/report/modules/portablecase/PortableCaseReportModule.java index f18f05f61f..3eb07b45f6 100644 --- a/Core/src/org/sleuthkit/autopsy/report/modules/portablecase/PortableCaseReportModule.java +++ b/Core/src/org/sleuthkit/autopsy/report/modules/portablecase/PortableCaseReportModule.java @@ -354,7 +354,7 @@ public class PortableCaseReportModule implements ReportModule { } for (BlackboardAttribute.ATTRIBUTE_TYPE type : BlackboardAttribute.ATTRIBUTE_TYPE.values()) { try { - oldAttrTypeIdToNewAttrType.put(type.getTypeID(), portableSkCase.getAttributeType(type.getLabel())); + oldAttrTypeIdToNewAttrType.put(type.getTypeID(), portableSkCase.getBlackboard().getAttributeType(type.getLabel())); } catch (TskCoreException ex) { handleError("Error looking up attribute name " + type.getLabel(), Bundle.PortableCaseReportModule_generateReport_errorLookingUpAttrType(type.getLabel()), @@ -1084,7 +1084,7 @@ public class PortableCaseReportModule implements ReportModule { return oldArtTypeIdToNewArtTypeId.get(oldArtifact.getArtifactTypeID()); } - BlackboardArtifact.Type oldCustomType = currentCase.getSleuthkitCase().getArtifactType(oldArtifact.getArtifactTypeName()); + BlackboardArtifact.Type oldCustomType = currentCase.getSleuthkitCase().getBlackboard().getArtifactType(oldArtifact.getArtifactTypeName()); try { BlackboardArtifact.Type newCustomType = portableSkCase.getBlackboard().getOrAddArtifactType(oldCustomType.getTypeName(), oldCustomType.getDisplayName()); oldArtTypeIdToNewArtTypeId.put(oldArtifact.getArtifactTypeID(), newCustomType.getTypeID()); diff --git a/Experimental/src/org/sleuthkit/autopsy/experimental/autoingest/FileExportRuleSet.java b/Experimental/src/org/sleuthkit/autopsy/experimental/autoingest/FileExportRuleSet.java index 198dd8c5bd..3bc376621b 100644 --- a/Experimental/src/org/sleuthkit/autopsy/experimental/autoingest/FileExportRuleSet.java +++ b/Experimental/src/org/sleuthkit/autopsy/experimental/autoingest/FileExportRuleSet.java @@ -1084,13 +1084,13 @@ final class FileExportRuleSet implements Serializable, Comparable