public class PeerDaemonUser extends CurrentUser
Modifier and Type | Class and Description |
---|---|
static interface |
PeerDaemonUser.Factory |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
USER_NAME
Magic username used by peers when they authenticate.
|
Modifier | Constructor and Description |
---|---|
protected |
PeerDaemonUser(CapabilityControl.Factory capabilityControlFactory,
java.net.SocketAddress peer) |
Modifier and Type | Method and Description |
---|---|
GroupMembership |
getEffectiveGroups()
Get the set of groups the user is currently a member of.
|
java.util.Collection<com.google.gerrit.reviewdb.client.AccountProjectWatch> |
getNotificationFilters()
Filters selecting changes the user wants to monitor.
|
java.net.SocketAddress |
getRemoteAddress() |
java.util.Set<com.google.gerrit.reviewdb.client.Change.Id> |
getStarredChanges()
Set of changes starred by this user.
|
java.lang.String |
toString() |
getAccessPath, getCapabilities, getRealUser, getUserName, isIdentifiedUser, setAccessPath
public static final java.lang.String USER_NAME
@Inject protected PeerDaemonUser(CapabilityControl.Factory capabilityControlFactory, java.net.SocketAddress peer)
public GroupMembership getEffectiveGroups()
CurrentUser
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.
getEffectiveGroups
in class CurrentUser
public java.util.Set<com.google.gerrit.reviewdb.client.Change.Id> getStarredChanges()
CurrentUser
getStarredChanges
in class CurrentUser
public java.util.Collection<com.google.gerrit.reviewdb.client.AccountProjectWatch> getNotificationFilters()
CurrentUser
getNotificationFilters
in class CurrentUser
public java.net.SocketAddress getRemoteAddress()
public java.lang.String toString()
toString
in class java.lang.Object