IdentityUser

public class IdentityUser extends IdentityPrincipal<IdentityUser>

Represents third-party user identity and corresponding Google identity mapping.

Nested Class Summary

class IdentityUser.Builder Builder for IdentityUser  

Public Method Summary

boolean
equals(Object obj)
String
getAttribute()
Gets custom schema attribute name which will be populated to map third-party user identity.
String
getGoogleIdentity()
Gets Google identity for user.
IdentityPrincipal.Kind
getKind()
Get kind for IdentityPrincipal.
String
getSchema()
Gets custom schema name under which identity will be mapped for user.
int
ListenableFuture<IdentityUser>
sync(IdentityUser previouslySynced, IdentityService service)
Syncs IdentityUser with Google Admin SDK API using service
String
ListenableFuture<Boolean>
unmap(IdentityService service)
Unmaps IdentityUser, by clearing out getAttribute(), using Google Admin SDK API.

Inherited Method Summary

Public Methods

public boolean equals (Object obj)

Parameters
obj

public String getAttribute ()

Gets custom schema attribute name which will be populated to map third-party user identity.

Returns
  • custom schema attribute name which will be populated to map third-party user identity.

public String getGoogleIdentity ()

Gets Google identity for user.

Returns
  • Google identity for user.

public IdentityPrincipal.Kind getKind ()

Get kind for IdentityPrincipal. This is always USER for IdentityUser.

public String getSchema ()

Gets custom schema name under which identity will be mapped for user.

Returns
  • custom schema name under which identity will be mapped for user.

public int hashCode ()

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

Syncs IdentityUser with Google Admin SDK API using service

Parameters
previouslySynced
service
Throws
IOException

public String toString ()

public ListenableFuture<Boolean> unmap (IdentityService service)

Unmaps IdentityUser, by clearing out getAttribute(), using Google Admin SDK API.

Parameters
service
Throws
IOException