Autopsy  4.16.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.discovery.search.ResultFile Class Reference

Inherits org.sleuthkit.autopsy.discovery.search.Result.

Public Member Functions

 ResultFile (AbstractFile abstractFile)
 
void addDuplicate (AbstractFile duplicate)
 
void addHashSetName (String hashSetName)
 
void addInterestingSetName (String interestingSetName)
 
void addKeywordListName (String keywordListName)
 
void addObjectDetectedName (String objectDetectedName)
 
void addTagName (String tagName)
 
boolean equals (Object obj)
 
List< AbstractFile > getAllInstances ()
 
Content getDataSource () throws TskCoreException
 
long getDataSourceObjectId ()
 
Type getFileType ()
 
AbstractFile getFirstInstance ()
 
SearchData.Frequency getFrequency ()
 
List< String > getHashSetNames ()
 
List< String > getInterestingSetNames ()
 
List< String > getKeywordListNames ()
 
TskData.FileKnown getKnown ()
 
List< String > getObjectDetectedNames ()
 
DataResultViewerTable.Score getScore ()
 
String getScoreDescription ()
 
List< String > getTagNames ()
 
Type getType ()
 
int hashCode ()
 
boolean isDeleted ()
 
final void setFrequency (SearchData.Frequency frequency)
 
String toString ()
 

Static Public Member Functions

static Type fromMIMEtype (String mimeType)
 

Private Member Functions

List< ContentTag > getContentTagsFromDatabase (AbstractFile file)
 
void updateScoreAndDescription (AbstractFile file)
 

Private Attributes

DataResultViewerTable.Score currentScore = DataResultViewerTable.Score.NO_SCORE
 
boolean deleted = false
 
Type fileType
 
final List< String > hashSetNames
 
final List< AbstractFile > instances = new ArrayList<>()
 
final List< String > interestingSetNames
 
final List< String > keywordListNames
 
final List< String > objectDetectedNames
 
String scoreDescription = null
 

Static Private Attributes

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

Detailed Description

Container for files that holds all necessary data for grouping and sorting.

Definition at line 44 of file ResultFile.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.discovery.search.ResultFile.ResultFile ( AbstractFile  abstractFile)

Member Function Documentation

void org.sleuthkit.autopsy.discovery.search.ResultFile.addDuplicate ( AbstractFile  duplicate)

Add an AbstractFile to the list of files which are instances of this file.

Parameters
duplicateThe abstract file to add as a duplicate.

Definition at line 88 of file ResultFile.java.

References org.sleuthkit.autopsy.discovery.search.ResultFile.fromMIMEtype(), org.sleuthkit.autopsy.discovery.search.SearchData.Type.OTHER, and org.sleuthkit.autopsy.discovery.search.ResultFile.updateScoreAndDescription().

void org.sleuthkit.autopsy.discovery.search.ResultFile.addHashSetName ( String  hashSetName)

Add a hash set name that matched this file.

Parameters
hashSetName

Definition at line 182 of file ResultFile.java.

void org.sleuthkit.autopsy.discovery.search.ResultFile.addInterestingSetName ( String  interestingSetName)

Add an interesting file set name that matched this file.

Parameters
interestingSetName

Definition at line 205 of file ResultFile.java.

void org.sleuthkit.autopsy.discovery.search.ResultFile.addKeywordListName ( String  keywordListName)

Add a keyword list name that matched this file.

Parameters
keywordListName

Definition at line 159 of file ResultFile.java.

Referenced by org.sleuthkit.autopsy.discovery.search.DiscoveryAttributes.KeywordListAttribute.SetKeywordListNamesCallback.process().

void org.sleuthkit.autopsy.discovery.search.ResultFile.addObjectDetectedName ( String  objectDetectedName)

Add an object detected in this file.

Parameters
objectDetectedName

Definition at line 228 of file ResultFile.java.

void org.sleuthkit.autopsy.discovery.search.Result.addTagName ( String  tagName)
inherited

Add a tag name that matched this file.

Parameters
tagName

Definition at line 89 of file Result.java.

boolean org.sleuthkit.autopsy.discovery.search.ResultFile.equals ( Object  obj)
static Type org.sleuthkit.autopsy.discovery.search.ResultFile.fromMIMEtype ( String  mimeType)
static

Get the enum matching the given MIME type.

Parameters
mimeTypeThe MIME type for the file.
Returns
the corresponding enum (will be OTHER if no types matched)

Definition at line 348 of file ResultFile.java.

Referenced by org.sleuthkit.autopsy.discovery.search.ResultFile.addDuplicate(), and org.sleuthkit.autopsy.discovery.search.ResultFile.ResultFile().

List<AbstractFile> org.sleuthkit.autopsy.discovery.search.ResultFile.getAllInstances ( )

Get the list of AbstractFiles which have been identified as instances of this file.

Returns
The list of AbstractFiles which have been identified as instances of this file.

Definition at line 141 of file ResultFile.java.

List<ContentTag> org.sleuthkit.autopsy.discovery.search.ResultFile.getContentTagsFromDatabase ( AbstractFile  file)
private
Content org.sleuthkit.autopsy.discovery.search.ResultFile.getDataSource ( ) throws TskCoreException
long org.sleuthkit.autopsy.discovery.search.ResultFile.getDataSourceObjectId ( )
Type org.sleuthkit.autopsy.discovery.search.ResultFile.getFileType ( )

Get the file type.

Returns
The FileType enum.

Definition at line 150 of file ResultFile.java.

References org.sleuthkit.autopsy.discovery.search.ResultFile.fileType.

AbstractFile org.sleuthkit.autopsy.discovery.search.ResultFile.getFirstInstance ( )
SearchData.Frequency org.sleuthkit.autopsy.discovery.search.Result.getFrequency ( )
inherited
List<String> org.sleuthkit.autopsy.discovery.search.ResultFile.getHashSetNames ( )

Get the hash set names for this file

Returns
The hash set names that matched this file.

Definition at line 196 of file ResultFile.java.

List<String> org.sleuthkit.autopsy.discovery.search.ResultFile.getInterestingSetNames ( )

Get the interesting item set names for this file

Returns
the interesting item set names that matched this file.

Definition at line 219 of file ResultFile.java.

List<String> org.sleuthkit.autopsy.discovery.search.ResultFile.getKeywordListNames ( )

Get the keyword list names for this file

Returns
the keyword list names that matched this file.

Definition at line 173 of file ResultFile.java.

Referenced by org.sleuthkit.autopsy.discovery.search.ResultsSorter.getKeywordListNameComparator().

TskData.FileKnown org.sleuthkit.autopsy.discovery.search.ResultFile.getKnown ( )
List<String> org.sleuthkit.autopsy.discovery.search.ResultFile.getObjectDetectedNames ( )

Get the objects detected for this file

Returns
the objects detected in this file.

Definition at line 242 of file ResultFile.java.

DataResultViewerTable.Score org.sleuthkit.autopsy.discovery.search.ResultFile.getScore ( )

Get the aggregate score of this ResultFile. Calculated as the highest score among all instances it represents.

Returns
The score of this ResultFile.

Definition at line 111 of file ResultFile.java.

References org.sleuthkit.autopsy.discovery.search.ResultFile.currentScore.

String org.sleuthkit.autopsy.discovery.search.ResultFile.getScoreDescription ( )

Get the description for the score assigned to this item.

Returns
The score description of this ResultFile.

Definition at line 120 of file ResultFile.java.

References org.sleuthkit.autopsy.discovery.search.ResultFile.scoreDescription.

List<String> org.sleuthkit.autopsy.discovery.search.Result.getTagNames ( )
inherited

Get the tag names for this file

Returns
the tag names that matched this file.

Definition at line 103 of file Result.java.

Type org.sleuthkit.autopsy.discovery.search.ResultFile.getType ( )
int org.sleuthkit.autopsy.discovery.search.ResultFile.hashCode ( )
boolean org.sleuthkit.autopsy.discovery.search.ResultFile.isDeleted ( )

Get the aggregate deleted status of this ResultFile. A file is identified as deleted if all instances of it are deleted.

Returns
The deleted status of this ResultFile.

Definition at line 130 of file ResultFile.java.

References org.sleuthkit.autopsy.discovery.search.ResultFile.deleted.

final void org.sleuthkit.autopsy.discovery.search.Result.setFrequency ( SearchData.Frequency  frequency)
inherited

Set the frequency of this result in the central repository.

Parameters
frequencyThe frequency of the result as an enum.

Definition at line 64 of file Result.java.

References org.sleuthkit.autopsy.discovery.search.Result.frequency.

Referenced by org.sleuthkit.autopsy.discovery.search.DiscoveryAttributes.FrequencyCallback.process().

String org.sleuthkit.autopsy.discovery.search.ResultFile.toString ( )
void org.sleuthkit.autopsy.discovery.search.ResultFile.updateScoreAndDescription ( AbstractFile  file)
private

Member Data Documentation

DataResultViewerTable.Score org.sleuthkit.autopsy.discovery.search.ResultFile.currentScore = DataResultViewerTable.Score.NO_SCORE
private
boolean org.sleuthkit.autopsy.discovery.search.ResultFile.deleted = false
private
Type org.sleuthkit.autopsy.discovery.search.ResultFile.fileType
private
final List<String> org.sleuthkit.autopsy.discovery.search.ResultFile.hashSetNames
private

Definition at line 48 of file ResultFile.java.

final List<AbstractFile> org.sleuthkit.autopsy.discovery.search.ResultFile.instances = new ArrayList<>()
private

Definition at line 51 of file ResultFile.java.

final List<String> org.sleuthkit.autopsy.discovery.search.ResultFile.interestingSetNames
private

Definition at line 49 of file ResultFile.java.

final List<String> org.sleuthkit.autopsy.discovery.search.ResultFile.keywordListNames
private

Definition at line 47 of file ResultFile.java.

final Logger org.sleuthkit.autopsy.discovery.search.ResultFile.logger = Logger.getLogger(ResultFile.class.getName())
staticprivate

Definition at line 46 of file ResultFile.java.

final List<String> org.sleuthkit.autopsy.discovery.search.ResultFile.objectDetectedNames
private

Definition at line 50 of file ResultFile.java.

String org.sleuthkit.autopsy.discovery.search.ResultFile.scoreDescription = null
private

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.