@Named(value="facebookFeed") public class FeedServiceImpl extends FacebookBaseService implements FeedService
| Constructor and Description |
|---|
FeedServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deletePost(String id)
Deletes a post.
|
List<Post> |
getFeed()
Retrieves recent posts for the authenticated user.
|
List<Post> |
getFeed(int offset,
int limit)
Retrieves recent posts for the authenticated user.
|
List<Post> |
getFeed(String ownerId)
Retrieves recent feed entries for a given user.
|
List<Post> |
getFeed(String ownerId,
int offset,
int limit)
Retrieves recent feed entries for a given user.
|
List<Post> |
getHomeFeed()
Retrieves the user's home feed.
|
List<Post> |
getHomeFeed(int offset,
int limit)
Retrieves the user's home feed.
|
List<LinkPost> |
getLinks()
Retrieves the link entries from the authenticated user's feed.
|
List<LinkPost> |
getLinks(int offset,
int limit)
Retrieves the link entries from the authenticated user's feed.
|
List<LinkPost> |
getLinks(String ownerId)
Retrieves the link entries from the specified owner's feed.
|
List<LinkPost> |
getLinks(String ownerId,
int offset,
int limit)
Retrieves the link entries from the specified owner's feed.
|
List<NotePost> |
getNotes()
Retrieves the note entries from the authenticated user's feed.
|
List<NotePost> |
getNotes(int offset,
int limit)
Retrieves the note entries from the authenticated user's feed.
|
List<NotePost> |
getNotes(String ownerId)
Retrieves the note entries from the specified owner's feed.
|
List<NotePost> |
getNotes(String ownerId,
int offset,
int limit)
Retrieves the note entries from the specified owner's feed.
|
Post |
getPost(String entryId)
Retrieves a single post.
|
List<Post> |
getPosts()
Retrieves the post entries from the authenticated user's feed.
|
List<Post> |
getPosts(int offset,
int limit)
Retrieves the post entries from the authenticated user's feed.
|
List<Post> |
getPosts(String ownerId)
Retrieves the post entries from the specified owner's feed.
|
List<Post> |
getPosts(String ownerId,
int offset,
int limit)
Retrieves the post entries from the specified owner's feed.
|
List<StatusPost> |
getStatuses()
Retrieves the status entries from the authenticated user's feed.
|
List<StatusPost> |
getStatuses(int offset,
int limit)
Retrieves the status entries from the authenticated user's feed.
|
List<StatusPost> |
getStatuses(String userId)
Retrieves the status entries from the specified user's feed.
|
List<StatusPost> |
getStatuses(String userId,
int offset,
int limit)
Retrieves the status entries from the specified user's feed.
|
String |
post(String ownerId,
String message)
Posts a message to a feed.
|
String |
postLink(String message,
FacebookLink link)
Posts a link to the authenticated user's feed.
|
String |
postLink(String ownerId,
String message,
FacebookLink link)
Posts a link to a feed.
|
List<Post> |
searchHomeFeed(String query)
Searches the authenticated user's home feed.
|
List<Post> |
searchHomeFeed(String query,
int offset,
int limit)
Searches the authenticated user's home feed.
|
List<Post> |
searchPublicFeed(String query)
Searches Facebook's public feed.
|
List<Post> |
searchPublicFeed(String query,
int offset,
int limit)
Searches Facebook's public feed.
|
List<Post> |
searchUserFeed(String query)
Searches the authenticated user's feed.
|
List<Post> |
searchUserFeed(String query,
int offset,
int limit)
Searches the authenticated user's feed.
|
List<Post> |
searchUserFeed(String userId,
String query)
Searches a specified user's feed.
|
List<Post> |
searchUserFeed(String userId,
String query,
int offset,
int limit)
Searches a specified user's feed.
|
String |
updateStatus(String message)
Posts a status update to the authenticated user's feed.
|
getApiRootUrl, getQualifierbuildUri, buildUri, buildUri, buildUripublic List<Post> getFeed()
FeedServicegetFeed in interface FeedServicePosts for the authenticated user.public List<Post> getFeed(int offset, int limit)
FeedServicegetFeed in interface FeedServiceoffset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts for the authenticated user.public List<Post> getFeed(String ownerId)
FeedServicegetFeed in interface FeedServiceownerId - the Facebook ID or alias for the owner (user, group, event, page, etc) of the feed.Posts for the specified user.public List<Post> getFeed(String ownerId, int offset, int limit)
FeedServicegetFeed in interface FeedServiceownerId - the Facebook ID or alias for the owner (user, group, event, page, etc) of the feed.offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts for the specified user.public List<Post> getHomeFeed()
FeedServicegetHomeFeed in interface FeedServicePosts from the authenticated user's home feed.public List<Post> getHomeFeed(int offset, int limit)
FeedServicegetHomeFeed in interface FeedServiceoffset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts from the authenticated user's home feed.public List<StatusPost> getStatuses()
FeedServicegetStatuses in interface FeedServicePosts.public List<StatusPost> getStatuses(int offset, int limit)
FeedServicegetStatuses in interface FeedServiceoffset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.public List<StatusPost> getStatuses(String userId)
FeedServicegetStatuses in interface FeedServiceuserId - the user's IDPosts.public List<StatusPost> getStatuses(String userId, int offset, int limit)
FeedServicegetStatuses in interface FeedServiceuserId - the user's IDoffset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.public List<LinkPost> getLinks()
FeedServicegetLinks in interface FeedServicePosts.public List<LinkPost> getLinks(int offset, int limit)
FeedServicegetLinks in interface FeedServiceoffset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.public List<LinkPost> getLinks(String ownerId)
FeedServicegetLinks in interface FeedServiceownerId - the owner of the feed (could be a user, page, event, etc)Posts.public List<LinkPost> getLinks(String ownerId, int offset, int limit)
FeedServicegetLinks in interface FeedServiceownerId - the owner of the feed (could be a user, page, event, etc)offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.public List<NotePost> getNotes()
FeedServicegetNotes in interface FeedServicePosts.public List<NotePost> getNotes(int offset, int limit)
FeedServicegetNotes in interface FeedServiceoffset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.public List<NotePost> getNotes(String ownerId)
FeedServicegetNotes in interface FeedServiceownerId - the owner of the feed (could be a user, page, event, etc)Posts.public List<NotePost> getNotes(String ownerId, int offset, int limit)
FeedServicegetNotes in interface FeedServiceownerId - the owner of the feed (could be a user, page, event, etc)offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.public List<Post> getPosts()
FeedServicegetPosts in interface FeedServicePosts.public List<Post> getPosts(int offset, int limit)
FeedServicegetPosts in interface FeedServiceoffset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.public List<Post> getPosts(String ownerId)
FeedServicegetPosts in interface FeedServiceownerId - the owner of the feed (could be a user, page, event, etc)Posts.public List<Post> getPosts(String ownerId, int offset, int limit)
FeedServicegetPosts in interface FeedServiceownerId - the owner of the feed (could be a user, page, event, etc)offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts.public Post getPost(String entryId)
FeedServicegetPost in interface FeedServiceentryId - the entry IDPostpublic String updateStatus(String message)
FeedServiceupdateStatus in interface FeedServicemessage - the message to post.public String postLink(String message, FacebookLink link)
FeedServicepostLink in interface FeedServicemessage - a message to send with the link.public String postLink(String ownerId, String message, FacebookLink link)
FeedServicepostLink in interface FeedServiceownerId - the feed owner ID. Could be a user ID or a page ID.message - a message to send with the link.public String post(String ownerId, String message)
FeedServicepost in interface FeedServiceownerId - the feed owner ID. Could be a user ID or a page ID.message - the message to post.public void deletePost(String id)
FeedServicedeletePost in interface FeedServiceid - the feed entry IDpublic List<Post> searchPublicFeed(String query)
FeedServicesearchPublicFeed in interface FeedServicequery - the search query (e.g., "Dr Seuss")Posts that match the search querypublic List<Post> searchPublicFeed(String query, int offset, int limit)
FeedServicesearchPublicFeed in interface FeedServicequery - the search query (e.g., "Dr Seuss")offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts that match the search querypublic List<Post> searchHomeFeed(String query)
FeedServicesearchHomeFeed in interface FeedServicequery - the search query (e.g., "Dr Seuss")Posts that match the search querypublic List<Post> searchHomeFeed(String query, int offset, int limit)
FeedServicesearchHomeFeed in interface FeedServicequery - the search query (e.g., "Dr Seuss")offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts that match the search querypublic List<Post> searchUserFeed(String query)
FeedServicesearchUserFeed in interface FeedServicequery - the search query (e.g., "football")Posts that match the search querypublic List<Post> searchUserFeed(String query, int offset, int limit)
FeedServicesearchUserFeed in interface FeedServicequery - the search query (e.g., "football")offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts that match the search querypublic List<Post> searchUserFeed(String userId, String query)
FeedServicesearchUserFeed in interface FeedServiceuserId - the ID of the user whose feed is to be searchedquery - the search query (e.g., "football")Posts that match the search querypublic List<Post> searchUserFeed(String userId, String query, int offset, int limit)
FeedServicesearchUserFeed in interface FeedServiceuserId - the ID of the user whose feed is to be searchedquery - the search query (e.g., "football")offset - the offset into the feed to start retrieving posts.limit - the maximum number of posts to return.Posts that match the search queryCopyright © 2011-2013 Seam Framework. All Rights Reserved.