Class AnnotatedResourceRoleProvider
java.lang.Object
io.jmix.security.impl.role.provider.AnnotatedResourceRoleProvider
- All Implemented Interfaces:
ResourceRoleProvider
,RoleProvider<ResourceRole>
@Component("sec_AnnotatedResourceRoleProvider")
public class AnnotatedResourceRoleProvider
extends Object
implements ResourceRoleProvider
Role provider that gets roles from classes annotated with
ResourceRole
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionAnnotatedResourceRoleProvider
(JmixModulesClasspathScanner classpathScanner, AnnotatedRoleBuilder annotatedRoleBuilder, ResourceRoleDetector detector) -
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteRole
(ResourceRole role) findRoleByCode
(String code) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.security.role.RoleProvider
getRoleByCode
-
Field Details
-
roles
-
-
Constructor Details
-
AnnotatedResourceRoleProvider
@Autowired public AnnotatedResourceRoleProvider(JmixModulesClasspathScanner classpathScanner, AnnotatedRoleBuilder annotatedRoleBuilder, ResourceRoleDetector detector)
-
-
Method Details
-
getAllRoles
- Specified by:
getAllRoles
in interfaceRoleProvider<ResourceRole>
-
findRoleByCode
- Specified by:
findRoleByCode
in interfaceRoleProvider<ResourceRole>
-
deleteRole
- Specified by:
deleteRole
in interfaceRoleProvider<ResourceRole>
-
refreshRoles
public void refreshRoles()
-