Package org.ametys.core.right
Class AllowedUsers
java.lang.Object
org.ametys.core.right.AllowedUsers
Wrapper class to represent a set of allowed users, which can eventually be anonymous or any connected user.
-
Method Summary
Modifier and TypeMethodDescriptionGet the allowed groupsGet the allowed usersGet the allowed groupsGet the denied usersboolean
Returns true if any anonymous user is allowedboolean
Returns true if any connected user is allowedresolveAllowedUsers
(boolean returnAll) Resolve the actual allowed users, taking into account the anyconnected, allowed and denied users and groups.
-
Method Details
-
isAnonymousAllowed
Returns true if any anonymous user is allowed- Returns:
- true if any anonymous user is allowed
-
isAnyConnectedUserAllowed
Returns true if any connected user is allowed- Returns:
- true if any connected user is allowed
-
getAllowedUsers
Get the allowed users- Returns:
- The allowed users
-
getDeniedUsers
Get the denied users- Returns:
- The denied users
-
getAllowedGroups
Get the allowed groups- Returns:
- The allowed groups
-
getDeniedGroups
Get the allowed groups- Returns:
- The allowed groups
-
resolveAllowedUsers
Resolve the actual allowed users, taking into account the anyconnected, allowed and denied users and groups. If anonymous is allowed, it will return an empty list.- Parameters:
returnAll
- Set totrue
to resolve all users if any connected user is allowed. Iffalse
, returns an empty Set if any connected user is allowed.- Returns:
- the computed actual allowed users
-