commenting

This commit is contained in:
Greg DiCristofaro 2021-05-03 09:07:05 -04:00
parent b566201f91
commit 8cd287e3dd

View File

@ -536,15 +536,23 @@ public class Artifacts {
} }
/** /**
* Node encapsulating blackboard artifact type. This is used on the * Default node encapsulating a blackboard artifact type. This is used on
* left-hand navigation side of the Autopsy UI as the parent node for all of * the left-hand navigation side of the Autopsy UI as the parent node for
* the artifacts of a given type. Its children will be * all of the artifacts of a given type. Its children will be
* BlackboardArtifactNode objects. * BlackboardArtifactNode objects.
*/ */
public static class TypeNode extends UpdatableCountTypeNode { public static class TypeNode extends UpdatableCountTypeNode {
private final BlackboardArtifact.Type type; private final BlackboardArtifact.Type type;
/**
* Main constructor.
*
* @param type The blackboard artifact type for this node.
* @param filteringDSObjId The data source object id to use for
* filtering. If id is less than or equal to 0,
* no filtering will occur.
*/
TypeNode(BlackboardArtifact.Type type, long filteringDSObjId) { TypeNode(BlackboardArtifact.Type type, long filteringDSObjId) {
super(Children.create(new ArtifactFactory(type, filteringDSObjId), true), super(Children.create(new ArtifactFactory(type, filteringDSObjId), true),
Lookups.singleton(type.getDisplayName()), Lookups.singleton(type.getDisplayName()),
@ -612,6 +620,14 @@ public class Artifacts {
private final RefreshThrottler refreshThrottler = new RefreshThrottler(this); private final RefreshThrottler refreshThrottler = new RefreshThrottler(this);
private final long filteringDSObjId; private final long filteringDSObjId;
/**
* Main constructor.
*
* @param type The blackboard artifact type for this node.
* @param filteringDSObjId The data source object id to use for
* filtering. If id is less than or equal to 0,
* no filtering will occur.
*/
ArtifactFactory(BlackboardArtifact.Type type, long filteringDSObjId) { ArtifactFactory(BlackboardArtifact.Type type, long filteringDSObjId) {
super(type.getTypeName()); super(type.getTypeName());
this.type = type; this.type = type;