public class AccountControl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AccountControl.Factory |
Modifier and Type | Method and Description |
---|---|
boolean |
canSee(Account.Id 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(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.