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 groupReferences, 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 groupUsers, 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()
GroupMemberships, 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.GroupMemberships, 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")Groups 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.Groups matching the search queryorg.springframework.social.ApiException - if there is an error while communicating with Facebook.