Package com.google.gerrit.server
Class AnonymousUser
- java.lang.Object
-
- com.google.gerrit.server.CurrentUser
-
- com.google.gerrit.server.AnonymousUser
-
public class AnonymousUser extends CurrentUser
An anonymous user who has not yet authenticated.
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.CurrentUser
LAST_LOGIN_EXTERNAL_ID_PROPERTY_KEY
-
-
Constructor Summary
Constructors Constructor Description AnonymousUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetCacheKey()Returns a unique identifier for this user that is intended to be used as a cache key.GroupMembershipgetEffectiveGroups()Get the set of groups the user is currently a member of.StringtoString()-
Methods inherited from class com.google.gerrit.server.CurrentUser
asIdentifiedUser, get, getAccessPath, getAccountId, getEmailAddresses, getExternalIdKeys, getLastLoginExternalIdKey, getLoggableName, getRealUser, getUserName, hasSameAccountId, isIdentifiedUser, isImpersonating, isInternalUser, setAccessPath, updateRealAccountId
-
-
-
-
Method Detail
-
getEffectiveGroups
public GroupMembership getEffectiveGroups()
Description copied from class:CurrentUserGet the set of groups the user is currently a member of.The returned set may be a subset of the user's actual groups; if the user's account is currently deemed to be untrusted then the effective group set is only the anonymous and registered user groups. To enable additional groups (and gain their granted permissions) the user must update their account to use only trusted authentication providers.
- Specified by:
getEffectiveGroupsin classCurrentUser- Returns:
- active groups for this user.
-
getCacheKey
public Object getCacheKey()
Description copied from class:CurrentUserReturns a unique identifier for this user that is intended to be used as a cache key. Returned object should to implementequals()andhashCode()for effective caching.- Specified by:
getCacheKeyin classCurrentUser
-
-