Class CurrentUserRolesProviderImpl
java.lang.Object
io.jmix.uiconstraints.security.impl.CurrentUserRolesProviderImpl
- All Implemented Interfaces:
CurrentUserRolesProvider
@Component("uicns_CurrentUserRolesProvider")
public class CurrentUserRolesProviderImpl
extends Object
implements CurrentUserRolesProvider
-
Constructor Summary
ConstructorDescriptionCurrentUserRolesProviderImpl
(CurrentAuthentication currentAuthentication, RoleGrantedAuthorityUtils roleGrantedAuthorityUtils, ResourceRoleRepository resourceRoleRepository, RowLevelRoleRepository rowLevelRoleRepository) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of resource roles assigned to the current user.Retrieves the list of row-level roles assigned to the current user.
-
Constructor Details
-
CurrentUserRolesProviderImpl
public CurrentUserRolesProviderImpl(CurrentAuthentication currentAuthentication, RoleGrantedAuthorityUtils roleGrantedAuthorityUtils, ResourceRoleRepository resourceRoleRepository, RowLevelRoleRepository rowLevelRoleRepository)
-
-
Method Details
-
getCurrentUserResourceRoles
Description copied from interface:CurrentUserRolesProvider
Retrieves the list of resource roles assigned to the current user.- Specified by:
getCurrentUserResourceRoles
in interfaceCurrentUserRolesProvider
- Returns:
- a list of
ResourceRole
-
getCurrentUserRowLevelRoles
Description copied from interface:CurrentUserRolesProvider
Retrieves the list of row-level roles assigned to the current user.- Specified by:
getCurrentUserRowLevelRoles
in interfaceCurrentUserRolesProvider
- Returns:
- a list of
RowLevelRole
-