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

Inherits org.sleuthkit.autopsy.datamodel.AbstractContentNode< Volume >.

Public Member Functions

 VolumeNode (Volume vol)
 
Action[] getActions (boolean popup)
 
getContent ()
 
List< Content > getContentChildren ()
 
int getContentChildrenCount ()
 
List< Long > getContentChildrenIds ()
 
String getItemType ()
 
String getName ()
 
boolean hasContentChildren ()
 
boolean hasVisibleContentChildren ()
 
boolean isLeafTypeNode ()
 
int read (byte[] buf, long offset, long len) throws TskException
 
void setName (String name)
 

Static Public Member Functions

static boolean contentHasVisibleContentChildren (Content c)
 

Protected Member Functions

Sheet createSheet ()
 
List< Tag > getAllTagsFromDatabase ()
 
DataResultViewerTable.HasCommentStatus getCommentProperty (List< Tag > tags, List< CorrelationAttributeInstance > attributes)
 
Pair< Long, String > getCountPropertyAndDescription (CorrelationAttributeInstance attribute, String defaultDescription)
 
Pair< Score, String > getScorePropertyAndDescription (List< Tag > tags)
 
synchronized void updateSheet (NodeProperty<?>...newProps)
 

Protected Attributes

final T content
 

Static Protected Attributes

static final String NO_DESCR
 
static final String VALUE_LOADING
 

Private Member Functions

void removeListeners ()
 

Private Attributes

final PropertyChangeListener pcl
 

Static Private Attributes

static final Set< IngestManager.IngestModuleEvent > INGEST_MODULE_EVENTS_OF_INTEREST = EnumSet.of(IngestManager.IngestModuleEvent.CONTENT_CHANGED)
 
static final Logger logger = Logger.getLogger(VolumeNode.class.getName())
 

Detailed Description

This class is used to represent the "Node" for the volume. Its child is the root directory of a file system

Definition at line 50 of file VolumeNode.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.VolumeNode.VolumeNode ( Volume  vol)

Member Function Documentation

static boolean org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.contentHasVisibleContentChildren ( Content  c)
staticinherited

Return true if the given content object has children. Useful for lazy loading.

Parameters
cThe content object to look for children on
Returns
true if has children

Definition at line 157 of file AbstractContentNode.java.

Sheet org.sleuthkit.autopsy.datamodel.VolumeNode.createSheet ( )
protected
Action [] org.sleuthkit.autopsy.datamodel.VolumeNode.getActions ( boolean  popup)

Right click action for volume node

Parameters
popup
Returns

Definition at line 160 of file VolumeNode.java.

References org.sleuthkit.autopsy.datamodel.AbstractContentNode< Volume >.content, and org.sleuthkit.autopsy.directorytree.ExplorerNodeActionVisitor.getActions().

List<Tag> org.sleuthkit.autopsy.datamodel.VolumeNode.getAllTagsFromDatabase ( )
protected

Reads and returns a list of all tags associated with this content node.

Null implementation of an abstract method.

Returns
list of tags associated with the node.

Definition at line 239 of file VolumeNode.java.

DataResultViewerTable.HasCommentStatus org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.getCommentProperty ( List< Tag >  tags,
List< CorrelationAttributeInstance attributes 
)
protectedinherited

Returns comment property for the node.

Default implementation is a null implementation.

Parameters
tagsThe list of tags.
attributesThe list of correlation attribute instances.
Returns
Comment property for the underlying content of the node.

Definition at line 362 of file AbstractContentNode.java.

T org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.getContent ( )
inherited

Return the content data associated with this node

Returns
the content object wrapped by this node

Definition at line 125 of file AbstractContentNode.java.

List<Content> org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.getContentChildren ( )
inherited

Return children of the underlying content.

Returns
list of content children content.

Definition at line 237 of file AbstractContentNode.java.

int org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.getContentChildrenCount ( )
inherited

Get count of the underlying content object children.

Useful for lazy loading.

Returns
content children count

Definition at line 259 of file AbstractContentNode.java.

List<Long> org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.getContentChildrenIds ( )
inherited

Return ids of children of the underlying content. The ids can be treated as keys - useful for lazy loading.

Returns
list of content ids of children content.

Definition at line 217 of file AbstractContentNode.java.

Pair<Long, String> org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.getCountPropertyAndDescription ( CorrelationAttributeInstance  attribute,
String  defaultDescription 
)
protectedinherited

Returns occurrences/count property for the node.

Default implementation is a null implementation.

Parameters
attributeThe correlation attribute for which data will be retrieved.
defaultDescriptionA description to use when none is determined by the getCountPropertyAndDescription method.
Returns
count property for the underlying content of the node.

Definition at line 378 of file AbstractContentNode.java.

String org.sleuthkit.autopsy.datamodel.VolumeNode.getItemType ( )

Definition at line 227 of file VolumeNode.java.

String org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.getName ( )
inherited

Definition at line 135 of file AbstractContentNode.java.

Pair<Score, String> org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.getScorePropertyAndDescription ( List< Tag >  tags)
protectedinherited

Returns Score property for the node.

Parameters
tagslist of tags.
Returns
Score property for the underlying content of the node.

Definition at line 339 of file AbstractContentNode.java.

boolean org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.hasContentChildren ( )
inherited

Return true if the underlying content object has children Useful for lazy loading.

Returns
true if has children

Definition at line 197 of file AbstractContentNode.java.

boolean org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.hasVisibleContentChildren ( )
inherited

Return true if the underlying content object has children Useful for lazy loading.

Returns
true if has children

Definition at line 145 of file AbstractContentNode.java.

boolean org.sleuthkit.autopsy.datamodel.VolumeNode.isLeafTypeNode ( )

Definition at line 217 of file VolumeNode.java.

int org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.read ( byte[]  buf,
long  offset,
long  len 
) throws TskException
inherited

Reads the content of this node (of the underlying content object).

Parameters
bufbuffer to read into
offsetthe starting offset in the content object
lenthe length to read
Returns
the bytes read
Exceptions
TskExceptionexception thrown if the requested part of content could not be read

Definition at line 285 of file AbstractContentNode.java.

void org.sleuthkit.autopsy.datamodel.VolumeNode.removeListeners ( )
private
void org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.setName ( String  name)
inherited

Definition at line 130 of file AbstractContentNode.java.

synchronized void org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.updateSheet ( NodeProperty<?>...  newProps)
protectedinherited

Updates the values of the properties in the current property sheet with the new properties being passed in. Only if that property exists in the current sheet will it be applied. That way, we allow for subclasses to add their own (or omit some!) properties and we will not accidentally disrupt their UI.

Race condition if not synchronized. Only one update should be applied at a time.

Parameters
newPropsNew file property instances to be updated in the current sheet.

Definition at line 302 of file AbstractContentNode.java.

Member Data Documentation

final T org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.content
protectedinherited
final Set<IngestManager.IngestModuleEvent> org.sleuthkit.autopsy.datamodel.VolumeNode.INGEST_MODULE_EVENTS_OF_INTEREST = EnumSet.of(IngestManager.IngestModuleEvent.CONTENT_CHANGED)
staticprivate
final Logger org.sleuthkit.autopsy.datamodel.VolumeNode.logger = Logger.getLogger(VolumeNode.class.getName())
staticprivate

Definition at line 52 of file VolumeNode.java.

final String org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.NO_DESCR
staticprotectedinherited

Default no description string

Definition at line 77 of file AbstractContentNode.java.

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.VolumeNode.pcl
private
final String org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.VALUE_LOADING
staticprotectedinherited

Definition at line 78 of file AbstractContentNode.java.


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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Sep 30 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.