|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupOperations
Defines operations for retrieving data about groups and group members.
Method Summary | |
---|---|
Group |
getGroup(String groupId)
Retrieve data for a specified group. |
byte[] |
getGroupImage(String groupId)
Retrieves a group's image as an array of bytes. |
byte[] |
getGroupImage(String groupId,
ImageType imageType)
Retrieves a group's image as an array of bytes. |
PagedList<FacebookProfile> |
getMemberProfiles(String groupId)
Retrieves the profiles for the members of the specified group. |
PagedList<GroupMemberReference> |
getMembers(String groupId)
Retrieves the members of the specified group. |
PagedList<GroupMembership> |
getMemberships()
Retrieves a list of group memberships for the authenticated user. |
PagedList<GroupMembership> |
getMemberships(String userId)
Retrieves a list of group memberships for a specific user. |
PagedList<Group> |
search(String query)
Search for groups. |
PagedList<Group> |
search(String query,
int offset,
int limit)
Deprecated. Use search(String, PagingParameters) instead. |
PagedList<Group> |
search(String query,
PagingParameters pagedListParameters)
Search for groups. |
Method Detail |
---|
Group getGroup(String groupId)
groupId
- the ID of the group
Group
object
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getGroupImage(String groupId)
groupId
- the group ID
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getGroupImage(String groupId, ImageType imageType)
groupId
- the group IDimageType
- the image type (eg., small, normal, large. square)
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<GroupMemberReference> getMembers(String groupId)
groupId
- the ID of the group
Reference
s, one for each member of the group.
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<FacebookProfile> getMemberProfiles(String groupId)
groupId
- the ID of the group
FacebookProfile
s, one for each member of the group.
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<GroupMembership> getMemberships()
GroupMembership
s, one for each group the user is a member of.
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.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_groups" permission.PagedList<GroupMembership> getMemberships(String userId)
userId
- the user ID to retrieve memberships for.
GroupMembership
s, one for each group the user is a member of.
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.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_groups" or "friends_groups" permission.PagedList<Group> search(String query)
query
- the search query (e.g., "Spring User Group")
Group
s matching the search query
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.@Deprecated PagedList<Group> search(String query, int offset, int limit)
search(String, PagingParameters)
instead.
query
- the search query (e.g., "Spring User Group")offset
- the offset into the matching groups listlimit
- the maximum number of groups to return
Group
s matching the search query
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Group> search(String query, PagingParameters pagedListParameters)
query
- the search query (e.g., "Spring User Group")pagedListParameters
- the parameters defining the bounds of the list to return.
Group
s matching the search query
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |