|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QuestionOperations
Method Summary | |
---|---|
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. |
PagedList<QuestionOption> |
getOptions(String questionId)
Retrieves all options for a specified question. |
Question |
getQuestion(String questionId)
Retrieves a question. |
PagedList<Question> |
getQuestions()
Retrieves all questions asked by the authenticated user. |
PagedList<Question> |
getQuestions(String userId)
Retrieves all questions asked by the specified user. |
Method Detail |
---|
String askQuestion(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.String addOption(String questionId, 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(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()
Question
s
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(String userId)
Question
s
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(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(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(String questionId)
questionId
- the ID of the question to retrieve options for
QuestionOption
s
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(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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |