IdentityGroup

public class IdentityGroup extends IdentityPrincipal<IdentityGroup>

Represents a third-party group to be synced with Cloud identity Groups API.

Nested Class Summary

class IdentityGroup.Builder Builder for IdentityGroup  

Field Summary

public static final ImmutableMap<String, String> GROUP_LABELS Group label to be added for each synced group as required by Cloud Identity Groups API.

Public Constructor Summary

IdentityGroup(IdentityGroup.Builder buider)
Creates an instance of IdentityGroup.

Public Method Summary

boolean
equals(Object obj)
EntityKey
getGroupKey()
Gets group key for identity group.
IdentityPrincipal.Kind
getKind()
Get kind for IdentityPrincipal.
ImmutableSet<Membership>
getMembers()
Gets Memberships under identity group.
int
ListenableFuture<IdentityGroup>
sync(IdentityGroup previouslySynced, IdentityService service)
Syncs IdentityGroup with Cloud Identity Groups API using service including group memberships.
ListenableFuture<Boolean>
unmap(IdentityService service)
Removes IdentityGroup from Cloud Identity Groups API using service.

Inherited Method Summary

Fields

public static final ImmutableMap<String, String> GROUP_LABELS

Group label to be added for each synced group as required by Cloud Identity Groups API.

Public Constructors

public IdentityGroup (IdentityGroup.Builder buider)

Creates an instance of IdentityGroup.

Parameters
buider

Public Methods

public boolean equals (Object obj)

Parameters
obj

public EntityKey getGroupKey ()

Gets group key for identity group.

Returns
  • group key for identity group.

public IdentityPrincipal.Kind getKind ()

Get kind for IdentityPrincipal. This is always GROUP for IdentityGroup.

public ImmutableSet<Membership> getMembers ()

Gets Memberships under identity group.

Returns
  • memberships under identity group.

public int hashCode ()

public ListenableFuture<IdentityGroup> sync (IdentityGroup previouslySynced, IdentityService service)

Syncs IdentityGroup with Cloud Identity Groups API using service including group memberships.

Parameters
previouslySynced
service
Throws
IOException

public ListenableFuture<Boolean> unmap (IdentityService service)

Removes IdentityGroup from Cloud Identity Groups API using service.

Parameters
service
Throws
IOException

Send feedback about...

Cloud Search
Cloud Search