Package org.infinispan.security.mappers
Class ClusterPermissionMapper
java.lang.Object
org.infinispan.security.mappers.ClusterPermissionMapper
- All Implemented Interfaces:
MutableRolePermissionMapper,RolePermissionMapper
ClusterPermissionMapper. This class implements both a
MutableRolePermissionMapper storing the mappings in a
persistent replicated internal cache named org.infinispan.PERMISSIONS- Since:
- 14.0
- Author:
- Tristan Tarrant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new rolebooleanremoveRole(String name) Removes a rolevoidsetContext(AuthorizationMapperContext context) Sets the context for thisRolePermissionMapper
-
Constructor Details
-
ClusterPermissionMapper
public ClusterPermissionMapper()
-
-
Method Details
-
setContext
Description copied from interface:RolePermissionMapperSets the context for thisRolePermissionMapper- Specified by:
setContextin interfaceRolePermissionMapper
-
addRole
Description copied from interface:MutableRolePermissionMapperAdds a new role- Specified by:
addRolein interfaceMutableRolePermissionMapper- Parameters:
role- the role
-
removeRole
Description copied from interface:MutableRolePermissionMapperRemoves a role- Specified by:
removeRolein interfaceMutableRolePermissionMapper- Parameters:
name- the name of the role to be removed- Returns:
- true if a role with the supplied name was found and removed
-
getAllRoles
- Specified by:
getAllRolesin interfaceRolePermissionMapper- Returns:
- all roles handled by this RolePermissionMapper
-
getRole
- Specified by:
getRolein interfaceRolePermissionMapper- Parameters:
name- the name of the role- Returns:
- the
Role
-
hasRole
- Specified by:
hasRolein interfaceRolePermissionMapper- Returns:
- whether this permission mapper contains the named role
-