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

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

Public Member Functions

 PoolNode (Pool pool)
 
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< DataResultViewerTable.Score, String > getScorePropertyAndDescription (List< Tag > tags)
 
synchronized void updateSheet (NodeProperty<?>...newProps)
 

Static Protected Attributes

static final String NO_DESCR
 
static final String VALUE_LOADING
 

Detailed Description

This class is used to represent the "Node" for the pool.

Definition at line 36 of file PoolNode.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.PoolNode.PoolNode ( Pool  pool)
Parameters
poolunderlying Content instance

Definition at line 54 of file PoolNode.java.

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

References org.sleuthkit.autopsy.casemodule.Case::getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case::getSleuthkitCase().

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

Right click action for volume node

Parameters
popup
Returns

Definition at line 72 of file PoolNode.java.

List<Tag> org.sleuthkit.autopsy.datamodel.PoolNode.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 141 of file PoolNode.java.

DataResultViewerTable.HasCommentStatus org.sleuthkit.autopsy.datamodel.PoolNode.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 184 of file PoolNode.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 123 of file AbstractContentNode.java.

Referenced by org.sleuthkit.autopsy.datamodel.PoolNode::createSheet().

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 235 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 257 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 215 of file AbstractContentNode.java.

CorrelationAttributeInstance org.sleuthkit.autopsy.datamodel.PoolNode.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 155 of file PoolNode.java.

Pair<Long, String> org.sleuthkit.autopsy.datamodel.PoolNode.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 201 of file PoolNode.java.

References org.sleuthkit.autopsy.datamodel.AbstractContentNode< Pool >.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.PoolNode.getItemType ( )

Definition at line 129 of file PoolNode.java.

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

Definition at line 133 of file AbstractContentNode.java.

Pair<DataResultViewerTable.Score, String> org.sleuthkit.autopsy.datamodel.PoolNode.getScorePropertyAndDescription ( List< Tag >  tags)
protected

Returns Score property for the node.

Null implementation of an abstract method.

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

Definition at line 169 of file PoolNode.java.

References org.sleuthkit.autopsy.datamodel.AbstractContentNode< Pool >.NO_DESCR, and org.sleuthkit.autopsy.corecomponents.DataResultViewerTable.Score.NO_SCORE.

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

References org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >::contentHasVisibleContentChildren().

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

Definition at line 119 of file PoolNode.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 283 of file AbstractContentNode.java.

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

Definition at line 128 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 300 of file AbstractContentNode.java.

References org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >::getName().

Member Data Documentation

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

Definition at line 76 of file AbstractContentNode.java.


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

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