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 aPrivilege
with the name for the appboolean
hasPrivilege
(User user, Privilege privilege) Checks if the user has thePrivilege
void
removePrivilege
(Privilege privilege) Removes thePrivilege
from the novomind iAGENT system
-
Method Details
-
getOrCreatePrivilege
This method gets or creates aPrivilege
with 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 thePrivilege
from the novomind iAGENT system- Parameters:
privilege
- thePrivilege
to be removed- Since:
- 11.5
-