public class QnaEvent extends SocialEvent<QnaEvent.QnaActions>
Modifier and Type | Class and Description |
---|---|
static class |
QnaEvent.QnaActions
List of available QnA actions that can trigger a QnA event.
|
SocialEvent.BaseEventObject, SocialEvent.EventObject, SocialEvent.SocialActions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
QNA_TOPIC
The event topic suffix for QnA events.
|
OBJECT, SOCIAL_EVENT_TOPIC_PREFIX, TARGET
Modifier and Type | Method and Description |
---|---|
static QnaEvent |
answerCreated(QnaPost post,
java.lang.String userId)
Creates a QnAEvent that represents an action of
QnaEvent.QnaActions.ANSWER_CREATED . |
static QnaEvent |
answerDeleted(QnaPost post,
java.lang.String userId)
Creates a QnAEvent that represents an action of
QnaEvent.QnaActions.ANSWER_DELETED . |
static QnaEvent |
answerEdited(QnaPost post,
java.lang.String userId)
Creates a QnAEvent that represents an action of
QnaEvent.QnaActions.ANSWER_EDITED . |
static QnaEvent |
answerSelected(QnaPost post,
java.lang.String userId)
Creates a QnAEvent that represents an action of
QnaEvent.QnaActions.ANSWER_SELECTED . |
static QnaEvent |
answerUnselected(QnaPost post,
java.lang.String userId)
Creates a QnAEvent that represents an action of
QnaEvent.QnaActions.ANSWER_UNSELECTED . |
static QnaEvent |
questionCreated(QnaPost post,
java.lang.String userId)
Creates a QnAEvent that represents an action of
QnaEvent.QnaActions.QUESTION_CREATED . |
static QnaEvent |
questionDeleted(QnaPost post,
java.lang.String userId)
Creates a QnAEvent that represents an action of
QnaEvent.QnaActions.QUESTION_DELETED . |
static QnaEvent |
questionEdited(QnaPost post,
java.lang.String userId)
Creates a QnAEvent that represents an action of
QnaEvent.QnaActions.QUESTION_EDITED . |
getAction, getObject, getPath, getTarget, getUserId
containsProperty, equals, getProperty, getPropertyNames, getTopic, hashCode, matches, toString
public static final java.lang.String QNA_TOPIC
public static QnaEvent answerUnselected(QnaPost post, java.lang.String userId)
QnaEvent.QnaActions.ANSWER_UNSELECTED
.post
- - the answer was selected.userId
- - the user id of the user who selected the answer.public static QnaEvent answerSelected(QnaPost post, java.lang.String userId)
QnaEvent.QnaActions.ANSWER_SELECTED
.post
- - the answer was selected.userId
- - the user id of the user who selected the answer.public static QnaEvent questionCreated(QnaPost post, java.lang.String userId)
QnaEvent.QnaActions.QUESTION_CREATED
.post
- - the Qna that was createduserId
- - the user id of the user who created the question.public static QnaEvent questionEdited(QnaPost post, java.lang.String userId)
QnaEvent.QnaActions.QUESTION_EDITED
.post
- - the question that was editeduserId
- - the user id of the user who edited the question.public static QnaEvent questionDeleted(QnaPost post, java.lang.String userId)
QnaEvent.QnaActions.QUESTION_DELETED
.post
- - the question that was deleted.userId
- - the user id of the user who deleted the question.public static QnaEvent answerCreated(QnaPost post, java.lang.String userId)
QnaEvent.QnaActions.ANSWER_CREATED
.post
- - the answer that was created.userId
- - the user id for the user who created the answer.public static QnaEvent answerDeleted(QnaPost post, java.lang.String userId)
QnaEvent.QnaActions.ANSWER_DELETED
.post
- - the answer that was deleted.userId
- - the user id for the user who deleted the answer.public static QnaEvent answerEdited(QnaPost post, java.lang.String userId)
QnaEvent.QnaActions.ANSWER_EDITED
.post
- - the answer that was edited.userId
- - the user id for the user who edited the answer.Copyright © 2010 - 2020 Adobe. All Rights Reserved