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

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

Classes

class  GetOsAccountRealmTask
 

Public Member Functions

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 Attributes

OsAccount account
 
final PropertyChangeListener listener
 
final PropertyChangeListener weakListener = WeakListeners.propertyChange(listener, null)
 

Detailed Description

An OsAccount leaf Node.

Definition at line 183 of file OsAccounts.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 158 of file AbstractContentNode.java.

Sheet org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.createSheet ( )
protected
Action [] org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.getActions ( boolean  popup)
List<Tag> org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.getAllTagsFromDatabase ( )
protected

Definition at line 334 of file OsAccounts.java.

DataResultViewerTable.HasCommentStatus org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.getCommentProperty ( List< Tag >  tags,
CorrelationAttributeInstance  attribute 
)
protected
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.OsAccounts.OsAccountNode.getCorrelationAttributeInstance ( )
protected

Definition at line 339 of file OsAccounts.java.

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

Definition at line 349 of file OsAccounts.java.

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.OsAccounts.OsAccountNode.getItemType ( )

Definition at line 245 of file OsAccounts.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.OsAccounts.OsAccountNode.isLeafTypeNode ( )

Definition at line 240 of file OsAccounts.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.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

OsAccount org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.account
private

Definition at line 185 of file OsAccounts.java.

final T org.sleuthkit.autopsy.datamodel.AbstractContentNode< T extends Content >.content
protectedinherited

Underlying Sleuth Kit Content object

Definition at line 63 of file AbstractContentNode.java.

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.listener
private
Initial value:
= new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (evt.getPropertyName().equals(Case.Events.OS_ACCOUNTS_UPDATED.name())) {
OsAccountsUpdatedEvent updateEvent = (OsAccountsUpdatedEvent) evt;
for (OsAccount acct : updateEvent.getOsAccounts()) {
if (acct.getId() == account.getId()) {
account = acct;
updateSheet();
break;
}
}
} else if (evt.getPropertyName().equals(REALM_DATA_AVAILABLE_EVENT)) {
OsAccountRealm realm = (OsAccountRealm) evt.getNewValue();
List<String> realmNames = realm.getRealmNames();
if (!realmNames.isEmpty()) {
updateSheet(new NodeProperty<>(
Bundle.OsAccounts_accountRealmNameProperty_name(),
Bundle.OsAccounts_accountRealmNameProperty_displayName(),
Bundle.OsAccounts_accountRealmNameProperty_desc(),
realmNames.get(0)));
}
}
}
}

Definition at line 187 of file OsAccounts.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.

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

Definition at line 79 of file AbstractContentNode.java.

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.weakListener = WeakListeners.propertyChange(listener, null)
private

Definition at line 216 of file OsAccounts.java.


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

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