Interface GroupPrivilegeHandler
public interface GroupPrivilegeHandler
This handler provides access to group privileges.
It can only be injected in the novomind iAGENT routing process.
- Since:
- 12.29
-
Method Summary
Modifier and TypeMethodDescriptionReturns the set of all privilegesgetAssignedPrivileges
(User user) Returns the set of the privileges assigned to the userboolean
hasPrivilege
(User user, GroupPrivilege privilege) Checks if the user has theGroupPrivilege
-
Method Details
-
getAllPrivileges
Set<GroupPrivilege> getAllPrivileges()Returns the set of all privileges- Returns:
- a set of
GroupPrivilege
- Since:
- 12.29
-
getAssignedPrivileges
Returns the set of the privileges assigned to the user- Parameters:
user
- theUser
for retrieving the assigned privileges- Returns:
- a set of
GroupPrivilege
- Since:
- 12.29
-
hasPrivilege
Checks if the user has theGroupPrivilege
- Parameters:
user
- theUser
for checking theGroupPrivilege
privilege
- theGroupPrivilege
- Returns:
- true if the user has the
GroupPrivilege
otherwise false - Since:
- 12.29
-