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

Inherits Detachable< Content >, and Observer.

Public Member Functions

void update (Observable o, Object arg)
 

Protected Member Functions

boolean createKeys (List< Content > list)
 
Node createNodeForKey (Content key)
 

Private Member Functions

 MediaSubTypeNodeChildren (String mimeType)
 
long calculateItems (SleuthkitCase sleuthkitCase, String mime_type)
 
String createQuery (String mimeType)
 

Private Attributes

final String mimeType
 

Detailed Description

Factory for populating the contents of the Media Sub Type Node with the files that match MimeType which is represented by this position in the tree.

Definition at line 399 of file FileTypesByMimeType.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.MediaSubTypeNodeChildren ( String  mimeType)
private

Member Function Documentation

long org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.calculateItems ( SleuthkitCase  sleuthkitCase,
String  mime_type 
)
private

Get children count without actually loading all nodes

Returns
count(*) - the number of items that will be shown in this items Directory Listing

Definition at line 415 of file FileTypesByMimeType.java.

References org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.createQuery().

boolean org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.createKeys ( List< Content >  list)
protected

Uses the createQuery method to complete the query, Select * from tsk_files WHERE. The results from the database will contain the files which match this mime type and their information.

Parameters
list- will contain all files and their attributes from the tsk_files table where mime_type matches the one specified
Returns
true

Definition at line 435 of file FileTypesByMimeType.java.

References org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.createQuery().

Node org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.createNodeForKey ( Content  key)
protected

Creates the content to populate the Directory Listing Table view for each file

Parameters
key
Returns

Definition at line 487 of file FileTypesByMimeType.java.

String org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.createQuery ( String  mimeType)
private

Create the portion of the query following WHERE for a query of the database for each file which matches the complete MIME type represented by this node. Matches against the mime_type column in tsk_files.

Parameters
mimeType- the complete mimetype of the file mediatype/subtype
Returns
query.toString - portion of SQL query which will follow a WHERE clause.

Definition at line 456 of file FileTypesByMimeType.java.

References org.sleuthkit.autopsy.core.UserPreferences.hideKnownFilesInViewsTree(), and org.sleuthkit.autopsy.core.UserPreferences.hideSlackFilesInViewsTree().

Referenced by org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.calculateItems(), and org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.createKeys().

void org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.update ( Observable  o,
Object  arg 
)

Definition at line 474 of file FileTypesByMimeType.java.

Member Data Documentation

final String org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.mimeType
private

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

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