Package io.jmix.security.role
Interface RoleRepository<T extends BaseRole>
- All Known Subinterfaces:
- ResourceRoleRepository,- RowLevelRoleRepository
- All Known Implementing Classes:
- ResourceRoleRepositoryImpl,- RowLevelRoleRepositoryImpl
public interface RoleRepository<T extends BaseRole>
Interface for roles repository. Implementations of the interface are responsible for finding roles of different
 types: resource, row-level, etc.
- 
Method SummaryModifier and TypeMethodDescriptionbooleandeleteRole(String code) findRoleByCode(String code) getRoleByCode(String code) voidInvalidates role cache.
- 
Method Details- 
getRoleByCode
- 
findRoleByCode
- 
deleteRole
- 
getAllRolesCollection<T> getAllRoles()
- 
invalidateCachevoid invalidateCache()Invalidates role cache. The method must be invoked after each role modification, for example, when database role is changed with the UI or annotated role is hot deployed.
 
-