public class InternalAccountQuery extends InternalQuery<AccountState,InternalAccountQuery>
Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.
indexConfig
Modifier and Type | Method and Description |
---|---|
List<AccountState> |
byDefault(String query) |
List<AccountState> |
byExternalId(ExternalId.Key externalId) |
List<AccountState> |
byExternalId(String scheme,
String id) |
List<AccountState> |
byFullName(String fullName) |
com.google.common.collect.Multimap<String,AccountState> |
byPreferredEmail(String... emails)
Makes multiple queries for accounts by preferred email (exact match).
|
List<AccountState> |
byPreferredEmail(String email)
Queries for accounts that have a preferred email that exactly matches the given email.
|
List<AccountState> |
byWatchedProject(Project.NameKey project) |
enforceVisibility, noFields, query, query, queryExhaustively, schema, self, setLimit, setRequestedFields
public List<AccountState> byDefault(String query)
public List<AccountState> byExternalId(String scheme, String id)
public List<AccountState> byExternalId(ExternalId.Key externalId)
public List<AccountState> byFullName(String fullName)
public List<AccountState> byPreferredEmail(String email)
email
- preferred email by which accounts should be foundpublic com.google.common.collect.Multimap<String,AccountState> byPreferredEmail(String... emails)
emails
- preferred emails by which accounts should be foundpublic List<AccountState> byWatchedProject(Project.NameKey project)