public interface Realm
Modifier and Type | Method and Description |
---|---|
boolean |
allowsEdit(com.google.gerrit.reviewdb.client.Account.FieldName field)
Can the end-user modify this field of their own account?
|
AuthRequest |
authenticate(AuthRequest who) |
Set<com.google.gerrit.reviewdb.client.Account.FieldName> |
getEditableFields()
Returns the account fields that the end-user can modify.
|
Set<String> |
getEmailAddresses(IdentifiedUser who) |
boolean |
hasEmailAddress(IdentifiedUser who,
String email) |
com.google.gerrit.reviewdb.client.Account.Id |
lookup(String accountName)
Locate an account whose local username is the given account name.
|
void |
onCreateAccount(AuthRequest who,
com.google.gerrit.reviewdb.client.Account account) |
boolean allowsEdit(com.google.gerrit.reviewdb.client.Account.FieldName field)
Set<com.google.gerrit.reviewdb.client.Account.FieldName> getEditableFields()
AuthRequest authenticate(AuthRequest who) throws AccountException
AccountException
void onCreateAccount(AuthRequest who, com.google.gerrit.reviewdb.client.Account account)
boolean hasEmailAddress(IdentifiedUser who, String email)
Set<String> getEmailAddresses(IdentifiedUser who)
com.google.gerrit.reviewdb.client.Account.Id lookup(String accountName)
Generally this only works for local realms, such as one backed by an LDAP
directory, or where there is an EmailExpander
configured that knows
how to convert the accountName into an email address, and then locate the
user by that email address.