Package io.jmix.security.role
Interface RoleProvider<T extends BaseRole>
- All Known Subinterfaces:
ResourceRoleProvider
,RowLevelRoleProvider
- All Known Implementing Classes:
AnnotatedResourceRoleProvider
,AnnotatedRowLevelRoleProvider
,BaseDatabaseRoleProvider
,DatabaseResourceRoleProvider
,DatabaseRowLevelRoleProvider
public interface RoleProvider<T extends BaseRole>
Interface must be implemented by classes that provide resource/row level roles from a particular source type. A source type may be a
database, annotated interfaces, etc.
Role providers are used by ResourceRoleRepository
/RowLevelRoleRepository
-
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteRole
(T role) findRoleByCode
(String code) default T
getRoleByCode
(String code)
-
Method Details
-
getRoleByCode
-
findRoleByCode
-
deleteRole
-
getAllRoles
Collection<T> getAllRoles()
-