public interface Timeline
Timeline provides a collection of TimelineEvents specific to a Resource. The type of
events provided is dependent on the available TimelineEventProviders registered in the system. By default the
following events are provided: resource.adaptTo(Timeline.class).
Any resource can be adapted. Whether events are provided for a resource is decided by the event providers.| Modifier and Type | Method and Description |
|---|---|
java.util.List<TimelineEvent> |
getEvents()
Returns a
List of all TimelineEvents available for the resource backing the timeline. |
java.util.List<TimelineEvent> |
getEvents(TimelineEventType... types)
Returns a subset of events (as provided by
getEvents()), filtered by the given types. |
Resource |
getResource()
Returns the
Resource for which this timeline was created. |
Resource getResource()
Resource for which this timeline was created.Resource.java.util.List<TimelineEvent> getEvents()
List of all TimelineEvents available for the resource backing the timeline. If no
events are found, an empty collection is returned. The list is ordered chronologically (most recent last) as per
TimelineEvent.getTime(). In order to trim the result (e.g. for pagination, use
getEvents().subList(start, end).List of TimelineEvents, or an empty collection if no events were found.java.util.List<TimelineEvent> getEvents(TimelineEventType... types)
getEvents()), filtered by the given types. The
types by which to filter are provided as an array of TimelineEventTypes. The TimelineAggregator
service provides access to the available types (see TimelineAggregator.getTypes().
The list is ordered chronologically (most recent last) as per TimelineEvent.getTime().
In order to trim the result (e.g. for pagination, use getEvents(type).subList(start, end).types - The array of TimelineEventTypes by which to filter events.List of TimelineEvents filtered by type, or an empty list if no events or none of the
given types were found.Copyright © 2010 - 2023 Adobe. All Rights Reserved