19 package org.sleuthkit.autopsy.geolocation.datamodel;
21 import java.util.ArrayList;
22 import java.util.Collections;
23 import java.util.HashMap;
24 import java.util.HashSet;
25 import java.util.List;
84 if (longitude == null || latitude == null) {
100 }
catch (TskCoreException ex) {
101 throw new GeoLocationDataException(String.format(
"Failed to get contend for artifact id (%d)", artifact.
getId()), ex);
206 List<BlackboardAttribute> attributeList = artifact.
getAttributes();
210 attributeMap.put(type, attribute);
211 }
catch(IllegalArgumentException ex) {
216 }
catch (TskCoreException ex) {
217 throw new GeoLocationDataException(
"Unable to get attributes from artifact", ex);
234 static List<Waypoint.Property> createGeolocationProperties(Map<BlackboardAttribute.ATTRIBUTE_TYPE, BlackboardAttribute> attributeMap)
throws GeoLocationDataException {
235 List<Waypoint.Property> list =
new ArrayList<>();
237 if(attributeMap != null) {
239 Set<BlackboardAttribute.ATTRIBUTE_TYPE> keys =
new HashSet<>(attributeMap.keySet());
241 for (BlackboardAttribute.ATTRIBUTE_TYPE type : ALREADY_HANDLED_ATTRIBUTES) {
245 for (BlackboardAttribute.ATTRIBUTE_TYPE type : keys) {
247 if (type.getValueType() == BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.JSON) {
250 String key = type.getDisplayName();
253 list.add(
new Waypoint.Property(key, value));
279 Property(String displayName, String value) {
GeoPath getParentGeoPath()
static ATTRIBUTE_TYPE fromID(int typeID)
List< Waypoint.Property > getOtherProperties()
final List< Waypoint.Property > propertiesList
Content getContentById(long id)
final BlackboardArtifact artifact
SleuthkitCase getSleuthkitCase()
String getDisplayString()
BlackboardArtifact getArtifact()
List< BlackboardAttribute > getAttributes()
final GeoPath parentGeoPath