RepositoryContext

public class RepositoryContext extends Object

Context used by Repository to initialize itself

Public Method Summary

EntityKey
buildEntityKeyForGroup(String externalGroupId)
Creates an EntityKey for given external group identifier.
IdentityGroup
buildIdentityGroup(String externalGroupId, Supplier<Set<Membership>> members)
IdentityUser
buildIdentityUser(String googleId, String externalId)
boolean
equals(Object obj)
static RepositoryContext
IdentitySourceConfiguration
ImmutableMap<String, IdentitySourceConfiguration>
Optional<RepositoryContext>
int

Inherited Method Summary

Public Methods

public EntityKey buildEntityKeyForGroup (String externalGroupId)

Creates an EntityKey for given external group identifier. This method uses encodeGroupId(String) to escape unsupported characters from identifier.

Parameters
externalGroupId to build EntityKey
Returns
  • EntityKey for provided externalGroupId

public IdentityGroup buildIdentityGroup (String externalGroupId, Supplier<Set<Membership>> members)

Parameters
externalGroupId
members

public IdentityUser buildIdentityUser (String googleId, String externalId)

Parameters
googleId
externalId

public boolean equals (Object obj)

Parameters
obj

public static RepositoryContext fromConfiguration ()

public IdentitySourceConfiguration getIdentitySourceConfiguration ()

public ImmutableMap<String, IdentitySourceConfiguration> getReferenceIdentitySourceConfiguration ()

public Optional<RepositoryContext> getRepositoryContextForReferenceIdentitySource (String referenceSourceName)

Parameters
referenceSourceName

public int hashCode ()

Send feedback about...

Cloud Search
Cloud Search