Package com.adobe.granite.taskmanagement
Class TaskEvent
- java.lang.Object
-
- org.osgi.service.event.Event
-
- com.adobe.granite.taskmanagement.TaskEvent
-
public class TaskEvent extends Event
TaskManagement Event
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TASK_EVENT_TYPE
The event property name for the type of the event.static java.lang.String
TASK_EVENT_TYPE_STRING
The event property name for the name of the type of event.static java.lang.String
TASK_ID
The Id of the task associated with this event.static java.lang.String
TASK_TYPE_NAME
The tasktype name of the task associated with this event.static java.lang.String
TOPIC
Topic for Task Events
-
Constructor Summary
Constructors Constructor Description TaskEvent(java.util.Map<java.lang.String,java.lang.Object> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskEventType
getEventType()
Helper to return the task event type for this eventjava.lang.String
getTaskId()
Helper to return the task id for this task event.java.lang.String
getTaskType()
Helper to return the task type for this task-
Methods inherited from class org.osgi.service.event.Event
containsProperty, equals, getProperty, getPropertyNames, getTopic, hashCode, matches, toString
-
-
-
-
Field Detail
-
TOPIC
public static final java.lang.String TOPIC
Topic for Task Events- See Also:
- Constant Field Values
-
TASK_ID
public static final java.lang.String TASK_ID
The Id of the task associated with this event.- See Also:
- Constant Field Values
-
TASK_TYPE_NAME
public static final java.lang.String TASK_TYPE_NAME
The tasktype name of the task associated with this event.- See Also:
- Constant Field Values
-
TASK_EVENT_TYPE
public static final java.lang.String TASK_EVENT_TYPE
The event property name for the type of the event. The value can be one of the following:- See Also:
- Constant Field Values
-
TASK_EVENT_TYPE_STRING
public static final java.lang.String TASK_EVENT_TYPE_STRING
The event property name for the name of the type of event.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEventType
public TaskEventType getEventType()
Helper to return the task event type for this event- Returns:
- the task event type
-
getTaskId
public java.lang.String getTaskId()
Helper to return the task id for this task event.- Returns:
- the Id of the task associated with this event.
-
getTaskType
public java.lang.String getTaskType()
Helper to return the task type for this task- Returns:
- task type string
-
-