Autopsy  4.18.0
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, CorrelationAttributeInstance attribute)
 
CorrelationAttributeInstance getCorrelationAttributeInstance ()
 
Pair< Long, String > getCountPropertyAndDescription (CorrelationAttributeInstance.Type attributeType, String attributeValue, String defaultDescription)
 
abstract Pair< Long, String > getCountPropertyAndDescription (Type attributeType, String attributeValue, 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 54 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 158 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 164 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 243 of file VolumeNode.java.

DataResultViewerTable.HasCommentStatus org.sleuthkit.autopsy.datamodel.VolumeNode.getCommentProperty ( List< Tag >  tags,
CorrelationAttributeInstance  attribute 
)
protected

Returns comment property for the node.

Null implementation of an abstract method.

Parameters
tagslist of tags
attributecorrelation attribute instance
Returns
Comment property for the underlying content of the node.

Definition at line 272 of file VolumeNode.java.

References org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.HasCommentStatus.NO_COMMENT.

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 126 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 238 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 260 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 218 of file AbstractContentNode.java.

CorrelationAttributeInstance org.sleuthkit.autopsy.datamodel.VolumeNode.getCorrelationAttributeInstance ( )
protected

Returns correlation attribute instance for the underlying content of the node.

Null implementation of an abstract method.

Returns
correlation attribute instance for the underlying content of the node.

Definition at line 257 of file VolumeNode.java.

Pair<Long, String> org.sleuthkit.autopsy.datamodel.VolumeNode.getCountPropertyAndDescription ( CorrelationAttributeInstance.Type  attributeType,
String  attributeValue,
String  defaultDescription 
)
protected

Returns occurrences/count property for the node.

Null implementation of an abstract method.

Parameters
attributeTypethe type of the attribute to count
attributeValuethe value of the attribute to coun
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 289 of file VolumeNode.java.

References org.sleuthkit.autopsy.datamodel.AbstractContentNode< Volume >.NO_DESCR.

abstract Pair<Long, String> org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.getCountPropertyAndDescription ( Type  attributeType,
String  attributeValue,
String  defaultDescription 
)
abstractprotectedinherited

Returns occurrences/count property for the node.

Parameters
attributeTypethe type of the attribute to count
attributeValuethe value of the attribute to count
defaultDescriptiona description to use when none is determined by the getCountPropertyAndDescription method
Returns
count property for the underlying content of the node.
String org.sleuthkit.autopsy.datamodel.VolumeNode.getItemType ( )

Definition at line 231 of file VolumeNode.java.

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

Definition at line 136 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 349 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 198 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 146 of file AbstractContentNode.java.

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

Definition at line 221 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 286 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 131 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 303 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 56 of file VolumeNode.java.

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

Default no description string

Definition at line 78 of file AbstractContentNode.java.

Referenced by org.sleuthkit.autopsy.datamodel.VolumeNode::getCountPropertyAndDescription().

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 79 of file AbstractContentNode.java.


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

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