Interface EventType
- All Known Implementing Classes:
CalendarEventCreatedOrUpdatedEventType
,CalendarsEventType
,ContentEventType
,DefaultEventType
,DocumentsEventType
,MemberAddedEventType
,MinisiteEventType
,MinisitePageRenamedEventType
,NewsPublishedEventType
,PostCreatedEventType
,ProjectsEventType
,ResourceCreatedOrUpdatedEventType
,ResourceRenamedEventType
,TaskAssignedEventType
,TaskClosedStatusChangedEventType
,TasksEventType
,ThreadCreatedEventType
,ThreadsEventType
,WorkspacesEventType
public interface EventType
Interface for event types
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionevent2JSON
(javax.jcr.Node eventNode) Format an event node to JSONGet the ids of the supported event typesboolean
Determines if two events can be mergedmergeEvents
(List<Map<String, Object>> events) Merge events into one event.javax.jcr.Node
storeEvent
(String eventId, Map<String, Object> parameters, EventHolder eventHolder) Store an event with the given event id under the given event holder node
-
Field Details
-
EVENT_DATE
Constants for event's date property- See Also:
-
EVENT_TYPE
Constants for event's type property- See Also:
-
EVENT_AUTHOR
Constants for event's author property- See Also:
-
-
Method Details
-
getSupportedTypes
Get the ids of the supported event types- Returns:
- the ids of the supported event types
-
storeEvent
javax.jcr.Node storeEvent(String eventId, Map<String, Object> parameters, EventHolder eventHolder) throws javax.jcr.RepositoryExceptionStore an event with the given event id under the given event holder node- Parameters:
eventId
- the id of the event to storeparameters
- the event parameterseventHolder
- the event holder- Returns:
- the stored node
- Throws:
javax.jcr.RepositoryException
- if an error occurs while manipulating the repository
-
event2JSON
Format an event node to JSON- Parameters:
eventNode
- the node of an event- Returns:
- the JSON for the node
- Throws:
javax.jcr.RepositoryException
- if an error occurs while manipulating the repository
-
isMergeable
Determines if two events can be merged- Parameters:
event1
- The first eventevent2
- The second event- Returns:
- true if the events can be merged
-
mergeEvents
Merge events into one event. Be careful : be sure that the events can be merged calling isMergeable method before- Parameters:
events
- The events to merge- Returns:
- Merged event
-