public class CommentEvent extends SocialEvent<CommentEvent.CommentActions>
Modifier and Type | Class and Description |
---|---|
static class |
CommentEvent.CommentActions
List of available comment actions that can trigger a comment event.
|
SocialEvent.BaseEventObject, SocialEvent.EventObject, SocialEvent.SocialActions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMENT_TOPIC
The event topic suffix for comment events.
|
static java.lang.String |
VERBS_ALLOW |
static java.lang.String |
VERBS_CHANGESTATE |
static java.lang.String |
VERBS_REOPEN |
OBJECT, SOCIAL_EVENT_TOPIC_PREFIX, TARGET
Constructor and Description |
---|
CommentEvent(Comment comment,
java.lang.String userId,
CommentEvent.CommentActions action) |
Modifier and Type | Method and Description |
---|---|
static CommentEvent |
fromEvent(Event event)
Retrieves the comment event from the given generic
Event . |
java.lang.String |
getCommentSystemPath() |
public static final java.lang.String COMMENT_TOPIC
public static final java.lang.String VERBS_CHANGESTATE
public static final java.lang.String VERBS_ALLOW
public static final java.lang.String VERBS_REOPEN
public CommentEvent(Comment comment, java.lang.String userId, CommentEvent.CommentActions action)
comment
- - the comment node on which the event was triggereduserId
- - the user id of the user who triggered the action.action
- - the action that was taken to trigger the event.public java.lang.String getCommentSystemPath()
public static CommentEvent fromEvent(Event event)
Event
.event
- The event.null
if the given event is not a comment event."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"