GroupsServiceImpl

public class GroupsServiceImpl extends BaseApiService<CloudIdentity>
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>
getGroup(String groupId)
Gets a Group from Cloud Identity Groups API.
ListenableFuture<Membership>
getMembership(String memberId)
Gets a Membership from Cloud Identity Groups API.
Iterable<Group>
listGroups(String groupNamespace)
List all Groups available under given groupNamespace
Iterable<Membership>
listMembers(String groupId)
List all Memberships under given groupId

Inherited Method Summary

Public Methods

public ListenableFuture<Operation> createGroup (Group group)

Creates a Group using Cloud Identity Groups API.

Parameters
group
Throws
IOException

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)

Deletes a Group using Cloud Identity Groups API.

Parameters
groupId
Throws
IOException

public ListenableFuture<Operation> deleteMembership (String memberId)

Deletes a Membership using Cloud Identity Groups API.

Parameters
memberId
Throws
IOException

public static GroupsServiceImpl fromConfiguration (CredentialFactory credentialFactory)

Creates an instance of GroupsServiceImpl from connector configuration

Parameters
credentialFactory
Throws
GeneralSecurityException
IOException

public ListenableFuture<Group> getGroup (String groupId)

Gets a Group from Cloud Identity Groups API.

Parameters
groupId
Throws
IOException

public ListenableFuture<Membership> getMembership (String memberId)

Gets a Membership from Cloud Identity Groups API.

Parameters
memberId
Throws
IOException

public Iterable<Group> listGroups (String groupNamespace)

List all Groups available under given groupNamespace

Parameters
groupNamespace
Throws
IOException

public Iterable<Membership> listMembers (String groupId)

List all Memberships under given groupId

Parameters
groupId
Throws
IOException