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 java.lang.String
getAction()
The name of the action that is represented by this event, e.g.java.lang.String
getDescription()
An optional description of the event, e.g.java.lang.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.java.lang.String
getUserID()
The ID of the user that caused the event.
-
-
-
Method Detail
-
getAction
java.lang.String getAction()
The name of the action that is represented by this event, e.g. "Version Created".- Returns:
- A string representing the action.
-
getDescription
java.lang.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
java.lang.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
java.lang.String getUserID()
The ID of the user that caused the event.- Returns:
- A string representing the user ID.
-
-