Class AccountControl


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

      • 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.