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 userbooleanhasPrivilege(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- theUserfor retrieving the assigned privileges- Returns:
- a set of
GroupPrivilege - Since:
- 12.29
-
hasPrivilege
Checks if the user has theGroupPrivilege- Parameters:
user- theUserfor checking theGroupPrivilegeprivilege- theGroupPrivilege- Returns:
- true if the user has the
GroupPrivilegeotherwise false - Since:
- 12.29
-