Interface PrivilegeHandler
public interface PrivilegeHandler
This handler is used for registering, removing and reading app specific privileges.
It can only be injected in the novomind iAGENT routing process.
- Since:
- 11.5
-
Method Summary
Modifier and TypeMethodDescriptiongetOrCreatePrivilege(String name) This method gets or creates aPrivilegewith the name for the appbooleanhasPrivilege(User user, Privilege privilege) Checks if the user has thePrivilegevoidremovePrivilege(Privilege privilege) Removes thePrivilegefrom the novomind iAGENT system
-
Method Details
-
getOrCreatePrivilege
This method gets or creates aPrivilegewith the name for the app- Parameters:
name- the name of thePrivilege.- Returns:
- the
Privilege - Throws:
IllegalArgumentException- if the name is empty- Since:
- 11.5
-
hasPrivilege
Checks if the user has thePrivilege -
removePrivilege
Removes thePrivilegefrom the novomind iAGENT system- Parameters:
privilege- thePrivilegeto be removed- Since:
- 11.5
-