Autopsy  4.11.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.datamodel.ExtractedContent.ArtifactFactory Class Reference

Inherits org.sleuthkit.autopsy.datamodel.BaseChildFactory< BlackboardArtifact >.

Public Member Functions

 ArtifactFactory (BlackboardArtifact.Type type)
 

Static Public Member Functions

static void post (String nodeName, Object event) throws NoSuchEventBusException
 
static void register (String nodeName, Object subscriber)
 

Protected Member Functions

void addNotify ()
 
boolean createKeys (List< T > toPopulate)
 
Node createNodeForKey (BlackboardArtifact key)
 
List< BlackboardArtifact > makeKeys ()
 
void onAdd ()
 
void onRemove ()
 
void removeNotify ()
 

Private Attributes

final PropertyChangeListener pcl
 
BlackboardArtifact.Type type
 

Detailed Description

Creates children for a given artifact type

Definition at line 424 of file ExtractedContent.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.ExtractedContent.ArtifactFactory.ArtifactFactory ( BlackboardArtifact.Type  type)

Member Function Documentation

void org.sleuthkit.autopsy.datamodel.BaseChildFactory< T extends Content >.addNotify ( )
protectedinherited

Definition at line 120 of file BaseChildFactory.java.

boolean org.sleuthkit.autopsy.datamodel.BaseChildFactory< T extends Content >.createKeys ( List< T >  toPopulate)
protectedinherited

For page change events and page size change events we simply return the previously calculated set of keys, otherwise we make a new set of keys.

Definition at line 148 of file BaseChildFactory.java.

Node org.sleuthkit.autopsy.datamodel.ExtractedContent.ArtifactFactory.createNodeForKey ( BlackboardArtifact  key)
protected

Definition at line 494 of file ExtractedContent.java.

List<BlackboardArtifact> org.sleuthkit.autopsy.datamodel.ExtractedContent.ArtifactFactory.makeKeys ( )
protected
void org.sleuthkit.autopsy.datamodel.ExtractedContent.ArtifactFactory.onAdd ( )
protected
void org.sleuthkit.autopsy.datamodel.ExtractedContent.ArtifactFactory.onRemove ( )
protected
static void org.sleuthkit.autopsy.datamodel.BaseChildFactory< T extends Content >.post ( String  nodeName,
Object  event 
) throws NoSuchEventBusException
staticinherited

Post the given event for the given node name.

Parameters
nodeNameThe name of the node.
eventThe event to post.
Exceptions
org.sleuthkit.autopsy.datamodel.BaseChildFactory.NoSuchEventBusException

Definition at line 96 of file BaseChildFactory.java.

static void org.sleuthkit.autopsy.datamodel.BaseChildFactory< T extends Content >.register ( String  nodeName,
Object  subscriber 
)
staticinherited

Register the given subscriber for the given node name. Will create the event bus for the given node name if it does not exist.

Parameters
nodeNameThe name of the node.
subscriberThe subscriber to register.

Definition at line 78 of file BaseChildFactory.java.

void org.sleuthkit.autopsy.datamodel.BaseChildFactory< T extends Content >.removeNotify ( )
protectedinherited

Definition at line 125 of file BaseChildFactory.java.

Member Data Documentation

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.ExtractedContent.ArtifactFactory.pcl
private
Initial value:
= new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
String eventType = evt.getPropertyName();
if (eventType.equals(IngestManager.IngestModuleEvent.DATA_ADDED.toString())) {
try {
Case.getCurrentCaseThrows();
final ModuleDataEvent event = (ModuleDataEvent) evt.getOldValue();
if (null != event && event.getBlackboardArtifactType().equals(type)) {
refresh(true);
}
} catch (NoCurrentCaseException notUsed) {
}
} else if (eventType.equals(IngestManager.IngestJobEvent.COMPLETED.toString())
|| eventType.equals(IngestManager.IngestJobEvent.CANCELLED.toString())) {
try {
Case.getCurrentCaseThrows();
refresh(true);
} catch (NoCurrentCaseException notUsed) {
}
}
}
}

Definition at line 433 of file ExtractedContent.java.

BlackboardArtifact.Type org.sleuthkit.autopsy.datamodel.ExtractedContent.ArtifactFactory.type
private

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

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