Package com.google.gerrit.server.account
Class AbstractRealm
- java.lang.Object
-
- com.google.gerrit.server.account.AbstractRealm
-
- All Implemented Interfaces:
Realm
- Direct Known Subclasses:
DefaultRealm
,FakeRealm
,OAuthRealm
public abstract class AbstractRealm extends Object implements Realm
Basic implementation ofRealm
.
-
-
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)
boolean
hasEmailAddress(IdentifiedUser user, String email)
-
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)
- Specified by:
hasEmailAddress
in interfaceRealm
- Returns:
- true if the user has the given email address.
-
getEmailAddresses
public Set<String> getEmailAddresses(IdentifiedUser user)
- Specified by:
getEmailAddresses
in interfaceRealm
- Returns:
- all known email addresses for the identified user.
-
-