Package io.jmix.security.impl.role
Class RowLevelRoleRepositoryImpl
java.lang.Object
io.jmix.security.impl.role.RowLevelRoleRepositoryImpl
- All Implemented Interfaces:
RoleRepository<RowLevelRole>
,RowLevelRoleRepository
@Component("sec_RowLevelRoleRepository")
public class RowLevelRoleRepositoryImpl
extends Object
implements RowLevelRoleRepository
-
Field Summary
Fields inherited from interface io.jmix.security.role.RowLevelRoleRepository
ROW_LEVEL_ROLES_CACHE_NAME
-
Constructor Summary
ConstructorDescriptionRowLevelRoleRepositoryImpl
(org.springframework.cache.CacheManager cacheManager, CacheOperations cacheOperations, Collection<RowLevelRoleProvider> roleProviders, org.springframework.beans.factory.ObjectProvider<RoleRepositoryProviderUtils<RowLevelRole>> roleRepositoryProviderUtilsProvider) -
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteRole
(String code) findRoleByCode
(String roleCode) getRoleByCode
(String code) void
init()
void
Invalidates role cache.
-
Constructor Details
-
RowLevelRoleRepositoryImpl
public RowLevelRoleRepositoryImpl(org.springframework.cache.CacheManager cacheManager, CacheOperations cacheOperations, Collection<RowLevelRoleProvider> roleProviders, org.springframework.beans.factory.ObjectProvider<RoleRepositoryProviderUtils<RowLevelRole>> roleRepositoryProviderUtilsProvider)
-
-
Method Details
-
init
@PostConstruct public void init() -
findRoleByCode
- Specified by:
findRoleByCode
in interfaceRoleRepository<RowLevelRole>
-
getRoleByCode
- Specified by:
getRoleByCode
in interfaceRoleRepository<RowLevelRole>
-
deleteRole
- Specified by:
deleteRole
in interfaceRoleRepository<RowLevelRole>
-
getAllRoles
- Specified by:
getAllRoles
in interfaceRoleRepository<RowLevelRole>
-
invalidateCache
public void invalidateCache()Description copied from interface:RoleRepository
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.- Specified by:
invalidateCache
in interfaceRoleRepository<RowLevelRole>
-