Class CommentingEvent

java.lang.Object
com.adobe.granite.comments.CommentingEvent

public final class CommentingEvent extends Object
The CommentingEvent represents events occurred during commenting
  • Field Details

    • EVENT_TOPIC_BASE

      public static final String EVENT_TOPIC_BASE
      Base Event Topic for Commenting Events. EVENT_TOPIC will be formed by appending types to it.
      See Also:
  • Constructor Details

  • Method Details

    • fromEvent

      public static CommentingEvent fromEvent(Event event)
      convert OSGI event to CommentingEvent
      Parameters:
      event - OSGI event
      Returns:
      CommentingEvent. null if it can't be converted to CommentingEvent.
    • getCommentPath

      public String getCommentPath()
      Returns:
      the path of the comment created.
    • getEventTopic

      public String getEventTopic()
      Returns:
      event topic of the event
    • commented

      public static CommentingEvent commented(String commentPath)
      creates an event for Type.COMMENTED
      Parameters:
      commentPath - path of the comment node
      Returns:
      CommentingEvent Object
    • toEvent

      public Event toEvent()
      Create a distributable event.
      Returns:
      An event.