public class AccountControl extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AccountControl.Factory |
Modifier and Type | Method and Description |
---|---|
boolean |
canSee(com.google.gerrit.reviewdb.client.Account.Id otherUser)
Returns true if the current user is allowed to see the otherUser, based
on the account visibility policy.
|
boolean |
canSee(com.google.gerrit.reviewdb.client.Account otherUser)
Returns true if the current user is allowed to see the otherUser, based
on the account visibility policy.
|
boolean |
canSee(AccountState otherUser)
Returns true if the current user is allowed to see the otherUser, based
on the account visibility policy.
|
CurrentUser |
getUser() |
public CurrentUser getUser()
public boolean canSee(com.google.gerrit.reviewdb.client.Account otherUser)
GroupMembership.getKnownGroups()
may only return a subset of the
effective groups.public boolean canSee(com.google.gerrit.reviewdb.client.Account.Id otherUser)
GroupMembership.getKnownGroups()
may only return a subset of the
effective groups.public boolean canSee(AccountState otherUser)
GroupMembership.getKnownGroups()
may only return a subset of the
effective groups.