19 package org.sleuthkit.datamodel.blackboardutils;
21 import java.util.ArrayList;
22 import java.util.List;
49 private final String programName;
66 super(caseDb, moduleName, srcContent);
67 this.programName = programName;
93 if (trackPoints == null || trackPoints.isEmpty()) {
94 throw new IllegalArgumentException(String.format(
"addTrack was passed a null or empty list of track points"));
97 List<BlackboardAttribute> attributes =
new ArrayList<>();
99 if (trackName != null) {
106 if (programName != null) {
110 if (moreAttributes != null) {
111 attributes.addAll(moreAttributes);
114 Content content = getContent();
117 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName());
148 if (wayPoints == null || wayPoints.isEmpty()) {
149 throw new IllegalArgumentException(String.format(
"addRoute was passed a null or empty list of waypoints"));
152 List<BlackboardAttribute> attributes =
new ArrayList<>();
156 if (routeName != null) {
160 if (creationTime != null) {
164 if (programName != null) {
168 if (moreAttributes != null) {
169 attributes.addAll(moreAttributes);
172 Content content = getContent();
175 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName());
201 if (areaPoints == null || areaPoints.isEmpty()) {
202 throw new IllegalArgumentException(String.format(
"addArea was passed a null or empty list of points"));
205 List<BlackboardAttribute> attributes =
new ArrayList<>();
208 if (areaName != null) {
212 if (programName != null) {
216 if (moreAttributes != null) {
217 attributes.addAll(moreAttributes);
220 Content content = getContent();
223 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName());
static< T > BlackboardAttribute toAttribute(BlackboardAttribute.Type attrType, String moduleName, T attrValue)
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)