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
ConstructorsConstructorDescriptionCurrentUserRolesProviderImpl(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:CurrentUserRolesProviderRetrieves the list of resource roles assigned to the current user.- Specified by:
getCurrentUserResourceRolesin interfaceCurrentUserRolesProvider- Returns:
- a list of
ResourceRole
-
getCurrentUserRowLevelRoles
Description copied from interface:CurrentUserRolesProviderRetrieves the list of row-level roles assigned to the current user.- Specified by:
getCurrentUserRowLevelRolesin interfaceCurrentUserRolesProvider- Returns:
- a list of
RowLevelRole
-