Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.communications.ContactCache Class Reference

Static Public Member Functions

static synchronized List< BlackboardArtifact > getContacts (Account account) throws ExecutionException
 

Private Member Functions

 ContactCache ()
 
Map< String, List< BlackboardArtifact > > buildMap () throws TskCoreException, SQLException
 

Static Private Member Functions

static synchronized ContactCache getInstance ()
 

Private Attributes

final LoadingCache< String, Map< String, List< BlackboardArtifact > > > accountMap
 

Static Private Attributes

static ContactCache instance
 
static final Logger logger = Logger.getLogger(ContactCache.class.getName())
 

Detailed Description

A singleton cache of the Contact artifacts for accounts. The map of account unique ids to list of contact artifacts is stored in a LoadingCache which expires after 10 of non-use.

Definition at line 51 of file ContactCache.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.communications.ContactCache.ContactCache ( )
private

Member Function Documentation

Map<String, List<BlackboardArtifact> > org.sleuthkit.autopsy.communications.ContactCache.buildMap ( ) throws TskCoreException, SQLException
private

Builds the map of account IDs to contacts that reference them.

Returns
A map of account IDs to contact artifacts.
Exceptions
TskCoreException
SQLException

Definition at line 138 of file ContactCache.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCase(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().

Referenced by org.sleuthkit.autopsy.communications.ContactCache.ContactCache().

static synchronized List<BlackboardArtifact> org.sleuthkit.autopsy.communications.ContactCache.getContacts ( Account  account) throws ExecutionException
static

Returns the list of Contacts for the given Account.

Parameters
accountAccount instance.
Returns
List of TSK_CONTACT artifacts that references the given Account. An empty list is returned if no contacts are found.
Exceptions
ExecutionException

Definition at line 69 of file ContactCache.java.

References org.sleuthkit.autopsy.communications.ContactCache.accountMap, and org.sleuthkit.autopsy.communications.ContactCache.getInstance().

Referenced by org.sleuthkit.autopsy.communications.relationships.RelationshipsNodeUtilities.getAccoutToolTipText().

static synchronized ContactCache org.sleuthkit.autopsy.communications.ContactCache.getInstance ( )
staticprivate

Returns the singleton instance of the cache object.

Returns
AccountCache instance.

Definition at line 122 of file ContactCache.java.

References org.sleuthkit.autopsy.communications.ContactCache.ContactCache(), and org.sleuthkit.autopsy.communications.ContactCache.instance.

Referenced by org.sleuthkit.autopsy.communications.ContactCache.getContacts().

Member Data Documentation

final LoadingCache<String, Map<String, List<BlackboardArtifact> > > org.sleuthkit.autopsy.communications.ContactCache.accountMap
private
ContactCache org.sleuthkit.autopsy.communications.ContactCache.instance
staticprivate
final Logger org.sleuthkit.autopsy.communications.ContactCache.logger = Logger.getLogger(ContactCache.class.getName())
staticprivate

Definition at line 53 of file ContactCache.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Thu Sep 29 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.