Class QueryHelper.Visibility
- java.lang.Object
-
- org.ametys.plugins.queriesdirectory.QueryHelper.Visibility
-
- Enclosing class:
- QueryHelper
public static final class QueryHelper.Visibility extends Object
The user and its groups for checking visibility
-
-
Field Summary
Fields Modifier and Type Field Description private Set<GroupIdentity>
_groups
private UserIdentity
_user
-
Constructor Summary
Constructors Modifier Constructor Description private
Visibility(UserIdentity user, Set<GroupIdentity> groups)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Set<GroupIdentity>
getGroups()
(package private) UserIdentity
getUser()
static QueryHelper.Visibility
of(UserIdentity user, Set<GroupIdentity> groups)
Creates a newQueryHelper.Visibility
-
-
-
Field Detail
-
_user
private UserIdentity _user
-
_groups
private Set<GroupIdentity> _groups
-
-
Constructor Detail
-
Visibility
private Visibility(UserIdentity user, Set<GroupIdentity> groups)
-
-
Method Detail
-
of
public static QueryHelper.Visibility of(UserIdentity user, Set<GroupIdentity> groups)
Creates a newQueryHelper.Visibility
- Parameters:
user
- The usergroups
- The user groups- Returns:
- the
QueryHelper.Visibility
wrapper
-
getUser
UserIdentity getUser()
-
getGroups
Set<GroupIdentity> getGroups()
-
-