Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
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 |
An AbstractAction to manage adding and modifying a Central Repository file instance comment.
Definition at line 45 of file AddEditCentralRepoCommentAction.java.
org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.AddEditCentralRepoCommentAction | ( | AbstractFile | file | ) |
Constructor to create an instance given an AbstractFile.
file | The 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().
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.
Definition at line 131 of file AddEditCentralRepoCommentAction.java.
CorrelationAttributeInstance org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.getCorrelationAttribute | ( | ) |
Retrieve the associated correlation attribute.
Definition at line 140 of file AddEditCentralRepoCommentAction.java.
Referenced by org.sleuthkit.autopsy.centralrepository.CentralRepoContextMenuActionsProvider.getActions().
|
private |
Definition at line 50 of file AddEditCentralRepoCommentAction.java.
|
private |
Definition at line 52 of file AddEditCentralRepoCommentAction.java.
|
private |
Definition at line 51 of file AddEditCentralRepoCommentAction.java.
|
private |
Definition at line 53 of file AddEditCentralRepoCommentAction.java.
|
staticprivate |
Definition at line 47 of file AddEditCentralRepoCommentAction.java.
|
staticprivate |
Definition at line 48 of file AddEditCentralRepoCommentAction.java.
Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.