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

Inherits AbstractAction.

Public Member Functions

void actionPerformed (ActionEvent event)
 
void addEditCentralRepoComment ()
 

Static Public Member Functions

static AddEditCentralRepoCommentAction createAddEditCentralRepoCommentAction (AbstractFile file)
 
static AddEditCentralRepoCommentAction createAddEditCommentAction (CorrelationAttribute correlationAttribute)
 

Private Member Functions

 AddEditCentralRepoCommentAction (CorrelationAttribute correlationAttribute, String title)
 
 AddEditCentralRepoCommentAction (AbstractFile file, String title)
 

Private Attributes

boolean addToDatabase
 
CorrelationAttribute correlationAttribute
 

Static Private Attributes

static final Logger logger = Logger.getLogger(AddEditCentralRepoCommentAction.class.getName())
 

Detailed Description

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

Definition at line 38 of file AddEditCentralRepoCommentAction.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.AddEditCentralRepoCommentAction ( CorrelationAttribute  correlationAttribute,
String  title 
)
private

Private constructor to create an instance given a CorrelationAttribute.

Parameters
correlationAttributeThe correlation attribute to modify.
titleThe text for the menu item.

Definition at line 52 of file AddEditCentralRepoCommentAction.java.

References org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.correlationAttribute.

Referenced by org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.createAddEditCentralRepoCommentAction(), and org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.createAddEditCommentAction().

org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.AddEditCentralRepoCommentAction ( AbstractFile  file,
String  title 
)
private

Private constructor to create an instance given an AbstractFile.

Parameters
fileThe file from which a correlation attribute to modify is derived.
titleThe text for the menu item.

Definition at line 65 of file AddEditCentralRepoCommentAction.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.EamArtifactUtil.getCorrelationAttributeFromContent(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamArtifactUtil.makeCorrelationAttributeFromContent().

Member Function Documentation

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

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.

Definition at line 87 of file AddEditCentralRepoCommentAction.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.addArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getInstance(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.updateAttributeInstanceComment().

Referenced by org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.actionPerformed(), and org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.customizeComponents().

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

Create an instance labeled "Add/Edit Central Repository Comment" given an AbstractFile. This is intended for the result view.

Parameters
fileThe file from which a correlation attribute to modify is derived.
Returns
The instance.
Exceptions
EamDbException
NoCurrentCaseException
TskCoreException

Definition at line 122 of file AddEditCentralRepoCommentAction.java.

References org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.AddEditCentralRepoCommentAction().

Referenced by org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.getActions(), and org.sleuthkit.autopsy.datamodel.AbstractAbstractFileNode< SpecialDirectory >.getActions().

static AddEditCentralRepoCommentAction org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.createAddEditCommentAction ( CorrelationAttribute  correlationAttribute)
static

Create an instance labeled "Add/Edit Comment" given a CorrelationAttribute. This is intended for the content view.

Parameters
correlationAttributeThe correlation attribute to modify.
Returns
The instance.

Definition at line 137 of file AddEditCentralRepoCommentAction.java.

References org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.AddEditCentralRepoCommentAction().

Referenced by org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.customizeComponents().

Member Data Documentation

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

Definition at line 42 of file AddEditCentralRepoCommentAction.java.

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

Definition at line 40 of file AddEditCentralRepoCommentAction.java.


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

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.