Package com.adobe.granite.timeline
Interface TimelineEvent
-
public interface TimelineEventA
TimelineEventrepresents an "action" or "event" that occurred on theResourcebacking theTimelinethat provided this event. Timline events can only be retrieved via aTimeline. An event has aTimelineEventType. The types available are defined by theTimelineEventProviders 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.StringgetAction()The name of the action that is represented by this event, e.g.java.lang.StringgetDescription()An optional description of the event, e.g.java.lang.StringgetOrigin()An optional reference to the origin of this event, e.g.longgetTime()The date and time in milliseconds this event occurred.TimelineEventTypegetType()Returns theTimelineEventTypes of this event.java.lang.StringgetUserID()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
nullif 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
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
java.lang.String getUserID()
The ID of the user that caused the event.- Returns:
- A string representing the user ID.
-
-