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 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,
String userId)
Creates a QnAEvent that represents an action of
QnaActions.ANSWER_CREATED |
static QnaEvent |
answerDeleted(QnaPost post,
String userId)
Creates a QnAEvent that represents an action of
QnaActions.ANSWER_DELETED |
static QnaEvent |
answerEdited(QnaPost post,
String userId)
Creates a QnAEvent that represents an action of
QnaActions.ANSWER_EDITED |
static QnaEvent |
answerSelected(QnaPost post,
String userId)
Creates a QnAEvent that represents an action of
QnaActions.ANSWER_SELECTED |
static QnaEvent |
answerUnselected(QnaPost post,
String userId)
Creates a QnAEvent that represents an action of
QnaActions.ANSWER_UNSELECTED |
static QnaEvent |
questionCreated(QnaPost post,
String userId)
Creates a QnAEvent that represents an action of
QnaActions.QUESTION_CREATED |
static QnaEvent |
questionDeleted(QnaPost post,
String userId)
Creates a QnAEvent that represents an action of
QnaActions.QUESTION_DELETED |
static QnaEvent |
questionEdited(QnaPost post,
String userId)
Creates a QnAEvent that represents an action of
QnaActions.QUESTION_EDITED |
getAction, getObject, getPath, getTarget, getUserId
public static final String QNA_TOPIC
public static QnaEvent answerUnselected(QnaPost post, String userId)
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, String userId)
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, String userId)
QnaActions.QUESTION_CREATED
QnaPost
- - the Qna that was created.userId
- - the user id of the user who created the question.public static QnaEvent questionEdited(QnaPost post, String userId)
QnaActions.QUESTION_EDITED
pst
- - the question that was edited.userId
- - the user id of the user who edited the question.public static QnaEvent questionDeleted(QnaPost post, String userId)
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, String userId)
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, String userId)
QnaActions.ANSWER_DELETED
post
- - the answer that was deleted.userId
- - the user id for the user who deleted the answer."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"