Skip to content
Snippets Groups Projects
Unverified Commit 76a2cbb0 authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #2500 from eugene7646/rename_CR_artifacts_7797

CR is using new TSK_PREVIOUSLY_SEEN artifact (7797)
parents 0c75eee4 81372532
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
import java.sql.SQLException; import java.sql.SQLException;
import java.text.MessageFormat; import java.text.MessageFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
...@@ -711,7 +710,7 @@ public BlackboardArtifact newArtifact(int artifactTypeID) throws TskCoreExceptio ...@@ -711,7 +710,7 @@ public BlackboardArtifact newArtifact(int artifactTypeID) throws TskCoreExceptio
public AnalysisResultAdded newAnalysisResult(BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection<BlackboardAttribute> attributesList) throws TskCoreException { public AnalysisResultAdded newAnalysisResult(BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection<BlackboardAttribute> attributesList) throws TskCoreException {
CaseDbTransaction trans = sleuthkitCase.beginTransaction(); CaseDbTransaction trans = sleuthkitCase.beginTransaction();
try { try {
AnalysisResultAdded resultAdded = sleuthkitCase.getBlackboard().newAnalysisResult(artifactType, this.getObjectID(), this.getDataSource().getId(), score, conclusion, configuration, justification, attributesList, trans); AnalysisResultAdded resultAdded = sleuthkitCase.getBlackboard().newAnalysisResult(artifactType, this.getId(), this.getDataSource().getId(), score, conclusion, configuration, justification, attributesList, trans);
trans.commit(); trans.commit();
return resultAdded; return resultAdded;
...@@ -725,7 +724,7 @@ public AnalysisResultAdded newAnalysisResult(BlackboardArtifact.Type artifactTyp ...@@ -725,7 +724,7 @@ public AnalysisResultAdded newAnalysisResult(BlackboardArtifact.Type artifactTyp
public AnalysisResultAdded newAnalysisResult(BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection<BlackboardAttribute> attributesList, long dataSourceId) throws TskCoreException { public AnalysisResultAdded newAnalysisResult(BlackboardArtifact.Type artifactType, Score score, String conclusion, String configuration, String justification, Collection<BlackboardAttribute> attributesList, long dataSourceId) throws TskCoreException {
CaseDbTransaction trans = sleuthkitCase.beginTransaction(); CaseDbTransaction trans = sleuthkitCase.beginTransaction();
try { try {
AnalysisResultAdded resultAdded = sleuthkitCase.getBlackboard().newAnalysisResult(artifactType, this.getObjectID(), dataSourceId, score, conclusion, configuration, justification, attributesList, trans); AnalysisResultAdded resultAdded = sleuthkitCase.getBlackboard().newAnalysisResult(artifactType, this.getId(), dataSourceId, score, conclusion, configuration, justification, attributesList, trans);
trans.commit(); trans.commit();
return resultAdded; return resultAdded;
...@@ -1288,6 +1287,11 @@ public static final class Type implements Serializable { ...@@ -1288,6 +1287,11 @@ public static final class Type implements Serializable {
*/ */
public static final Type TSK_WEB_CATEGORIZATION = new BlackboardArtifact.Type(68, "TSK_WEB_CATEGORIZATION", bundle.getString("BlackboardArtifact.tskWebCategorization.text"), Category.ANALYSIS_RESULT); public static final Type TSK_WEB_CATEGORIZATION = new BlackboardArtifact.Type(68, "TSK_WEB_CATEGORIZATION", bundle.getString("BlackboardArtifact.tskWebCategorization.text"), Category.ANALYSIS_RESULT);
/**
* Indicates that the file or artifacts was previously seen in another Autopsy case.
*/
public static final Type TSK_PREVIOUSLY_SEEN = new BlackboardArtifact.Type(69, "TSK_PREVIOUSLY_SEEN", bundle.getString("BlackboardArtifact.tskPreviouslySeen.text"), Category.ANALYSIS_RESULT);
// NOTE: When adding a new standard BlackboardArtifact.Type, add the instance and then add to the STANDARD_TYPES map. // NOTE: When adding a new standard BlackboardArtifact.Type, add the instance and then add to the STANDARD_TYPES map.
/** /**
* All standard artifact types with ids mapped to the type. * All standard artifact types with ids mapped to the type.
...@@ -1353,7 +1357,8 @@ public static final class Type implements Serializable { ...@@ -1353,7 +1357,8 @@ public static final class Type implements Serializable {
TSK_USER_DEVICE_EVENT, TSK_USER_DEVICE_EVENT,
TSK_YARA_HIT, TSK_YARA_HIT,
TSK_GPS_AREA, TSK_GPS_AREA,
TSK_WEB_CATEGORIZATION TSK_WEB_CATEGORIZATION,
TSK_PREVIOUSLY_SEEN
).collect(Collectors.toMap(type -> type.getTypeID(), type -> type))); ).collect(Collectors.toMap(type -> type.getTypeID(), type -> type)));
private final String typeName; private final String typeName;
...@@ -1849,7 +1854,12 @@ public enum ARTIFACT_TYPE implements SleuthkitVisitableItem { ...@@ -1849,7 +1854,12 @@ public enum ARTIFACT_TYPE implements SleuthkitVisitableItem {
TSK_GPS_AREA(67, "TSK_GPS_AREA", TSK_GPS_AREA(67, "TSK_GPS_AREA",
bundle.getString("BlackboardArtifact.tskGPSArea.text"), Category.DATA_ARTIFACT), bundle.getString("BlackboardArtifact.tskGPSArea.text"), Category.DATA_ARTIFACT),
TSK_WEB_CATEGORIZATION(68, "TSK_WEB_CATEGORIZATION", TSK_WEB_CATEGORIZATION(68, "TSK_WEB_CATEGORIZATION",
bundle.getString("BlackboardArtifact.tskWebCategorization.text"), Category.ANALYSIS_RESULT),; bundle.getString("BlackboardArtifact.tskWebCategorization.text"), Category.ANALYSIS_RESULT),
/**
* Indicates that the file or artifacts was previously seen in another Autopsy case.
*/
TSK_PREVIOUSLY_SEEN(69, "TSK_PREVIOUSLY_SEEN",
bundle.getString("BlackboardArtifact.tskPreviouslySeen.text"), Category.ANALYSIS_RESULT),;
/* /*
* To developers: For each new artifact, ensure that: - The enum value * To developers: For each new artifact, ensure that: - The enum value
......
...@@ -64,6 +64,7 @@ BlackboardArtifact.tskUserDeviceEvent.text=User Device Events ...@@ -64,6 +64,7 @@ BlackboardArtifact.tskUserDeviceEvent.text=User Device Events
BlackboardArtifact.shortDescriptionDate.text=at {0} BlackboardArtifact.shortDescriptionDate.text=at {0}
BlackboardArtifact.tskAssociatedObject.text=Associated Object BlackboardArtifact.tskAssociatedObject.text=Associated Object
BlackboardArtifact.tskWebCategorization.text=Web Categories BlackboardArtifact.tskWebCategorization.text=Web Categories
BlackboardArtifact.tskPreviouslySeen.text=Previously Seen
BlackboardArtifact.tskYaraHit.text=YARA Hit BlackboardArtifact.tskYaraHit.text=YARA Hit
BlackboardArtifact.tskGPSArea.text=GPS Area BlackboardArtifact.tskGPSArea.text=GPS Area
BlackboardAttribute.tskAccountType.text=Account Type BlackboardAttribute.tskAccountType.text=Account Type
......
...@@ -64,6 +64,7 @@ BlackboardArtifact.tskUserDeviceEvent.text=User Device Events ...@@ -64,6 +64,7 @@ BlackboardArtifact.tskUserDeviceEvent.text=User Device Events
BlackboardArtifact.shortDescriptionDate.text=at {0} BlackboardArtifact.shortDescriptionDate.text=at {0}
BlackboardArtifact.tskAssociatedObject.text=Associated Object BlackboardArtifact.tskAssociatedObject.text=Associated Object
BlackboardArtifact.tskWebCategorization.text=Web Categories BlackboardArtifact.tskWebCategorization.text=Web Categories
BlackboardArtifact.tskPreviouslySeen.text=Previously Seen
BlackboardArtifact.tskYaraHit.text=YARA Hit BlackboardArtifact.tskYaraHit.text=YARA Hit
BlackboardArtifact.tskGPSArea.text=GPS Area BlackboardArtifact.tskGPSArea.text=GPS Area
BlackboardAttribute.tskAccountType.text=Account Type BlackboardAttribute.tskAccountType.text=Account Type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment