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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<GroupPrivilege>
getAllPrivileges()
Returns the set of all privilegesjava.util.Set<GroupPrivilege>
getAssignedPrivileges(User user)
Returns the set of the privileges assigned to the userboolean
hasPrivilege(User user, GroupPrivilege privilege)
Checks if the user has theGroupPrivilege
-
-
-
Method Detail
-
getAllPrivileges
java.util.Set<GroupPrivilege> getAllPrivileges()
Returns the set of all privileges- Returns:
- a set of
GroupPrivilege
- Since:
- 12.29
-
getAssignedPrivileges
java.util.Set<GroupPrivilege> getAssignedPrivileges(User user)
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
boolean hasPrivilege(User user, GroupPrivilege privilege)
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
-
-