public static interface GroupMembershipSDK.GroupMembershipClient
GroupMembership resource APIs.| Modifier and Type | Interface and Description |
|---|---|
static class |
GroupMembershipSDK.GroupMembershipClient.ResponseOption
Enumeration of options used to potentially augment an API response.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.CheckedFuture<GroupMembership,com.covisint.core.http.service.core.ServiceException> |
add(String groupId,
GroupMembership membership)
Add a membership to a group.
|
com.google.common.util.concurrent.CheckedFuture<Void,com.covisint.core.http.service.core.ServiceException> |
delete(String groupId,
String membershipId)
Delete a group membership.
|
com.google.common.util.concurrent.CheckedFuture<GroupMembership,com.covisint.core.http.service.core.ServiceException> |
get(String groupId,
String membershipId,
GroupMembershipSDK.GroupMembershipClient.ResponseOption option)
Retrieves a group membership by id.
|
com.google.common.util.concurrent.CheckedFuture<List<GroupMembership>,com.covisint.core.http.service.core.ServiceException> |
listGroupMemberships(String groupId,
GroupMembershipSDK.GroupMembershipClient.ResponseOption option)
Gets all the memberships associated with a group.
|
com.google.common.util.concurrent.CheckedFuture<List<GroupMembership>,com.covisint.core.http.service.core.ServiceException> |
search(String memberId,
String memberType,
String groupOwnerId,
String groupOwnerType,
com.covisint.core.http.service.core.Page page,
GroupMembershipSDK.GroupMembershipClient.ResponseOption option)
Search for group memberships based on the passed criteria.
|
@Nonnull com.google.common.util.concurrent.CheckedFuture<GroupMembership,com.covisint.core.http.service.core.ServiceException> add(@Nonnull@NotEmpty String groupId, @Nonnull GroupMembership membership)
groupId - The group id to associate the new member.membership - The group membership to add.@Nonnull com.google.common.util.concurrent.CheckedFuture<Void,com.covisint.core.http.service.core.ServiceException> delete(@Nonnull@NotEmpty String groupId, @Nonnull@NotEmpty String membershipId)
groupId - The group from which the membership is being removed.membershipId - The id of the membership to delete.@Nonnull com.google.common.util.concurrent.CheckedFuture<GroupMembership,com.covisint.core.http.service.core.ServiceException> get(@Nonnull@NotEmpty String groupId, @Nonnull@NotEmpty String membershipId, @Nonnull GroupMembershipSDK.GroupMembershipClient.ResponseOption option)
groupId - The id of the owning group.membershipId - The id of the membership to retrieve.option - The response option, used to inline request for associated data.@Nonnull com.google.common.util.concurrent.CheckedFuture<List<GroupMembership>,com.covisint.core.http.service.core.ServiceException> search(@Nonnull@NotEmpty String memberId, String memberType, String groupOwnerId, String groupOwnerType, @Nonnull com.covisint.core.http.service.core.Page page, @Nonnull GroupMembershipSDK.GroupMembershipClient.ResponseOption option)
memberId - The group member's id.memberType - The group member type, for example, person, organization, etc.groupOwnerId - The group owner - return all memberships to the group owned by this owner id.groupOwnerType - The group owner type, for example, person, organization, etc.page - pagination criteriaoption - The response option, used to inline request for associated data.@Nonnull com.google.common.util.concurrent.CheckedFuture<List<GroupMembership>,com.covisint.core.http.service.core.ServiceException> listGroupMemberships(@Nonnull@NotEmpty String groupId, @Nonnull GroupMembershipSDK.GroupMembershipClient.ResponseOption option)
groupId - the id of the group whose memberships are being requested.option - The response option, used to inline request for associated data.Copyright © 2015 Covisint. All rights reserved.