Class AccountControl

java.lang.Object
com.google.gerrit.server.account.AccountControl

public class AccountControl extends Object
Access control management for one account's access to other accounts.
  • Method Details

    • getUser

      public CurrentUser getUser()
    • canSee

      public boolean canSee(Account.Id otherUser)
      Returns true if the current user is allowed to see the otherUser, based on the account visibility policy. Depending on the group membership realms supported, this may not be able to determine SAME_GROUP or VISIBLE_GROUP correctly (defaulting to not being visible). This is because GroupMembership.getKnownGroups() may only return a subset of the effective groups.
    • canSee

      public boolean canSee(AccountState otherUser)
      Returns true if the current user is allowed to see the otherUser, based on the account visibility policy. Depending on the group membership realms supported, this may not be able to determine SAME_GROUP or VISIBLE_GROUP correctly (defaulting to not being visible). This is because GroupMembership.getKnownGroups() may only return a subset of the effective groups.
    • canViewAll

      public boolean canViewAll()