Package com.google.gerrit.server.account
Class AbstractRealm
- java.lang.Object
-
- com.google.gerrit.server.account.AbstractRealm
-
-
Constructor Summary
Constructors Constructor Description AbstractRealm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<AccountFieldName>
getEditableFields()
Returns the account fields that the end-user can modify.Set<String>
getEmailAddresses(IdentifiedUser user)
Returns all known email addresses for the identified user.boolean
hasEmailAddress(IdentifiedUser user, String email)
Returns true if the user has the given email address.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.server.account.Realm
accountBelongsToRealm, allowsEdit, authenticate, isActive, lookup, onCreateAccount
-
-
-
-
Method Detail
-
getEditableFields
public Set<AccountFieldName> getEditableFields()
Description copied from interface:Realm
Returns the account fields that the end-user can modify.- Specified by:
getEditableFields
in interfaceRealm
-
hasEmailAddress
public boolean hasEmailAddress(IdentifiedUser user, String email)
Description copied from interface:Realm
Returns true if the user has the given email address.- Specified by:
hasEmailAddress
in interfaceRealm
-
getEmailAddresses
public Set<String> getEmailAddresses(IdentifiedUser user)
Description copied from interface:Realm
Returns all known email addresses for the identified user.- Specified by:
getEmailAddresses
in interfaceRealm
-
-