public interface QuestionService
| Modifier and Type | Method and Description |
|---|---|
String |
addOption(String questionId,
String optionText)
Adds an option to a question.
|
String |
askQuestion(String questionText)
Publishes a question.
|
void |
deleteOption(String optionId)
Removes a question option.
|
void |
deleteQuestion(String questionId)
Removes a question.
|
QuestionOption |
getOption(String optionId)
Retrieves a question option.
|
List<QuestionOption> |
getOptions(String questionId)
Retrieves all options for a specified question.
|
Question |
getQuestion(String questionId)
Retrieves a question.
|
List<Question> |
getQuestions()
Retrieves all questions asked by the authenticated user.
|
List<Question> |
getQuestions(String userId)
Retrieves all questions asked by the specified user.
|
String askQuestion(String questionText)
questionText - the question textApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String addOption(String questionId, String optionText)
questionId - the question to add the option tooptionText - the text of the optionApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Question getQuestion(String questionId)
questionId - the ID of the questionQuestionApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Question> getQuestions()
QuestionsApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Question> getQuestions(String userId)
QuestionsApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void deleteQuestion(String questionId)
questionId - the ID of the question to deleteApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.QuestionOption getOption(String optionId)
optionId - the ID of the optionQuestionOptionApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<QuestionOption> getOptions(String questionId)
questionId - the ID of the question to retrieve options forQuestionOptionsApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void deleteOption(String optionId)
optionId - the ID of the option to deleteApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Copyright © 2011-2013 Seam Framework. All Rights Reserved.