Package com.adobe.granite.timeline
Interface TimelineEvent
-
public interface TimelineEvent
A
TimelineEvent
represents an "action" or "event" that occurred on theResource
backing theTimeline
that provided this event. Timline events can only be retrieved via aTimeline
. An event has aTimelineEventType
. The types available are defined by theTimelineEventProvider
s registered in the system and may vary.An event's basic constituents are its type (see
getType()
), the time of the occurrence (seegetTime()
) and the action (seegetAction()
), and more.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAction()
The name of the action that is represented by this event, e.g.String
getDescription()
An optional description of the event, e.g.String
getOrigin()
An optional reference to the origin of this event, e.g.long
getTime()
The date and time in milliseconds this event occurred.TimelineEventType
getType()
Returns theTimelineEventType
s of this event.String
getUserID()
The ID of the user that caused the event.
-
-
-
Method Detail
-
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
null
if 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
null
if none was provided.
-
getTime
long getTime()
The date and time in milliseconds this event occurred.- Returns:
- A
Long
representing the date-time this event occurred.
-
getType
TimelineEventType getType()
Returns theTimelineEventType
s 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.
-
-