Class AccountPredicates
java.lang.Object
com.google.gerrit.server.query.account.AccountPredicates
Utility class to create predicates for account index queries.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<AccountState>
static Predicate<AccountState>
cansee
(AccountQueryBuilder.Arguments args, ChangeNotes changeNotes) static Predicate<AccountState>
defaultPredicate
(Schema<AccountState> schema, boolean canSeeSecondaryEmails, String query) static Predicate<AccountState>
static Predicate<AccountState>
equalsName
(String name) static Predicate<AccountState>
static Predicate<AccountState>
externalIdIncludingSecondaryEmails
(String externalId) static Predicate<AccountState>
static boolean
static Predicate<AccountState>
id
(Schema<AccountState> schema, Account.Id accountId) static Predicate<AccountState>
isActive()
static Predicate<AccountState>
static Predicate<AccountState>
preferredEmail
(String email) static Predicate<AccountState>
preferredEmailExact
(String email) static Predicate<AccountState>
static Predicate<AccountState>
watchedProject
(Project.NameKey project)
-
Method Details
-
hasActive
-
andActive
-
defaultPredicate
public static Predicate<AccountState> defaultPredicate(Schema<AccountState> schema, boolean canSeeSecondaryEmails, String query) -
id
-
emailIncludingSecondaryEmails
-
preferredEmail
-
preferredEmailExact
-
equalsNameIncludingSecondaryEmails
-
equalsName
-
externalIdIncludingSecondaryEmails
-
fullName
-
isActive
-
isNotActive
-
username
-
watchedProject
-
cansee
public static Predicate<AccountState> cansee(AccountQueryBuilder.Arguments args, ChangeNotes changeNotes)
-