Package com.adobe.granite.timeline
Interface TimelineEvent
public interface TimelineEvent
A TimelineEvent represents an "action" or "event" that occurred on the Resource backing the Timeline that provided this event. Timline events can
only be retrieved via a Timeline. An event has a TimelineEventType. The types available are defined
by the TimelineEventProviders registered in the system and may vary.
An event's basic constituents are its type (see getType()), the time of the occurrence (see getTime()) and the action (see getAction()), and more.
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the action that is represented by this event, e.g.An optional description of the event, e.g.An optional reference to the origin of this event, e.g.longgetTime()The date and time in milliseconds this event occurred.getType()Returns theTimelineEventTypes of this event.The ID of the user that caused the event.
-
Method Details
-
getAction
String getAction()The name of the action that is represented by this event, e.g. "Version Created".- Returns:
- A string representing the action.
-
getDescription
String getDescription()An optional description of the event, e.g. a comment's text as provided by the user.- Returns:
- A string representing the action, or
nullif none was provided.
-
getOrigin
String getOrigin()An optional reference to the origin of this event, e.g. a path to a version, or to comment. The format of the origin is dependent on the event type.- Returns:
- A string representing the origin, or
nullif none was provided.
-
getTime
long getTime()The date and time in milliseconds this event occurred.- Returns:
- A
Longrepresenting the date-time this event occurred.
-
getType
TimelineEventType getType()Returns theTimelineEventTypes of this event.- Returns:
- The type.
-
getUserID
String getUserID()The ID of the user that caused the event.- Returns:
- A string representing the user ID.
-