Package com.adobe.granite.comments
Class CommentingEvent
java.lang.Object
com.adobe.granite.comments.CommentingEvent
The
CommentingEvent represents events occurred during commenting-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommentingEventcreates an event for Type.COMMENTEDstatic CommentingEventconvert OSGI event toCommentingEventtoEvent()Create a distributable event.
-
Field Details
-
EVENT_TOPIC_BASE
Base Event Topic for Commenting Events. EVENT_TOPIC will be formed by appending types to it.- See Also:
-
-
Constructor Details
-
CommentingEvent
-
-
Method Details
-
fromEvent
convert OSGI event toCommentingEvent- Parameters:
event- OSGI event- Returns:
- CommentingEvent. null if it can't be converted to CommentingEvent.
-
getCommentPath
- Returns:
- the path of the comment created.
-
getEventTopic
- Returns:
- event topic of the event
-
commented
creates an event for Type.COMMENTED- Parameters:
commentPath- path of the comment node- Returns:
- CommentingEvent Object
-
toEvent
Create a distributable event.- Returns:
- An event.
-