public interface GroupOperations
Modifier and Type | Method and Description |
---|---|
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<User> |
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,
PagingParameters pagedListParameters)
Search for groups.
|
Group getGroup(String groupId)
groupId
- the ID of the groupGroup
objectorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getGroupImage(String groupId)
groupId
- the group IDorg.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 groupReference
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<User> getMemberProfiles(String groupId)
groupId
- the ID of the groupUser
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" permission.PagedList<Group> search(String query)
query
- the search query (e.g., "Spring User Group")Group
s matching the search queryorg.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 queryorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.