Class InMemoryRoleAssignmentProvider
java.lang.Object
io.jmix.security.impl.role.assignment.InMemoryRoleAssignmentProvider
- All Implemented Interfaces:
RoleAssignmentProvider
@Component("sec_InMemoryRoleAssignmentProvider")
public class InMemoryRoleAssignmentProvider
extends Object
implements RoleAssignmentProvider
RoleAssignmentProvider
that stores role assignments in memory. Use the addAssignment(RoleAssignment)
method to put the RoleAssignment
into in-memory storage.-
Field Summary
Modifier and TypeFieldDescriptionprotected com.google.common.collect.Multimap<String,
RoleAssignment> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssignment
(RoleAssignment roleAssignment) getAssignmentsByUsername
(String username) void
removeAssignments
(String username)
-
Field Details
-
assignments
-
-
Constructor Details
-
InMemoryRoleAssignmentProvider
public InMemoryRoleAssignmentProvider()
-
-
Method Details
-
getAllAssignments
- Specified by:
getAllAssignments
in interfaceRoleAssignmentProvider
-
getAssignmentsByUsername
- Specified by:
getAssignmentsByUsername
in interfaceRoleAssignmentProvider
-
addAssignment
-
removeAssignments
-