19 package org.sleuthkit.autopsy.communications.relationships;
21 import java.util.HashSet;
23 import java.util.logging.Level;
57 public SelectionInfo(Set<AccountDeviceInstance> selectedNodes, Set<GraphEdge> selectedEdges,
58 CommunicationsFilter communicationFilter) {
63 accounts =
new HashSet<>();
64 selectedNodes.forEach((instance) -> {
65 accounts.add(instance.getAccount());
107 Set<Content> getRelationshipSources() throws TskCoreException {
109 CommunicationsManager communicationManager;
113 throw new TskCoreException(
"Failed to get current case", ex);
116 Set<Content> relationshipSources =
new HashSet<>();
123 relationshipSources.addAll(communicationManager.getRelationshipSources(edge.getStartNode(),
126 }
catch (TskCoreException ex) {
127 logger.log(Level.SEVERE,
"Failed to get relationships from case database.", ex);
130 return relationshipSources;
134 if (accountArtifacts == null) {
135 accountArtifacts =
new HashSet<>();
138 final Set<Content> relationshipSources = getRelationshipSources();
139 relationshipSources.stream().filter((content) -> (content instanceof BlackboardArtifact)).forEachOrdered((content) -> {
140 accountArtifacts.add((BlackboardArtifact) content);
142 }
catch (TskCoreException ex) {
143 logger.log(Level.SEVERE,
"Failed to load relationship sources.", ex);
156 AccountDeviceInstance startNode;
157 AccountDeviceInstance endNode;
159 public GraphEdge(AccountDeviceInstance startNode, AccountDeviceInstance endNode) {
160 this.startNode = startNode;
161 this.endNode = endNode;
Set< AccountDeviceInstance > getSelectedNodes()
final Set< AccountDeviceInstance > selectedNodes
AccountDeviceInstance getEndNode()
SelectionInfo(Set< AccountDeviceInstance > selectedNodes, Set< GraphEdge > selectedEdges, CommunicationsFilter communicationFilter)
Set< BlackboardArtifact > accountArtifacts
final Set< Account > accounts
GraphEdge(AccountDeviceInstance startNode, AccountDeviceInstance endNode)
SleuthkitCase getSleuthkitCase()
final Set< GraphEdge > selectedEdges
final CommunicationsFilter communicationFilter
static final Logger logger
synchronized static Logger getLogger(String name)
static Case getCurrentCaseThrows()
Set< BlackboardArtifact > getArtifacts()
AccountDeviceInstance getStartNode()
Set< GraphEdge > getSelectedEdges()
CommunicationsFilter getCommunicationsFilter()
Set< Account > getAccounts()