Class AnnotatedRowLevelRoleProvider
java.lang.Object
io.jmix.security.impl.role.provider.AnnotatedRowLevelRoleProvider
- All Implemented Interfaces:
RoleProvider<RowLevelRole>
,RowLevelRoleProvider
@Component("sec_AnnotatedRowLevelRoleProvider")
public class AnnotatedRowLevelRoleProvider
extends Object
implements RowLevelRoleProvider
Role provider that gets row level roles from classes annotated with
RowLevelRole
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionAnnotatedRowLevelRoleProvider
(JmixModulesClasspathScanner classpathScanner, AnnotatedRoleBuilder annotatedRoleBuilder, RowLevelRoleDetector detector, org.springframework.context.ApplicationEventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteRole
(RowLevelRole 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
-
AnnotatedRowLevelRoleProvider
@Autowired public AnnotatedRowLevelRoleProvider(JmixModulesClasspathScanner classpathScanner, AnnotatedRoleBuilder annotatedRoleBuilder, RowLevelRoleDetector detector, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Details
-
getAllRoles
- Specified by:
getAllRoles
in interfaceRoleProvider<RowLevelRole>
-
findRoleByCode
- Specified by:
findRoleByCode
in interfaceRoleProvider<RowLevelRole>
-
deleteRole
- Specified by:
deleteRole
in interfaceRoleProvider<RowLevelRole>
-
refreshRoles
public void refreshRoles()
-