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

final void
addListener(Service.Listener arg0, Executor arg1)
final void
awaitRunning()
final void
awaitRunning(long arg0, TimeUnit arg1)
final void
awaitTerminated(long arg0, TimeUnit arg1)
final void
awaitTerminated()
final Throwable
failureCause()
final boolean
isRunning()
final Service
startAsync()
final Service.State
state()
final Service
stopAsync()
String
toString()
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
abstract void
addListener(Service.Listener arg0, Executor arg1)
abstract void
awaitRunning()
abstract void
awaitRunning(long arg0, TimeUnit arg1)
abstract void
awaitTerminated(long arg0, TimeUnit arg1)
abstract void
awaitTerminated()
abstract Throwable
failureCause()
abstract boolean
isRunning()
abstract Service
startAsync()
abstract Service.State
state()
abstract Service
stopAsync()

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