Autopsy  4.16.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 CentralRepoException
 
 Type (String displayName, String dbTableName, Boolean supported, Boolean enabled) throws CentralRepoException
 
boolean equals (Object that)
 
String getDbTableName ()
 
String getDisplayName ()
 
int getId ()
 
int hashCode ()
 
Boolean isEnabled ()
 
Boolean isSupported ()
 
void setDbTableName (String dbTableName) throws CentralRepoException
 
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 312 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 CentralRepoException
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 334 of file CorrelationAttributeInstance.java.

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

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 361 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 373 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 502 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 426 of file CorrelationAttributeInstance.java.

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

Definition at line 398 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 460 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 442 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 391 of file CorrelationAttributeInstance.java.

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

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
CentralRepoExceptionif dbTableName contains invalid characters

Definition at line 526 of file CorrelationAttributeInstance.java.

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

Definition at line 483 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 469 of file CorrelationAttributeInstance.java.

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

Definition at line 433 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 451 of file CorrelationAttributeInstance.java.

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

Definition at line 407 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 319 of file CorrelationAttributeInstance.java.

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

Definition at line 316 of file CorrelationAttributeInstance.java.

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

Definition at line 315 of file CorrelationAttributeInstance.java.

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

Definition at line 318 of file CorrelationAttributeInstance.java.

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

Definition at line 317 of file CorrelationAttributeInstance.java.

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

Definition at line 314 of file CorrelationAttributeInstance.java.


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

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