Package org.infinispan.security
Interface MutableRolePermissionMapper
-
- All Superinterfaces:
RolePermissionMapper
- All Known Implementing Classes:
ClusterPermissionMapper
public interface MutableRolePermissionMapper extends RolePermissionMapper
ARolePermissionMapper
with the ability to add/remove roles at runtime- Since:
- 14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Void>
addRole(Role role)
Adds a new roleCompletionStage<Boolean>
removeRole(String role)
Removes a role-
Methods inherited from interface org.infinispan.security.RolePermissionMapper
getAllRoles, getRole, hasRole, setContext
-
-
-
-
Method Detail
-
addRole
CompletionStage<Void> addRole(Role role)
Adds a new role- Parameters:
role
- the role
-
removeRole
CompletionStage<Boolean> removeRole(String role)
Removes a role- Parameters:
role
- the name of the role to be removed- Returns:
- true if a role with the supplied name was found and removed
-
-