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
-
Field Details
-
CLUSTER_PERMISSION_MAPPER_CACHE
- See Also:
-
-
Constructor Details
-
ClusterPermissionMapper
public ClusterPermissionMapper()
-
-
Method Details
-
addRole
Description copied from interface:MutableRolePermissionMapper
Adds a new role- Specified by:
addRole
in interfaceMutableRolePermissionMapper
- Parameters:
role
- the role
-
removeRole
Description copied from interface:MutableRolePermissionMapper
Removes a role- Specified by:
removeRole
in 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:
getAllRoles
in interfaceRolePermissionMapper
- Returns:
- all roles handled by this RolePermissionMapper
-
getRole
- Specified by:
getRole
in interfaceRolePermissionMapper
- Parameters:
name
- the name of the role- Returns:
- the
Role
-
hasRole
- Specified by:
hasRole
in interfaceRolePermissionMapper
- Parameters:
name
-- Returns:
- whether this permission mapper contains the named role
-