Autopsy  4.10.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData Class Reference

Classes

class  InvalidDataException
 

Public Member Functions

 CaseNodeData (CaseMetadata metadata) throws ParseException
 
 CaseNodeData (byte[] nodeData) throws IOException
 
Date getCreateDate ()
 
Path getDirectory ()
 
String getDisplayName ()
 
boolean getErrorsOccurred ()
 
Date getLastAccessDate ()
 
String getName ()
 
int getVersion ()
 
void setCreateDate (Date createDate)
 
void setDirectory (Path caseDirectory)
 
void setDisplayName (String displayName)
 
void setErrorsOccurred (boolean errorsOccurred)
 
void setLastAccessDate (Date lastAccessDate)
 
void setName (String name)
 
byte[] toArray () throws IOException
 

Static Public Member Functions

static int getCurrentVersion ()
 

Private Attributes

Date createDate
 
short deletedItemFlags
 
Path directory
 
String displayName
 
boolean errorsOccurred
 
Date lastAccessDate
 
String name
 
final int version
 

Static Private Attributes

static final int CURRENT_VERSION = 1
 

Detailed Description

An object that converts data for a case directory lock coordination service node to and from byte arrays.

Definition at line 36 of file CaseNodeData.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.CaseNodeData ( CaseMetadata  metadata) throws ParseException

Uses a CaseMetadata object to construct an object that converts data for a case directory lock coordination service node to and from byte arrays.

Parameters
metadataThe case meta data.
Exceptions
java.text.ParseExceptionIf there is an error parsing dates from string representations of dates in the meta data.

Definition at line 76 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.CURRENT_VERSION, and org.sleuthkit.autopsy.casemodule.CaseMetadata.getDateFormat().

org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.CaseNodeData ( byte[]  nodeData) throws IOException

Uses coordination service node data to construct an object that converts data for a case directory lock coordination service node to and from byte arrays.

Parameters
nodeDataThe raw bytes received from the coordination service.
Exceptions
IOExceptionIf there is an error reading the node data.

Definition at line 96 of file CaseNodeData.java.

Member Function Documentation

Date org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.getCreateDate ( )

Gets the date the case represented by this node data was created.

Returns
The create date.

Definition at line 172 of file CaseNodeData.java.

static int org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.getCurrentVersion ( )
static

Gets the current version of the case directory lock coordination service node data.

Returns
The version number.

Definition at line 62 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.CURRENT_VERSION.

Path org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.getDirectory ( )

Gets the path of the case directory of the case represented by this node data.

Returns
The case directory path.

Definition at line 153 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.directory.

String org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.getDisplayName ( )

Gets the display name of the case represented by this node data.

Returns
The case display name.

Definition at line 228 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.displayName.

boolean org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.getErrorsOccurred ( )

Gets whether or not any errors occurred during the processing of any auto ingest job for the case represented by this node data.

Returns
True or false.

Definition at line 133 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.errorsOccurred.

Date org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.getLastAccessDate ( )

Gets the date the case represented by this node data last accessed.

Returns
The last access date.

Definition at line 190 of file CaseNodeData.java.

String org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.getName ( )

Gets the unique and immutable (user cannot change it) name of the case represented by this node data.

Returns
The case name.

Definition at line 209 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.name.

Referenced by org.sleuthkit.autopsy.casemodule.multiusercases.MultiUserCaseNodeDataCollector.createNodeDataFromCaseMetadata().

int org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.getVersion ( )

Gets the node data version number of this node.

Returns
The version number.

Definition at line 123 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.version.

Referenced by org.sleuthkit.autopsy.casemodule.multiusercases.MultiUserCaseNodeDataCollector.getNodeData().

void org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.setCreateDate ( Date  createDate)

Sets the date the case represented by this node data was created.

Parameters
createDateThe create date.

Definition at line 181 of file CaseNodeData.java.

void org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.setDirectory ( Path  caseDirectory)

Sets the path of the case directory of the case represented by this node data.

Parameters
caseDirectoryThe case directory path.

Definition at line 163 of file CaseNodeData.java.

void org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.setDisplayName ( String  displayName)

Sets the display name of the case represented by this node data.

Parameters
displayNameThe case display name.

Definition at line 237 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.displayName.

void org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.setErrorsOccurred ( boolean  errorsOccurred)

Sets whether or not any errors occurred during the processing of any auto ingest job for the case represented by this node data.

Parameters
errorsOccurredTrue or false.

Definition at line 143 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.errorsOccurred.

Referenced by org.sleuthkit.autopsy.casemodule.multiusercases.MultiUserCaseNodeDataCollector.createNodeDataFromCaseMetadata().

void org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.setLastAccessDate ( Date  lastAccessDate)

Sets the date the case represented by this node data was last accessed.

Parameters
lastAccessDateThe last access date.

Definition at line 199 of file CaseNodeData.java.

Referenced by org.sleuthkit.autopsy.casemodule.Case.updateCaseNodeData().

void org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.setName ( String  name)

Sets the unique and immutable (user cannot change it) name of the case represented by this node data.

Parameters
nameThe case name.

Definition at line 219 of file CaseNodeData.java.

References org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.name.

byte [] org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.toArray ( ) throws IOException

Gets the node data as a byte array that can be sent to the coordination service.

Returns
The node data as a byte array.
Exceptions
IOExceptionIf there is an error writing the node data.

Definition at line 249 of file CaseNodeData.java.

Referenced by org.sleuthkit.autopsy.casemodule.Case.createCaseNodeData(), org.sleuthkit.autopsy.casemodule.multiusercases.MultiUserCaseNodeDataCollector.createNodeDataFromCaseMetadata(), and org.sleuthkit.autopsy.casemodule.Case.updateCaseNodeData().

Member Data Documentation

Date org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.createDate
private

Definition at line 50 of file CaseNodeData.java.

final int org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.CURRENT_VERSION = 1
staticprivate
short org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.deletedItemFlags
private

Definition at line 54 of file CaseNodeData.java.

Path org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.directory
private
String org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.displayName
private
boolean org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.errorsOccurred
private
Date org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.lastAccessDate
private

Definition at line 51 of file CaseNodeData.java.

String org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.name
private
final int org.sleuthkit.autopsy.casemodule.multiusercases.CaseNodeData.version
private

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

Copyright © 2012-2018 Basis Technology. Generated on: Fri Mar 22 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.