public interface TimelineEventProvider
TimelineEvents to a
Timeline. Implementations must register themselves as an OSGi-component and declare itself as a service on this interface. This way the timeline aggregator service is able to dynamically use available providers to generate timline events for a given
Resource. A provider may decide (see
accepts(org.apache.sling.api.resource.Resource)) whether to provide events or not for a given resource. Events are provided via
|Modifier and Type||Method and Description|
Indicates to the timeline aggregator whether this provider accepts the given
boolean accepts(Resource resource)
resourceor not. In case the provider doesn not accept the resource,
getEvents(org.apache.sling.api.resource.Resource)is never called.
Resourceto indicate for whether it is accepted or not.
trueif the provider accepts providing events for the given resource.
java.util.Collection<TimelineEvent> getEvents(Resource resource)
truefor a given resource, this method is called with the same resource parameter in order for the provider to return a
TimelineEvents for the given resource.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"