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) |
AuthRequest |
link(com.google.gerrit.reviewdb.server.ReviewDb db,
com.google.gerrit.reviewdb.client.Account.Id to,
AuthRequest who) |
com.google.gerrit.reviewdb.client.Account.Id |
lookup(java.lang.String accountName)
Locate an account whose local username is the given account name.
|
void |
onCreateAccount(AuthRequest who,
com.google.gerrit.reviewdb.client.Account account) |
AuthRequest |
unlink(com.google.gerrit.reviewdb.server.ReviewDb db,
com.google.gerrit.reviewdb.client.Account.Id from,
AuthRequest who) |
public boolean allowsEdit(com.google.gerrit.reviewdb.client.Account.FieldName field)
Realm
allowsEdit
in interface Realm
public AuthRequest authenticate(AuthRequest who) throws AccountException
authenticate
in interface Realm
AccountException
public AuthRequest link(com.google.gerrit.reviewdb.server.ReviewDb db, com.google.gerrit.reviewdb.client.Account.Id to, AuthRequest who)
public AuthRequest unlink(com.google.gerrit.reviewdb.server.ReviewDb db, com.google.gerrit.reviewdb.client.Account.Id from, AuthRequest who)
public void onCreateAccount(AuthRequest who, com.google.gerrit.reviewdb.client.Account account)
onCreateAccount
in interface Realm
public com.google.gerrit.reviewdb.client.Account.Id lookup(java.lang.String accountName)
Realm
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.