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

Inherits Serializable.

Public Member Functions

 Type (int typeId, String displayName, String dbTableName, Boolean supported, Boolean enabled) throws EamDbException
 
 Type (String displayName, String dbTableName, Boolean supported, Boolean enabled) throws EamDbException
 
boolean equals (Object that)
 
String getDbTableName ()
 
String getDisplayName ()
 
int getId ()
 
int hashCode ()
 
Boolean isEnabled ()
 
Boolean isSupported ()
 
void setDbTableName (String dbTableName) throws EamDbException
 
void setDisplayName (String displayName)
 
void setEnabled (Boolean enabled)
 
void setId (int typeId)
 
void setSupported (Boolean supported)
 
String toString ()
 

Private Member Functions

boolean sameType (CorrelationAttributeInstance.Type that)
 

Private Attributes

String dbTableName
 
String displayName
 
Boolean enabled
 
Boolean supported
 
int typeId
 

Static Private Attributes

static final String DB_NAMES_REGEX = "[a-z][a-z0-9_]*"
 

Detailed Description

Correlation Types which determine which table to query in the CR

Definition at line 275 of file CorrelationAttributeInstance.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.Type ( int  typeId,
String  displayName,
String  dbTableName,
Boolean  supported,
Boolean  enabled 
) throws EamDbException
Parameters
typeIdUnique ID for this Correlation Type
displayNameName of this type displayed in the UI.
dbTableNameCentral repository db table where data of this type is stored. Must start with a lowercase letter and only contain lowercase letters, numbers, and '_' characters.
supportedIs this Type currently supported
enabledIs this Type currently enabled.

Definition at line 294 of file CorrelationAttributeInstance.java.

org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.Type ( String  displayName,
String  dbTableName,
Boolean  supported,
Boolean  enabled 
) throws EamDbException

Constructor for custom types where we do not know the Type ID until the row has been entered into the correlation_types table in the central repository.

Parameters
displayNameName of this type displayed in the UI.
dbTableNameCentral repository db table where data of this type is stored Must start with a lowercase letter and only contain lowercase letters, numbers, and '_' characters.
supportedIs this Type currently supported
enabledIs this Type currently enabled.

Definition at line 320 of file CorrelationAttributeInstance.java.

Member Function Documentation

boolean org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.equals ( Object  that)

Determine if 2 Type objects are equal

Parameters
thatType object for comparison.
Returns
true or false

Definition at line 332 of file CorrelationAttributeInstance.java.

String org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.getDbTableName ( )

To support having different database tables for each Type, this field provides the prefix/suffix of the table name, which allows us to automatically compute the table names and index names.

It is the prefix for the instances tables *_instances. (i.e. file_instances) It is the suffix for the reference tables reference_*. (i.e. reference_file)

When custom Types are added in the future, they are already supported by just giving the desired value for the table name for each custom Type. Possibly having all custom Types use a common table name.

Returns
the dbTableName

Definition at line 461 of file CorrelationAttributeInstance.java.

String org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.getDisplayName ( )
int org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.getId ( )
Returns
the typeId

Definition at line 385 of file CorrelationAttributeInstance.java.

int org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.hashCode ( )

Definition at line 357 of file CorrelationAttributeInstance.java.

Boolean org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.isEnabled ( )

Check if this Artifact Type is enabled.

Returns
true or false

Definition at line 419 of file CorrelationAttributeInstance.java.

Boolean org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.isSupported ( )

Check if this Artifact Type is supported.

Returns
true or false

Definition at line 401 of file CorrelationAttributeInstance.java.

boolean org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.sameType ( CorrelationAttributeInstance.Type  that)
private

Determines if the content of this artifact type object is equivalent to the content of another artifact type object.

Parameters
thatthe other type
Returns
true if it is the same type

Definition at line 350 of file CorrelationAttributeInstance.java.

void org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.setDbTableName ( String  dbTableName) throws EamDbException

To support having different database tables for each Type, this field provides the prefix/suffix of the table name, which allows us to automatically compute the table names and index names.

It is the prefix for the instances tables *_instances. (i.e. file_instances) It is the suffix for the reference tables reference_*. (i.e. reference_file)

When custom Types are added in the future, they are already supported by just giving the desired value for the table name for each custom Type. Possibly having all custom Types use a common table name. (i.e. custom_instances)

Parameters
dbTableNamethe dbTableName to set. Must start with lowercase letter and can only contain lowercase letters, numbers, and '_' characters.
Exceptions
EamDbExceptionif dbTableName contains invalid characters

Definition at line 485 of file CorrelationAttributeInstance.java.

void org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.setDisplayName ( String  displayName)
Parameters
displayNamethe displayName to set

Definition at line 442 of file CorrelationAttributeInstance.java.

void org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.setEnabled ( Boolean  enabled)

Set this Artifact Type as enabled or not enabled.

Parameters
enabledthe enabled to set

Definition at line 428 of file CorrelationAttributeInstance.java.

void org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.setId ( int  typeId)
Parameters
typeIdthe typeId to set

Definition at line 392 of file CorrelationAttributeInstance.java.

void org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.setSupported ( Boolean  supported)

Set this Artifact Type as supported or not supported.

Parameters
supportedthe supported to set

Definition at line 410 of file CorrelationAttributeInstance.java.

String org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.toString ( )

Definition at line 366 of file CorrelationAttributeInstance.java.

Member Data Documentation

final String org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.DB_NAMES_REGEX = "[a-z][a-z0-9_]*"
staticprivate

Definition at line 282 of file CorrelationAttributeInstance.java.

String org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.dbTableName
private

Definition at line 279 of file CorrelationAttributeInstance.java.

String org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.displayName
private

Definition at line 278 of file CorrelationAttributeInstance.java.

Boolean org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.enabled
private

Definition at line 281 of file CorrelationAttributeInstance.java.

Boolean org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.supported
private

Definition at line 280 of file CorrelationAttributeInstance.java.

int org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type.typeId
private

Definition at line 277 of file CorrelationAttributeInstance.java.


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

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