Interface ExternalIds
- All Known Implementing Classes:
ExternalIdsNoteDbImpl
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet
<ExternalId> all()
Returns all external IDs.com.google.common.collect.ImmutableSetMultimap
<Account.Id, ExternalId> Returns all external IDs by account.com.google.common.collect.ImmutableSet
<ExternalId> byAccount
(Account.Id accountId) Returns the external IDs of the specified account.com.google.common.collect.ImmutableSet
<ExternalId> byAccount
(Account.Id accountId, String scheme) Returns the external IDs of the specified account that have the given scheme.com.google.common.collect.ImmutableSet
<ExternalId> Returns the external ID with the given email.com.google.common.collect.ImmutableSetMultimap
<String, ExternalId> Returns the external IDs for the given emails.get
(ExternalId.Key key) Returns the specified external ID.com.google.common.collect.ImmutableSet
<ExternalId> get
(Set<ExternalId.Key> keys) Returns the specified external IDs.
-
Method Details
-
all
com.google.common.collect.ImmutableSet<ExternalId> all() throws IOException, org.eclipse.jgit.errors.ConfigInvalidExceptionReturns all external IDs.- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
get
Returns the specified external ID.- Throws:
IOException
-
get
Returns the specified external IDs.- Throws:
IOException
-
byAccount
com.google.common.collect.ImmutableSet<ExternalId> byAccount(Account.Id accountId) throws IOException Returns the external IDs of the specified account.- Throws:
IOException
-
byAccount
com.google.common.collect.ImmutableSet<ExternalId> byAccount(Account.Id accountId, String scheme) throws IOException Returns the external IDs of the specified account that have the given scheme.Callers to this method should care about accuracy rather than latency. For better latency performance, call
ExternalIdCache.byAccount(com.google.gerrit.entities.Account.Id)
directly.- Throws:
IOException
-
allByAccount
com.google.common.collect.ImmutableSetMultimap<Account.Id,ExternalId> allByAccount() throws IOExceptionReturns all external IDs by account.- Throws:
IOException
-
byEmail
Returns the external ID with the given email.Each email should belong to a single external ID only. This means if more than one external ID is returned there is an inconsistency in the external IDs.
Callers to this method should care about accuracy rather than latency. For better latency performance, call
ExternalIdCache.byEmail(String)
directly.- Throws:
IOException
-
byEmails
com.google.common.collect.ImmutableSetMultimap<String,ExternalId> byEmails(String... emails) throws IOException Returns the external IDs for the given emails.Each email should belong to a single external ID only. This means if more than one external ID for an email is returned there is an inconsistency in the external IDs.
Callers to this method should care about accuracy rather than latency. For better latency performance, call
ExternalIdCache.byEmails(String...)
directly.- Throws:
IOException
- See Also:
-