Class InternalAccountQuery


  • public class InternalAccountQuery
    extends InternalQuery<AccountState,​InternalAccountQuery>
    Query wrapper for the account index.

    Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.

    • Method Detail

      • byPreferredEmail

        public List<AccountState> byPreferredEmail​(String email)
        Queries for accounts that have a preferred email that exactly matches the given email.
        Parameters:
        email - preferred email by which accounts should be found
        Returns:
        list of accounts that have a preferred email that exactly matches the given email
      • byPreferredEmail

        public com.google.common.collect.Multimap<String,​AccountState> byPreferredEmail​(List<String> emails)
        Makes multiple queries for accounts by preferred email (exact match).
        Parameters:
        emails - preferred emails by which accounts should be found
        Returns:
        multimap of the given emails to accounts that have a preferred email that exactly matches this email