Autopsy  4.19.0
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.guiutils.ContactCache Class Reference

Static Public Member Functions

static synchronized List< String > getContactNameList (String accountTypeSpecificID) throws TskCoreException
 
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.guiutils.ContactCache.ContactCache ( )
private

Member Function Documentation

Map<String, List<BlackboardArtifact> > org.sleuthkit.autopsy.guiutils.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 163 of file ContactCache.java.

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

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

static synchronized List<String> org.sleuthkit.autopsy.guiutils.ContactCache.getContactNameList ( String  accountTypeSpecificID) throws TskCoreException
static

Returns a list of Contact TSK_NAME values for the given account type specific id.

Parameters
accountTypeSpecificIDAccount type specific id
Returns
List of contact string names or empty list if none were found.
Exceptions
TskCoreException

Definition at line 83 of file ContactCache.java.

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

Referenced by org.sleuthkit.autopsy.contentviewers.artifactviewers.CallLogArtifactViewer.getCallLogViewData().

static synchronized List<BlackboardArtifact> org.sleuthkit.autopsy.guiutils.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.guiutils.ContactCache.accountMap, and org.sleuthkit.autopsy.guiutils.ContactCache.getInstance().

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

Member Data Documentation

final LoadingCache<String, Map<String, List<BlackboardArtifact> > > org.sleuthkit.autopsy.guiutils.ContactCache.accountMap
private
ContactCache org.sleuthkit.autopsy.guiutils.ContactCache.instance
staticprivate
final Logger org.sleuthkit.autopsy.guiutils.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-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.