|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LikeOperations
Defines operations for working with a user's likes and interests.
Method Summary | |
---|---|
PagedList<Page> |
getActivities()
Retrieves a list of activities that the authenticated user likes. |
PagedList<Page> |
getActivities(PagingParameters pagingParameters)
Retrieves a list of activities that the authenticated user likes. |
PagedList<Page> |
getActivities(String userId)
Retrieves a list of activities that the given user likes. |
PagedList<Page> |
getActivities(String userId,
PagingParameters pagingParameters)
Retrieves a list of activities that the given user likes. |
PagedList<Page> |
getBooks()
Retrieves a list of books that the authenticated user likes. |
PagedList<Page> |
getBooks(PagingParameters pagingParameters)
Retrieves a list of books that the authenticated user likes. |
PagedList<Page> |
getBooks(String userId)
Retrieves a list of books that the given user has liked. |
PagedList<Page> |
getBooks(String userId,
PagingParameters pagingParameters)
Retrieves a list of books that the given user has liked. |
PagedList<Page> |
getGames()
Retrieves a list of games that the authenticated user likes. |
PagedList<Page> |
getGames(PagingParameters pagingParameters)
Retrieves a list of games that the authenticated user likes. |
PagedList<Page> |
getGames(String userId)
Retrieves a list of games that the given user likes. |
PagedList<Page> |
getGames(String userId,
PagingParameters pagingParameters)
Retrieves a list of games that the given user likes. |
PagedList<Page> |
getInterests()
Retrieves a list of interests that the authenticated user likes. |
PagedList<Page> |
getInterests(PagingParameters pagingParameters)
Retrieves a list of interests that the authenticated user likes. |
PagedList<Page> |
getInterests(String userId)
Retrieves a list of interests that the given user likes. |
PagedList<Page> |
getInterests(String userId,
PagingParameters pagingParameters)
Retrieves a list of interests that the given user likes. |
PagedList<Reference> |
getLikes(String objectId)
Retrieves a list of references to users who have liked the specified object. |
PagedList<Reference> |
getLikes(String objectId,
PagingParameters pagingParameters)
Retrieves a page of references to users who have liked the specified object. |
PagedList<Page> |
getMovies()
Retrieves a list of movies that the authenticated user likes. |
PagedList<Page> |
getMovies(PagingParameters pagingParameters)
Retrieves a list of movies that the authenticated user likes. |
PagedList<Page> |
getMovies(String userId)
Retrieves a list of movies that the given user has liked. |
PagedList<Page> |
getMovies(String userId,
PagingParameters pagingParameters)
Retrieves a list of movies that the given user has liked. |
PagedList<Page> |
getMusic()
Retrieves a list of music that the authenticated user likes. |
PagedList<Page> |
getMusic(PagingParameters pagingParameters)
Retrieves a list of music that the authenticated user likes. |
PagedList<Page> |
getMusic(String userId)
Retrieves a list of music that the given user has liked. |
PagedList<Page> |
getMusic(String userId,
PagingParameters pagingParameters)
Retrieves a list of music that the given user has liked. |
PagedList<Page> |
getPagesLiked()
Retrieves a list of pages that the authenticated user has liked. |
PagedList<Page> |
getPagesLiked(PagingParameters pagingParameters)
Retrieves a list of pages that the authenticated user has liked. |
PagedList<Page> |
getPagesLiked(String userId)
Retrieves a list of pages that the given user has liked. |
PagedList<Page> |
getPagesLiked(String userId,
PagingParameters pagingParameters)
Retrieves a list of pages that the given user has liked. |
PagedList<Page> |
getTelevision()
Retrieves a list of television shows that the authenticated user likes. |
PagedList<Page> |
getTelevision(PagingParameters pagingParameters)
Retrieves a list of television shows that the authenticated user likes. |
PagedList<Page> |
getTelevision(String userId)
Retrieves a list of television shows that the given user has liked. |
PagedList<Page> |
getTelevision(String userId,
PagingParameters pagingParameters)
Retrieves a list of television shows that the given user has liked. |
void |
like(String objectId)
Like an object on behalf of the authenticated user. |
void |
unlike(String objectId)
Unlike an object on behalf of the authenticated user. |
Method Detail |
---|
PagedList<Reference> getLikes(String objectId)
PagingParameters
returned from PagedList.getNextPage()
into getLikes(String, PagingParameters)
to get the next page.
objectId
- the object ID (an Album, Checkin, Comment, Note, Photo, Post, or Video).
Reference
objects for the users who have liked the object.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Reference> getLikes(String objectId, PagingParameters pagingParameters)
objectId
- the object ID (an Album, Checkin, Comment, Note, Photo, Post, or Video).pagingParameters
- the paging parameters for fetching a specific page of references.
Reference
objects for the users who have liked the object.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getPagesLiked()
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getPagesLiked(PagingParameters pagingParameters)
pagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getPagesLiked(String userId)
userId
- the ID of the user
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" or "friends_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getPagesLiked(String userId, PagingParameters pagingParameters)
userId
- the ID of the userpagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" or "friends_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.void like(String objectId)
objectId
- the object ID
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 or if the user does not have permission to access the object.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.void unlike(String objectId)
objectId
- the object ID
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 or if the user does not have permission to access the object.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getBooks()
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getBooks(String userId)
userId
- the ID of the user
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getBooks(PagingParameters pagingParameters)
pagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getBooks(String userId, PagingParameters pagingParameters)
userId
- the ID of the userpagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getMovies()
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getMovies(String userId)
userId
- the ID of the user
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getMovies(PagingParameters pagingParameters)
pagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getMovies(String userId, PagingParameters pagingParameters)
userId
- the ID of the userpagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getMusic()
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getMusic(String userId)
userId
- the ID of the user
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getMusic(PagingParameters pagingParameters)
pagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getMusic(String userId, PagingParameters pagingParameters)
userId
- the ID of the userpagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getTelevision()
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getTelevision(String userId)
userId
- the ID of the user
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" or "friends_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getTelevision(PagingParameters pagingParameters)
pagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getTelevision(String userId, PagingParameters pagingParameters)
userId
- the ID of the userpagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" or "friends_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getActivities()
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_activities" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getActivities(String userId)
userId
- the ID of the user
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_activities" or "friends_activities" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getActivities(PagingParameters pagingParameters)
pagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_activities" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getActivities(String userId, PagingParameters pagingParameters)
userId
- the ID of the userpagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_activities" or "friends_activities" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getInterests()
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_interests" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getInterests(String userId)
userId
- the ID of the user
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_interests" or "friends_interests" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getInterests(PagingParameters pagingParameters)
pagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_interests" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getInterests(String userId, PagingParameters pagingParameters)
userId
- the ID of the userpagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_interests" or "friends_interests" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getGames()
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getGames(String userId)
userId
- the ID of the user
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" or "friends_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getGames(PagingParameters pagingParameters)
pagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> getGames(String userId, PagingParameters pagingParameters)
userId
- the ID of the userpagingParameters
- the paging parameters for fetching a given range of pages.
Page
objects
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_likes" or "friends_likes" 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 |