19 package org.sleuthkit.datamodel.blackboardutils;
21 import java.util.ArrayList;
22 import java.util.List;
23 import java.util.Optional;
48 private final String programName;
66 super(caseDb, moduleName, srcContent, ingestJobId);
67 this.programName = programName;
89 this(caseDb, moduleName, programName, srcContent, null);
115 if (trackPoints == null || trackPoints.isEmpty()) {
116 throw new IllegalArgumentException(String.format(
"addTrack was passed a null or empty list of track points"));
119 List<BlackboardAttribute> attributes =
new ArrayList<>();
121 if (trackName != null) {
128 if (programName != null) {
132 if (moreAttributes != null) {
133 attributes.addAll(moreAttributes);
136 Content content = getContent();
139 Optional<Long> ingestJobId = getIngestJobId();
140 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName(), ingestJobId.orElse(null));
171 if (wayPoints == null || wayPoints.isEmpty()) {
172 throw new IllegalArgumentException(String.format(
"addRoute was passed a null or empty list of waypoints"));
175 List<BlackboardAttribute> attributes =
new ArrayList<>();
179 if (routeName != null) {
183 if (creationTime != null) {
187 if (programName != null) {
191 if (moreAttributes != null) {
192 attributes.addAll(moreAttributes);
195 Content content = getContent();
198 Optional<Long> ingestJobId = getIngestJobId();
199 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName(), ingestJobId.orElse(null));
225 if (areaPoints == null || areaPoints.isEmpty()) {
226 throw new IllegalArgumentException(String.format(
"addArea was passed a null or empty list of points"));
229 List<BlackboardAttribute> attributes =
new ArrayList<>();
232 if (areaName != null) {
236 if (programName != null) {
240 if (moreAttributes != null) {
241 attributes.addAll(moreAttributes);
244 Content content = getContent();
247 Optional<Long> ingestJobId = getIngestJobId();
248 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName(), ingestJobId.orElse(null));
static< T > BlackboardAttribute toAttribute(BlackboardAttribute.Type attrType, String moduleName, T attrValue)
GeoArtifactsHelper(SleuthkitCase caseDb, String moduleName, String programName, Content srcContent, Long ingestJobId)
DataArtifact newDataArtifact(BlackboardArtifact.Type artifactType, Collection< BlackboardAttribute > attributesList)
BlackboardArtifact addArea(String areaName, GeoAreaPoints areaPoints, List< BlackboardAttribute > moreAttributes)
BlackboardArtifact addTrack(String trackName, GeoTrackPoints trackPoints, List< BlackboardAttribute > moreAttributes)
GeoArtifactsHelper(SleuthkitCase caseDb, String moduleName, String programName, Content srcContent)
BlackboardArtifact addRoute(String routeName, Long creationTime, GeoWaypoints wayPoints, List< BlackboardAttribute > moreAttributes)