|
Spring Social Facebook | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QuestionOperations
| Method Summary | |
|---|---|
java.lang.String |
addOption(java.lang.String questionId,
java.lang.String optionText)
Adds an option to a question. |
java.lang.String |
askQuestion(java.lang.String questionText)
Publishes a question. |
void |
deleteOption(java.lang.String optionId)
Removes a question option. |
void |
deleteQuestion(java.lang.String questionId)
Removes a question. |
QuestionOption |
getOption(java.lang.String optionId)
Retrieves a question option. |
PagedList<QuestionOption> |
getOptions(java.lang.String questionId)
Retrieves all options for a specified question. |
Question |
getQuestion(java.lang.String questionId)
Retrieves a question. |
PagedList<Question> |
getQuestions()
Retrieves all questions asked by the authenticated user. |
PagedList<Question> |
getQuestions(java.lang.String userId)
Retrieves all questions asked by the specified user. |
| Method Detail |
|---|
java.lang.String askQuestion(java.lang.String questionText)
questionText - the question text
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
java.lang.String addOption(java.lang.String questionId,
java.lang.String optionText)
questionId - the question to add the option tooptionText - the text of the option
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Question getQuestion(java.lang.String questionId)
questionId - the ID of the question
Question
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.PagedList<Question> getQuestions()
Questions
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.PagedList<Question> getQuestions(java.lang.String userId)
Questions
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void deleteQuestion(java.lang.String questionId)
questionId - the ID of the question to delete
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.QuestionOption getOption(java.lang.String optionId)
optionId - the ID of the option
QuestionOption
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.PagedList<QuestionOption> getOptions(java.lang.String questionId)
questionId - the ID of the question to retrieve options for
QuestionOptions
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void deleteOption(java.lang.String optionId)
optionId - the ID of the option to delete
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException - if the user has not granted "publish_stream" permission.
org.springframework.social.MissingAuthorizationException - if FacebookTemplate was not created with an access token.
|
Spring Social Facebook | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||