Class AccountsNoteDbImpl
java.lang.Object
com.google.gerrit.server.account.storage.notedb.AccountsNoteDbImpl
- All Implemented Interfaces:
Accounts
-
Method Summary
Modifier and TypeMethodDescriptionall()
Returns all accounts.allIds()
Returns all account IDs.firstNIds
(int n) Returns the first n account IDs.get
(Account.Id accountId) Gets the account state for the given ID.get
(Collection<Account.Id> accountIds) Gets the account states for all the given IDs.boolean
Checks if any account exists.
-
Method Details
-
get
public Optional<AccountState> get(Account.Id accountId) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException Description copied from interface:Accounts
Gets the account state for the given ID.- Specified by:
get
in interfaceAccounts
- Returns:
- the account state if found,
Optional.empty
otherwise. - Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
get
public List<AccountState> get(Collection<Account.Id> accountIds) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException Description copied from interface:Accounts
Gets the account states for all the given IDs.- Specified by:
get
in interfaceAccounts
- Returns:
- the account states.
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
all
Description copied from interface:Accounts
Returns all accounts.- Specified by:
all
in interfaceAccounts
- Returns:
- all accounts
- Throws:
IOException
-
allIds
Description copied from interface:Accounts
Returns all account IDs.- Specified by:
allIds
in interfaceAccounts
- Returns:
- all account IDs
- Throws:
IOException
-
firstNIds
Description copied from interface:Accounts
Returns the first n account IDs.- Specified by:
firstNIds
in interfaceAccounts
- Parameters:
n
- the number of account IDs that should be returned- Returns:
- first n account IDs
- Throws:
IOException
-
hasAnyAccount
Description copied from interface:Accounts
Checks if any account exists.- Specified by:
hasAnyAccount
in interfaceAccounts
- Returns:
true
if at least one account exists, otherwisefalse
.- Throws:
IOException
-