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

Inherits AbstractAction.

Public Member Functions

 AddEditCentralRepoCommentAction (AbstractFile file)
 
void actionPerformed (ActionEvent event)
 
String getComment ()
 
CorrelationAttributeInstance getCorrelationAttribute ()
 

Private Attributes

boolean addToDatabase
 
String comment
 
CorrelationAttributeInstance correlationAttributeInstance
 
final Long fileId
 

Static Private Attributes

static final Logger logger = Logger.getLogger(AddEditCentralRepoCommentAction.class.getName())
 
static final long serialVersionUID = 1L
 

Detailed Description

An AbstractAction to manage adding and modifying a Central Repository file instance comment.

Definition at line 45 of file AddEditCentralRepoCommentAction.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.AddEditCentralRepoCommentAction ( AbstractFile  file)

Constructor to create an instance given an AbstractFile.

Parameters
fileThe file from which a correlation attribute to modify is derived.

Definition at line 62 of file AddEditCentralRepoCommentAction.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.EamArtifactUtil.getInstanceFromContent(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamArtifactUtil.makeInstanceFromContent().

Member Function Documentation

void org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.actionPerformed ( ActionEvent  event)

Create a Add/Edit dialog for the correlation attribute file instance comment. The comment will be updated in the database if the file instance exists there, or a new file instance will be added to the database with the comment attached otherwise.

The current comment for this instance is saved in case it is needed to update the display. If the comment was not changed either due to the action being canceled or the occurrence of an error, the comment will be null.

Definition at line 90 of file AddEditCentralRepoCommentAction.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.addArtifactInstance(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getInstance(), org.sleuthkit.autopsy.casemodule.Case.notifyCentralRepoCommentChanged(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.updateAttributeInstanceComment().

String org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.getComment ( )

Retrieve the comment that was last saved. If a comment update was canceled or an error occurred while attempting to save the comment, the comment will be null.

Returns
The comment.

Definition at line 131 of file AddEditCentralRepoCommentAction.java.

CorrelationAttributeInstance org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.getCorrelationAttribute ( )

Retrieve the associated correlation attribute.

Returns
The correlation attribute.

Definition at line 140 of file AddEditCentralRepoCommentAction.java.

Referenced by org.sleuthkit.autopsy.centralrepository.CentralRepoContextMenuActionsProvider.getActions().

Member Data Documentation

boolean org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.addToDatabase
private

Definition at line 50 of file AddEditCentralRepoCommentAction.java.

String org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.comment
private

Definition at line 52 of file AddEditCentralRepoCommentAction.java.

CorrelationAttributeInstance org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.correlationAttributeInstance
private

Definition at line 51 of file AddEditCentralRepoCommentAction.java.

final Long org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.fileId
private

Definition at line 53 of file AddEditCentralRepoCommentAction.java.

final Logger org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.logger = Logger.getLogger(AddEditCentralRepoCommentAction.class.getName())
staticprivate

Definition at line 47 of file AddEditCentralRepoCommentAction.java.

final long org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.serialVersionUID = 1L
staticprivate

Definition at line 48 of file AddEditCentralRepoCommentAction.java.


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.