Package com.google.gerrit.server
Class PluginUser
- java.lang.Object
-
- com.google.gerrit.server.CurrentUser
-
- com.google.gerrit.server.InternalUser
-
- com.google.gerrit.server.PluginUser
-
public class PluginUser extends InternalUser
User identity for plugin code that needs an identity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PluginUser.Factory
-
Nested classes/interfaces inherited from class com.google.gerrit.server.CurrentUser
CurrentUser.PropertyKey<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PluginUser(String pluginName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getUserName()
Unique name of the user on this server, if one has been assigned.String
toString()
-
Methods inherited from class com.google.gerrit.server.InternalUser
getCacheKey, getEffectiveGroups, isInternalUser
-
Methods inherited from class com.google.gerrit.server.CurrentUser
asIdentifiedUser, get, getAccessPath, getAccountId, getLastLoginExternalIdKey, getLoggableName, getRealUser, hasSameAccountId, isIdentifiedUser, isImpersonating, put, setAccessPath, setLastLoginExternalIdKey, updateRealAccountId
-
-
-
-
Constructor Detail
-
PluginUser
@Inject protected PluginUser(String pluginName)
-
-
Method Detail
-
getUserName
public Optional<String> getUserName()
Description copied from class:CurrentUser
Unique name of the user on this server, if one has been assigned.- Overrides:
getUserName
in classCurrentUser
-
toString
public String toString()
- Overrides:
toString
in classInternalUser
-
-