public class TasksEventType extends WorkspacesEventType implements Contextualizable
EventType
implementation for documents-related eventsModifier and Type | Field and Description |
---|---|
private Context |
_context |
private TasksWorkspaceModule |
_taskModule |
static String |
EVENT_CATEGORY_TASKS
Constant for event's category
|
static String |
EVENT_TASK_ID_PROPERTY
Constant for task's title's event property
|
static String |
EVENT_TASK_TITLE_PROPERTY
Constant for task's title's event property
|
_projectManager, EVENT_PROJECT_CATEGORY_PROPERTY, EVENT_PROJECT_NAME_PROPERTY, EVENT_PROJECT_TITLE_PROPERTY
_currentUserProvider, _userHelper
EVENT_AUTHOR, EVENT_DATE, EVENT_TYPE
Constructor and Description |
---|
TasksEventType() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
Map<String,Object> |
event2JSON(Node eventNode)
Format an event node to JSON
|
Map<String,Object> |
mergeEvents(List<Map<String,Object>> events)
Merge events into one event.
|
void |
service(ServiceManager serviceManager) |
protected void |
storeAdditionalEventData(Node eventNode,
Map<String,Object> parameters)
Store additional data on event
|
isMergeable
_getAuthor, configure, getSupportedTypes, setPluginInfo, storeEvent
getLogger, setLogger
public static final String EVENT_CATEGORY_TASKS
public static final String EVENT_TASK_ID_PROPERTY
public static final String EVENT_TASK_TITLE_PROPERTY
private TasksWorkspaceModule _taskModule
public TasksEventType()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class WorkspacesEventType
ServiceException
protected void storeAdditionalEventData(Node eventNode, Map<String,Object> parameters) throws RepositoryException
DefaultEventType
storeAdditionalEventData
in class WorkspacesEventType
eventNode
- The event nodeparameters
- The event's parametersRepositoryException
- if an error occurredpublic Map<String,Object> event2JSON(Node eventNode) throws RepositoryException
EventType
event2JSON
in interface EventType
event2JSON
in class WorkspacesEventType
eventNode
- the node of an eventRepositoryException
- if an error occurs while manipulating the repositorypublic Map<String,Object> mergeEvents(List<Map<String,Object>> events)
EventType
mergeEvents
in interface EventType
mergeEvents
in class DefaultEventType
events
- The events to merge