mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
Skeleton for creating correlation attrs for account artifacts
This commit is contained in:
parent
c8bf39e715
commit
b1050b9670
@ -147,7 +147,7 @@ public class CorrelationAttributeUtil {
|
|||||||
makeCorrAttrFromArtifactAttr(correlationAttrs, artToExamine, BlackboardAttribute.ATTRIBUTE_TYPE.TSK_EMAIL, CorrelationAttributeInstance.EMAIL_TYPE_ID);
|
makeCorrAttrFromArtifactAttr(correlationAttrs, artToExamine, BlackboardAttribute.ATTRIBUTE_TYPE.TSK_EMAIL, CorrelationAttributeInstance.EMAIL_TYPE_ID);
|
||||||
|
|
||||||
} else if (artifactTypeID == ARTIFACT_TYPE.TSK_ACCOUNT.getTypeID()) {
|
} else if (artifactTypeID == ARTIFACT_TYPE.TSK_ACCOUNT.getTypeID()) {
|
||||||
// RJCTODO: Make a correlation attribute by switching on account type
|
makeAttributeFromAccountArtifact(correlationAttrs, artToExamine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (CentralRepoException ex) {
|
} catch (CentralRepoException ex) {
|
||||||
@ -163,6 +163,21 @@ public class CorrelationAttributeUtil {
|
|||||||
return correlationAttrs;
|
return correlationAttrs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Makes a correlation attribute instance for an account artifact.
|
||||||
|
*
|
||||||
|
* IMPORTANT: The correlation attribute instance is NOT added to the central
|
||||||
|
* repository by this method.
|
||||||
|
*
|
||||||
|
* @param acctArtifact An account artifact.
|
||||||
|
*/
|
||||||
|
private static CorrelationAttributeInstance makeAttributeFromAccountArtifact(List<CorrelationAttributeInstance> correlationAttrs, BlackboardArtifact acctArtifact) {
|
||||||
|
// TODO: Convert TSK_ACCOUNT_TYPE attribute to correlation attribute type
|
||||||
|
// TODO: Extract TSK_ID as value
|
||||||
|
// return makeCorrelationAttributeInstanceUsingTypeValue(acctArtifact, null, "");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a CorrelationAttributeInstance of the specified type to the provided
|
* Add a CorrelationAttributeInstance of the specified type to the provided
|
||||||
* list if the artifactForInstance has an Attribute of the given type with a
|
* list if the artifactForInstance has an Attribute of the given type with a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user