public class Accounts
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.List<AccountState> |
all()
Returns all accounts.
|
java.util.Set<Account.Id> |
allIds()
Returns all account IDs.
|
java.util.List<Account.Id> |
firstNIds(int n)
Returns the first n account IDs.
|
java.util.Optional<AccountState> |
get(Account.Id accountId) |
java.util.List<AccountState> |
get(java.util.Collection<Account.Id> accountIds) |
boolean |
hasAnyAccount()
Checks if any account exists.
|
static boolean |
hasAnyAccount(org.eclipse.jgit.lib.Repository repo) |
static java.util.stream.Stream<Account.Id> |
readUserRefs(org.eclipse.jgit.lib.Repository repo) |
public java.util.Optional<AccountState> get(Account.Id accountId) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public java.util.List<AccountState> get(java.util.Collection<Account.Id> accountIds) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public java.util.List<AccountState> all() throws java.io.IOException
java.io.IOException
public java.util.Set<Account.Id> allIds() throws java.io.IOException
java.io.IOException
public java.util.List<Account.Id> firstNIds(int n) throws java.io.IOException
n
- the number of account IDs that should be returnedjava.io.IOException
public boolean hasAnyAccount() throws java.io.IOException
true
if at least one account exists, otherwise false
java.io.IOException
public static boolean hasAnyAccount(org.eclipse.jgit.lib.Repository repo) throws java.io.IOException
java.io.IOException
public static java.util.stream.Stream<Account.Id> readUserRefs(org.eclipse.jgit.lib.Repository repo) throws java.io.IOException
java.io.IOException