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

Classes

enum  MessageType
 

Public Member Functions

long getID ()
 
String getSource ()
 
String getSubject ()
 
String getDetails ()
 
String getUniqueKey ()
 
BlackboardArtifact getData ()
 
MessageType getMessageType ()
 
Date getDatePosted ()
 
String toString ()
 
boolean equals (Object obj)
 
int hashCode ()
 

Static Public Member Functions

static IngestMessage createMessage (MessageType messageType, String source, String subject, String detailsHtml)
 
static IngestMessage createMessage (MessageType messageType, String source, String subject)
 
static IngestMessage createErrorMessage (String source, String subject, String detailsHtml)
 
static IngestMessage createWarningMessage (String source, String subject, String detailsHtml)
 
static IngestMessage createDataMessage (String source, String subject, String detailsHtml, String uniqueKey, BlackboardArtifact data)
 

Private Member Functions

 IngestMessage (long ID, MessageType messageType, String source, String subject, String detailsHtml, String uniqueKey)
 

Private Attributes

long ID
 
MessageType messageType
 
String source
 
String subject
 
String detailsHtml
 
String uniqueKey
 
BlackboardArtifact data
 
Date datePosted
 

Static Private Attributes

static SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
 
static int managerMessageId = 0
 
static AtomicLong nextMessageID = new AtomicLong(0)
 

Detailed Description

Message that ingestmodule wants to send to IngetInbox to notify user about something. Submitted to user via IngestServices. Create using factory methods.

Definition at line 33 of file IngestMessage.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.ingest.IngestMessage.IngestMessage ( long  ID,
MessageType  messageType,
String  source,
String  subject,
String  detailsHtml,
String  uniqueKey 
)
private

Member Function Documentation

static IngestMessage org.sleuthkit.autopsy.ingest.IngestMessage.createDataMessage ( String  source,
String  subject,
String  detailsHtml,
String  uniqueKey,
BlackboardArtifact  data 
)
static
Parameters
IDID of the message, unique in the context of module that generated it
sourceoriginating module
subjectmessage subject to be displayed
detailsHtmlhtml formatted detailed message (without leading and closing <html> tags), for instance, a human-readable representation of the data. Or null.
uniqueKeyKey used to group similar messages together. Shoudl be unique to the analysis. For example, hits for the same keyword in a keyword search would use the keyword as this unique value so that they can be grouped.
datablackboard artifact associated with the message, the same as fired in ModuleDataEvent by the module
Returns

Definition at line 246 of file IngestMessage.java.

References org.sleuthkit.autopsy.ingest.IngestMessage.MessageType.DATA, org.sleuthkit.autopsy.ingest.IngestMessage.data, and org.sleuthkit.autopsy.ingest.IngestMessage.IngestMessage().

Referenced by org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.postHashSetHitToBlackboard().

static IngestMessage org.sleuthkit.autopsy.ingest.IngestMessage.createErrorMessage ( String  source,
String  subject,
String  detailsHtml 
)
static

Create error message

Parameters
IDID of the message, unique in the context of module that generated it
sourceoriginating module
subjectmessage subject to be displayed
detailsHtmlhtml formatted detailed message (without leading and closing <html> tags), for instance, a human-readable representation of the data. Or null
Returns

Definition at line 210 of file IngestMessage.java.

References org.sleuthkit.autopsy.ingest.IngestMessage.MessageType.ERROR, and org.sleuthkit.autopsy.ingest.IngestMessage.IngestMessage().

Referenced by org.sleuthkit.autopsy.keywordsearch.SearchRunner.Searcher.done(), org.sleuthkit.autopsy.examples.SampleExecutableDataSourceIngestModule.process(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.process(), org.sleuthkit.autopsy.modules.embeddedfileextractor.EmbeddedFileExtractorIngestModule.startUp(), and org.sleuthkit.autopsy.keywordsearch.KeywordSearchIngestModule.startUp().

static IngestMessage org.sleuthkit.autopsy.ingest.IngestMessage.createMessage ( MessageType  messageType,
String  source,
String  subject,
String  detailsHtml 
)
static

Create a message of specified type

Parameters
IDID of the message, unique in the context of module that generated it
messageTypemessage type
sourceoriginating module
subjectmessage subject to be displayed
detailsHtmlhtml formatted detailed message (without leading and closing <html> tags), for instance, a human-readable representation of the data. Or null.
Returns

Definition at line 180 of file IngestMessage.java.

References org.sleuthkit.autopsy.ingest.IngestMessage.IngestMessage().

Referenced by org.sleuthkit.autopsy.ingest.IngestMessage.createMessage(), org.sleuthkit.autopsy.keywordsearch.KeywordSearchIngestModule.postIndexSummary(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.postSummary(), org.sleuthkit.autopsy.modules.e01verify.E01VerifyIngestModule.process(), org.sleuthkit.autopsy.recentactivity.RAImageIngestModule.process(), org.sleuthkit.autopsy.modules.filetypeid.FileTypeIdIngestModule.shutDown(), and org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.shutDown().

static IngestMessage org.sleuthkit.autopsy.ingest.IngestMessage.createMessage ( MessageType  messageType,
String  source,
String  subject 
)
static

Create a simple message with a subject only

Parameters
IDID of the message, unique in the context of module that generated it
messageTypemessage type
sourceoriginating module
subjectmessage subject to be displayed
Returns

Definition at line 197 of file IngestMessage.java.

References org.sleuthkit.autopsy.ingest.IngestMessage.createMessage().

static IngestMessage org.sleuthkit.autopsy.ingest.IngestMessage.createWarningMessage ( String  source,
String  subject,
String  detailsHtml 
)
static

Create warning message

Parameters
IDID of the message, unique in the context of module that generated it
sourceoriginating module
subjectmessage subject to be displayed
detailsHtmlhtml formatted detailed message (without leading and closing <html> tags), for instance, a human-readable representation of the data. Or null
Returns

Definition at line 227 of file IngestMessage.java.

References org.sleuthkit.autopsy.ingest.IngestMessage.IngestMessage(), and org.sleuthkit.autopsy.ingest.IngestMessage.MessageType.WARNING.

Referenced by org.sleuthkit.autopsy.modules.hashdatabase.HashDbIngestModule.startUp(), and org.sleuthkit.autopsy.keywordsearch.KeywordSearchIngestModule.startUp().

boolean org.sleuthkit.autopsy.ingest.IngestMessage.equals ( Object  obj)
BlackboardArtifact org.sleuthkit.autopsy.ingest.IngestMessage.getData ( )
Date org.sleuthkit.autopsy.ingest.IngestMessage.getDatePosted ( )
String org.sleuthkit.autopsy.ingest.IngestMessage.getDetails ( )
long org.sleuthkit.autopsy.ingest.IngestMessage.getID ( )

Definition at line 70 of file IngestMessage.java.

References org.sleuthkit.autopsy.ingest.IngestMessage.ID.

MessageType org.sleuthkit.autopsy.ingest.IngestMessage.getMessageType ( )
String org.sleuthkit.autopsy.ingest.IngestMessage.getSource ( )
String org.sleuthkit.autopsy.ingest.IngestMessage.getSubject ( )
String org.sleuthkit.autopsy.ingest.IngestMessage.getUniqueKey ( )
int org.sleuthkit.autopsy.ingest.IngestMessage.hashCode ( )
String org.sleuthkit.autopsy.ingest.IngestMessage.toString ( )

Member Data Documentation

BlackboardArtifact org.sleuthkit.autopsy.ingest.IngestMessage.data
private
SimpleDateFormat org.sleuthkit.autopsy.ingest.IngestMessage.dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
staticprivate

Definition at line 50 of file IngestMessage.java.

Date org.sleuthkit.autopsy.ingest.IngestMessage.datePosted
private
String org.sleuthkit.autopsy.ingest.IngestMessage.detailsHtml
private
long org.sleuthkit.autopsy.ingest.IngestMessage.ID
private
int org.sleuthkit.autopsy.ingest.IngestMessage.managerMessageId = 0
staticprivate

Definition at line 51 of file IngestMessage.java.

MessageType org.sleuthkit.autopsy.ingest.IngestMessage.messageType
private
AtomicLong org.sleuthkit.autopsy.ingest.IngestMessage.nextMessageID = new AtomicLong(0)
staticprivate

Definition at line 52 of file IngestMessage.java.

String org.sleuthkit.autopsy.ingest.IngestMessage.source
private
String org.sleuthkit.autopsy.ingest.IngestMessage.subject
private
String org.sleuthkit.autopsy.ingest.IngestMessage.uniqueKey
private

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

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.