Autopsy  4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel Class Reference

Public Member Functions

 DetailsViewModel (EventsModel eventsModel)
 
List< EventStripegetEventStripes (EventsModelParams zoom) throws TskCoreException
 
List< EventStripegetEventStripes (UIFilter uiFilter, EventsModelParams zoom) throws TskCoreException
 

Private Member Functions

List< TimelineEvent > getEvents (EventsModelParams zoom, DateTimeZone timeZone) throws TskCoreException
 

Static Private Member Functions

static List< EventStripemergeClustersToStripes (Period timeUnitLength, Map< TimelineEventType, SetMultimap< String, EventCluster >> eventClusters)
 

Private Attributes

final LoadingCache< EventsModelParams, List< TimelineEvent > > eventCache
 
final TimelineManager eventManager
 
final EventsModel eventsModel
 
final SleuthkitCase sleuthkitCase
 

Static Private Attributes

static final Logger logger = Logger.getLogger(DetailsViewModel.class.getName())
 

Detailed Description

Model for the Details View. Uses FilteredEventsModel as underlying datamodel and supplies abstractions / data objects specific to the DetailsView

Definition at line 67 of file DetailsViewModel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.DetailsViewModel ( EventsModel  eventsModel)

Member Function Documentation

List<TimelineEvent> org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.getEvents ( EventsModelParams  zoom,
DateTimeZone  timeZone 
) throws TskCoreException
private

Get a list of EventStripes, clustered according to the given zoom paramaters.

Parameters
zoomThe ZoomState that determine the zooming, filtering and clustering.
timeZoneThe time zone to use.
Returns
a list of aggregate events within the given timerange, that pass the supplied filter, aggregated according to the given event type and description zoom levels
Exceptions
org.sleuthkit.datamodel.TskCoreExceptionIf there is an error querying the db.

Definition at line 159 of file DetailsViewModel.java.

Referenced by org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.DetailsViewModel().

List<EventStripe> org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.getEventStripes ( EventsModelParams  zoom) throws TskCoreException
Parameters
zoom
Returns
a list of aggregated events that are within the requested time range and pass the requested filter, using the given aggregation to control the grouping of events
Exceptions
org.sleuthkit.datamodel.TskCoreException

Definition at line 102 of file DetailsViewModel.java.

References org.sleuthkit.autopsy.timeline.ui.filtering.datamodel.UIFilter.getAllPassFilter().

Referenced by org.sleuthkit.autopsy.timeline.ui.detailview.DetailViewPane.DetailsUpdateTask.call().

List<EventStripe> org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.getEventStripes ( UIFilter  uiFilter,
EventsModelParams  zoom 
) throws TskCoreException
Parameters
uiFilter
zoom
Returns
a list of aggregated events that are within the requested time range and pass the requested filter, using the given aggregation to control the grouping of events
Exceptions
org.sleuthkit.datamodel.TskCoreException

Definition at line 116 of file DetailsViewModel.java.

References org.sleuthkit.autopsy.timeline.TimeLineController.getJodaTimeZone(), org.sleuthkit.autopsy.timeline.utils.RangeDivision.getPeriodSize(), org.sleuthkit.autopsy.timeline.utils.RangeDivision.getRangeDivision(), org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.mergeClustersToStripes(), and org.sleuthkit.autopsy.timeline.zooming.TimeUnits.toUnitPeriod().

static List<EventStripe> org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.mergeClustersToStripes ( Period  timeUnitLength,
Map< TimelineEventType, SetMultimap< String, EventCluster >>  eventClusters 
)
staticprivate

Merge the events in the given list if they are within the same period General algorithm is as follows:

1) sort them into a map from (type, description)-> List<EventCluster> 2) for each key in map, merge the events and accumulate them in a list to return

Parameters
timeUnitLength
eventClusters
Returns

Definition at line 179 of file DetailsViewModel.java.

References org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.EventCluster.getSpan(), org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.EventStripe.merge(), and org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.EventCluster.merge().

Referenced by org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.getEventStripes().

Member Data Documentation

final LoadingCache<EventsModelParams, List<TimelineEvent> > org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.eventCache
private

Definition at line 72 of file DetailsViewModel.java.

final TimelineManager org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.eventManager
private

Definition at line 73 of file DetailsViewModel.java.

final EventsModel org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.eventsModel
private
final Logger org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.logger = Logger.getLogger(DetailsViewModel.class.getName())
staticprivate

Definition at line 69 of file DetailsViewModel.java.

final SleuthkitCase org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailsViewModel.sleuthkitCase
private

Definition at line 74 of file DetailsViewModel.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.