Autopsy  4.15.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount Class Reference

Classes

class  AccountsQueryCallback
 
class  CentralRepoAccountType
 

Public Member Functions

 CentralRepoAccount (long accountId, CentralRepoAccountType accountType, String typeSpecificIdentifier)
 
boolean equals (Object obj)
 
CentralRepoAccountType getAccountType ()
 
long getId ()
 
String getIdentifier ()
 
int hashCode ()
 

Static Public Member Functions

static Collection< CentralRepoAccountgetAccountsWithIdentifier (String accountIdentifier) throws CentralRepoException
 
static Collection< CentralRepoAccountgetAccountsWithIdentifierLike (String accountIdentifierSubstring) throws CentralRepoException
 
static Collection< CentralRepoAccountgetAllAccounts () throws CentralRepoException
 

Static Private Member Functions

static String normalizeAccountIdentifier (String accountIdentifier) throws TskCoreException
 

Private Attributes

final long accountId
 
final CentralRepoAccountType accountType
 
final String typeSpecificIdentifier
 

Static Private Attributes

static final String ACCOUNTS_QUERY_CLAUSE
 

Detailed Description

This class abstracts an Account as stored in the CR database.

Definition at line 35 of file CentralRepoAccount.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.CentralRepoAccount ( long  accountId,
CentralRepoAccountType  accountType,
String  typeSpecificIdentifier 
)

Member Function Documentation

boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.equals ( Object  obj)
static Collection<CentralRepoAccount> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifier ( String  accountIdentifier) throws CentralRepoException
static

Get all accounts with account identifier matching the given identifier.

Parameters
accountIdentifierAccount identifier to look for.
Returns
Collection of all accounts with identifier matching the given identifier, may be empty.
Exceptions
CentralRepoExceptionIf there is an error in getting the accounts.

Definition at line 245 of file CentralRepoAccount.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.ACCOUNTS_QUERY_CLAUSE, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.executeSelectSQL(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.normalizeAccountIdentifier().

Referenced by org.sleuthkit.autopsy.centralrepository.persona.PersonaAccountDialog.okBtnActionPerformed().

static Collection<CentralRepoAccount> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifierLike ( String  accountIdentifierSubstring) throws CentralRepoException
static

Get all accounts with account identifier matching the given substring.

Parameters
accountIdentifierSubstringAccount identifier substring to look for.
Returns
Collection of all accounts with identifier matching the given substring, may be empty.
Exceptions
CentralRepoExceptionIf there is an error in getting the accounts.

Definition at line 223 of file CentralRepoAccount.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.ACCOUNTS_QUERY_CLAUSE, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.executeSelectSQL(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance().

CentralRepoAccountType org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountType ( )
static Collection<CentralRepoAccount> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAllAccounts ( ) throws CentralRepoException
static

Get all central repo accounts.

Returns
Collection of all accounts with identifier matching the given identifier, may be empty.
Exceptions
CentralRepoExceptionIf there is an error in getting the accounts.

Definition at line 273 of file CentralRepoAccount.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.ACCOUNTS_QUERY_CLAUSE, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.executeSelectSQL(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance().

long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getId ( )
String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getIdentifier ( )

Gets unique identifier (assigned by a provider) for the account. Example includes an email address, a phone number, or a website username.

Returns
type specific account id.

Definition at line 121 of file CentralRepoAccount.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.typeSpecificIdentifier.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.equals().

int org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.hashCode ( )
static String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.normalizeAccountIdentifier ( String  accountIdentifier) throws TskCoreException
staticprivate

Attempts to normalize an account identifier, after trying to guess the account type.

Parameters
accountIdentifierAccount identifier to be normalized.
Returns
normalized identifier
Exceptions
TskCoreException

Definition at line 292 of file CentralRepoAccount.java.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifier().

Member Data Documentation

final long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.accountId
private
final String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.ACCOUNTS_QUERY_CLAUSE
staticprivate
Initial value:
= "SELECT accounts.id as account_id, "
+ " accounts.account_type_id as account_type_id, accounts.account_unique_identifier as account_unique_identifier,"
+ " account_types.id as account_type_id, "
+ " account_types.type_name as type_name, account_types.display_name as display_name, account_types.correlation_type_id as correlation_type_id "
+ " FROM accounts "
+ " JOIN account_types as account_types on accounts.account_type_id = account_types.id "

Definition at line 204 of file CentralRepoAccount.java.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifier(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifierLike(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAllAccounts().

final CentralRepoAccountType org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.accountType
private
final String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.typeSpecificIdentifier
private

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

Copyright © 2012-2020 Basis Technology. Generated on: Mon Jul 6 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.