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 Details

  • 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.RepositoryException
      Store an event with the given event id under the given event holder node
      Parameters:
      eventId - the id of the event to store
      parameters - the event parameters
      eventHolder - the event holder
      Returns:
      the stored node
      Throws:
      javax.jcr.RepositoryException - if an error occurs while manipulating the repository
    • event2JSON

      Map<String,Object> event2JSON(javax.jcr.Node eventNode) throws javax.jcr.RepositoryException
      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

      boolean isMergeable(Map<String,Object> event1, Map<String,Object> event2)
      Determines if two events can be merged
      Parameters:
      event1 - The first event
      event2 - 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