public class AccountResolver extends Object
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.reviewdb.client.Account |
find(com.google.gerrit.reviewdb.server.ReviewDb db,
String nameOrEmail)
Locate exactly one account matching the name or name/email string.
|
Set<com.google.gerrit.reviewdb.client.Account.Id> |
findAll(com.google.gerrit.reviewdb.server.ReviewDb db,
String nameOrEmail)
Find all accounts matching the name or name/email string.
|
Set<com.google.gerrit.reviewdb.client.Account.Id> |
findAllByNameOrEmail(com.google.gerrit.reviewdb.server.ReviewDb db,
String nameOrEmail)
Locate exactly one account matching the name or name/email string.
|
com.google.gerrit.reviewdb.client.Account |
findByNameOrEmail(com.google.gerrit.reviewdb.server.ReviewDb db,
String nameOrEmail)
Locate exactly one account matching the name or name/email string.
|
public com.google.gerrit.reviewdb.client.Account find(com.google.gerrit.reviewdb.server.ReviewDb db, String nameOrEmail) throws com.google.gwtorm.server.OrmException
nameOrEmail
- a string of the format
"Full Name <email@example>", just the email address
("email@example"), a full name ("Full Name"), an account id
("18419") or an user name ("username").com.google.gwtorm.server.OrmException
public Set<com.google.gerrit.reviewdb.client.Account.Id> findAll(com.google.gerrit.reviewdb.server.ReviewDb db, String nameOrEmail) throws com.google.gwtorm.server.OrmException
db
- open database handle.nameOrEmail
- a string of the format
"Full Name <email@example>", just the email address
("email@example"), a full name ("Full Name"), an account id
("18419") or an user name ("username").com.google.gwtorm.server.OrmException
public com.google.gerrit.reviewdb.client.Account findByNameOrEmail(com.google.gerrit.reviewdb.server.ReviewDb db, String nameOrEmail) throws com.google.gwtorm.server.OrmException
db
- open database handle.nameOrEmail
- a string of the format
"Full Name <email@example>", just the email address
("email@example"), a full name ("Full Name").com.google.gwtorm.server.OrmException
public Set<com.google.gerrit.reviewdb.client.Account.Id> findAllByNameOrEmail(com.google.gerrit.reviewdb.server.ReviewDb db, String nameOrEmail) throws com.google.gwtorm.server.OrmException
db
- open database handle.nameOrEmail
- a string of the format
"Full Name <email@example>", just the email address
("email@example"), a full name ("Full Name").com.google.gwtorm.server.OrmException