Autopsy  4.16.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

Constructor & Destructor Documentation

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

Constructor to create an instance given an AbstractFile.

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

Definition at line 62 of file

References org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.getCorrAttrForFile(), and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrFromFile().

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

References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.addArtifactInstance(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance(), org.sleuthkit.autopsy.casemodule.Case.notifyCentralRepoCommentChanged(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.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.

The comment.

Definition at line 131 of file

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

Retrieve the associated correlation attribute.

The correlation attribute.

Definition at line 140 of file

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

Member Data Documentation

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

Definition at line 50 of file

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

Definition at line 52 of file

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

Definition at line 51 of file

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

Definition at line 53 of file

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

Definition at line 47 of file

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

Definition at line 48 of file

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.