public class
GroupsServiceImpl
extends BaseApiService<CloudIdentity>
implements Service
implements Service
Wrapper for Cloud Identity Groups API for performing CRUD operations on Groups and Memberships.
Nested Class Summary
class | GroupsServiceImpl.Builder | Builder object for creating an instance of GroupsServiceImpl |
Public Method Summary
ListenableFuture<Operation> |
createGroup(Group group)
Creates a
Group using Cloud Identity Groups API. |
ListenableFuture<Operation> |
createMembership(String groupId, Membership member)
Creates a
Membership under group identified by groupId using Cloud Identity
Groups API. |
ListenableFuture<Operation> |
deleteGroup(String groupId)
Deletes a
Group using Cloud Identity Groups API. |
ListenableFuture<Operation> |
deleteMembership(String memberId)
Deletes a
Membership using Cloud Identity Groups API. |
static GroupsServiceImpl |
fromConfiguration(CredentialFactory credentialFactory)
Creates an instance of
GroupsServiceImpl from connector configuration |
ListenableFuture<Group> | |
ListenableFuture<Membership> |
getMembership(String memberId)
Gets a
Membership from Cloud Identity Groups API. |
Iterable<Group> |
listGroups(String groupNamespace)
List all
Group s available under given groupNamespace |
Iterable<Membership> |
listMembers(String groupId)
List all
Membership s under given groupId |
Inherited Method Summary
Public Methods
public ListenableFuture<Operation> createGroup (Group group)
public ListenableFuture<Operation> createMembership (String groupId, Membership member)
Creates a Membership
under group identified by groupId
using Cloud Identity
Groups API.
Parameters
groupId | |
---|---|
member |
Throws
IOException |
---|
public ListenableFuture<Operation> deleteGroup (String groupId)
public ListenableFuture<Operation> deleteMembership (String memberId)
public static GroupsServiceImpl fromConfiguration (CredentialFactory credentialFactory)
Creates an instance of GroupsServiceImpl
from connector configuration
Parameters
credentialFactory |
---|
Throws
GeneralSecurityException | |
---|---|
IOException |