19 package org.sleuthkit.datamodel.blackboardutils;
21 import java.util.ArrayList;
22 import java.util.List;
43 private final String programName;
60 super(caseDb, moduleName, srcContent);
61 this.programName = programName;
87 if (trackPoints == null || trackPoints.isEmpty()) {
88 throw new IllegalArgumentException(String.format(
"addTrack was passed a null or empty list of track points"));
91 List<BlackboardAttribute> attributes =
new ArrayList<>();
93 if (trackName != null) {
100 if (programName != null) {
104 if (moreAttributes != null) {
105 attributes.addAll(moreAttributes);
111 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName());
142 if (wayPoints == null || wayPoints.isEmpty()) {
143 throw new IllegalArgumentException(String.format(
"addRoute was passed a null or empty list of waypoints"));
147 List<BlackboardAttribute> attributes =
new ArrayList<>();
151 if (routeName != null) {
155 if (creationTime != null) {
159 if (programName != null) {
163 if (moreAttributes != null) {
164 attributes.addAll(moreAttributes);
169 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName());
194 if (areaPoints == null || areaPoints.isEmpty()) {
195 throw new IllegalArgumentException(String.format(
"addArea was passed a null or empty list of points"));
199 List<BlackboardAttribute> attributes =
new ArrayList<>();
202 if (areaName != null) {
206 if (programName != null) {
210 if (moreAttributes != null) {
211 attributes.addAll(moreAttributes);
216 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName());
static< T > BlackboardAttribute toAttribute(BlackboardAttribute.Type attrType, String moduleName, T attrValue)
void addAttributes(Collection< BlackboardAttribute > attributes)
BlackboardArtifact addArea(String areaName, GeoAreaPoints areaPoints, List< BlackboardAttribute > moreAttributes)
BlackboardArtifact addTrack(String trackName, GeoTrackPoints trackPoints, List< BlackboardAttribute > moreAttributes)
BlackboardArtifact newArtifact(int artifactTypeID)
GeoArtifactsHelper(SleuthkitCase caseDb, String moduleName, String programName, Content srcContent)
BlackboardArtifact addRoute(String routeName, Long creationTime, GeoWaypoints wayPoints, List< BlackboardAttribute > moreAttributes)