Autopsy  4.1
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 mime_type)

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 390 of file

Constructor & Destructor Documentation

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

Member Function Documentation

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

Get children count without actually loading all nodes

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

Definition at line 406 of file

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

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

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.

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

Definition at line 425 of file

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

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

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


Definition at line 472 of file

String org.sleuthkit.autopsy.datamodel.FileTypesByMimeType.MediaSubTypeNodeChildren.createQuery ( String  mime_type)

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.

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

Definition at line 445 of file

References org.sleuthkit.autopsy.core.UserPreferences.hideKnownFilesInViewsTree().

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 460 of file

Member Data Documentation

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

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

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