Uses of Class
com.broadleafcommerce.auth.resource.domain.UserRole
Package
Description
-
Uses of UserRole in com.broadleafcommerce.auth.data
ModifierConstructorDescriptionAuthorizationServerDataInitializer
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, AuthorizationServerService<AuthorizationServer> serverService, UserRoleService<UserRole> userRoleService, AuthorizationDataInitializationProperties properties) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of UserRole in com.broadleafcommerce.auth.data.autoconfigure
ModifierConstructorDescriptionAuthorizationServerConfiguration
(AuthorizationServerDataInitializerAutoConfiguration.RoleConfiguration roleConfiguration, com.broadleafcommerce.common.extension.TypeFactory typeFactory, AuthorizationServerService<AuthorizationServer> authorizationServerService, UserRoleService<UserRole> userRoleService, AuthorizationDataInitializationProperties properties) -
Uses of UserRole in com.broadleafcommerce.auth.resource.service
Modifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
DefaultUserOperationService.getUserRoleService()
Modifier and TypeMethodDescriptionvoid
DefaultUserOperationService.setUserRoleService
(UserRoleService<UserRole> userRoleService) -
Uses of UserRole in com.broadleafcommerce.auth.resource.service.validation
Modifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
UserRoleValidator.getUserRoleService()
Modifier and TypeMethodDescriptionprotected void
UserRoleValidator.validateAccountPermissions
(UserRole userRole, org.springframework.validation.Errors errors, Set<UserPermission> rolePermissions) Validates that an account based role only has account permissions and that non-account roles do not have account permissions.protected void
UserRoleValidator.validateParentRoleId
(UserRole role, org.springframework.validation.Errors errors) Traverses the full ancestry of the role to confirm each ancestor still exists and there are no cycles, either in the case that the ancestors already had cycles, or in the case that this role itself causes a cycle.protected void
UserRoleValidator.validateRolePermissions
(UserRole userRole, org.springframework.validation.Errors errors) protected void
UserRoleValidator.validateUserAssignablePermissions
(UserRole userRole, org.springframework.validation.Errors errors, Set<UserPermission> permissions) Validates that permissions that are notuser assignable
are not assigned to the role.Modifier and TypeMethodDescriptionvoid
UserRoleValidator.setUserRoleService
(UserRoleService<UserRole> userRoleService) Lazy injection since this validator is itself a service component. -
Uses of UserRole in com.broadleafcommerce.auth.resource.web.endpoint
Modifier and TypeMethodDescriptionUserRoleEndpoint.createRole
(UserRole req) UserRoleEndpoint.replaceRole
(String id, UserRole req) Modifier and TypeMethodDescriptionUserRoleEndpoint.findByIdIn
(Collection<String> ids) protected UserRoleService<UserRole>
UserRoleEndpoint.getUserRoleService()
org.springframework.data.domain.Page<UserRole>
UserRoleEndpoint.readAllRoles
(String query, boolean accountRoles, org.springframework.data.domain.Pageable page) Modifier and TypeMethodDescriptionUserRoleEndpoint.createRole
(UserRole req) UserRoleEndpoint.replaceRole
(String id, UserRole req) ModifierConstructorDescriptionUserRoleEndpoint
(UserRoleService<UserRole> userRoleService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService) -
Uses of UserRole in com.broadleafcommerce.auth.security.domain
Modifier and TypeMethodDescriptionprotected UserRole
JpaUserRole.pruneArchivedReferences
(org.modelmapper.spi.MappingContext<JpaUserRole, UserRole> mappingContext) Used as theTypeMap.setPostConverter(Converter)
forJpaUserRole.fromMe()
.Modifier and TypeMethodDescriptionprotected UserRole
JpaUserRole.pruneArchivedReferences
(org.modelmapper.spi.MappingContext<JpaUserRole, UserRole> mappingContext) Used as theTypeMap.setPostConverter(Converter)
forJpaUserRole.fromMe()
. -
Uses of UserRole in com.broadleafcommerce.auth.security.service
Modifier and TypeClassDescriptionclass
DefaultUserRoleService<P extends UserRole,
D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> interface
UserRoleService<P extends UserRole>
Modifier and TypeMethodDescriptionDefaultPrivilegeService.PrivilegeHydrationResult.getRestrictedRoleWithAncestorsByRestrictedRoleId()
protected Map<String,
Collection<UserRole>> DefaultPrivilegeService.getRoleWithAncestorsByRoleId
(@NonNull Set<String> roleIds) Gets roles along with their ancestry roles mapped by given role id.protected UserRoleService<UserRole>
DefaultPrivilegeService.getUserRoleService()
Modifier and TypeMethodDescriptionprotected Set<UserPermissionRef>
DefaultPrivilegeService.getAllFlatPermissions
(@NonNull User user, @NonNull AuthorizationServer server, @NonNull Collection<UserRole> userAndServerRolesWithAncestors) Gets a set of all flat permissions fromUser.getPermissions()
,AuthorizationServer.getDefaultUserPermissions()
, and permissions from the given roles.protected Set<UserPermissionRef>
DefaultPrivilegeService.getAllFlatPermissions
(@NonNull Collection<UserRole> roles) Gets a set of allgetPermissions()
from the given rolesvoid
DefaultPrivilegeService.PrivilegeHydrationResult.setRestrictedRoleWithAncestorsByRestrictedRoleId
(Map<String, Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId) ModifierConstructorDescriptionDefaultPrivilegeService
(UserRoleService<UserRole> userRoleService, UserRoleAncestryHydrationService roleAncestryHydrationService, AuthorizationServerService<AuthorizationServer> serverService) Deprecated, for removal: This API element is subject to removal in a future version.Since 1.8.0.DefaultPrivilegeService
(UserRoleService<UserRole> userRoleService, UserRoleAncestryHydrationService roleAncestryHydrationService, AuthorizationServerService<AuthorizationServer> serverService, AccountAncestorService accountAncestorService, TokenProperties tokenProperties) PrivilegeHydrationResult
(Set<UserPermissionRef> flatPermissions, Set<Restriction> restrictions, Set<RestrictedRole> restrictedRoles, Map<String, Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId, Set<RestrictedPermission> restrictedPermissions) -
Uses of UserRole in com.broadleafcommerce.auth.security.service.hydration
Modifier and TypeMethodDescriptionDefaultUserRoleAncestryHydrationService.getFlattenedWithAllAncestors
(Collection<UserRole> roles) UserRoleAncestryHydrationService.getFlattenedWithAllAncestors
(Collection<UserRole> roles) A convenience method to enable fetching a flattened collection consisting of all of the given roles along with their ancestors.DefaultUserRoleAncestryHydrationService.getFlattenedWithAllAncestorsAndThrowIfAnyFailed
(Collection<UserRole> roles) UserRoleAncestryHydrationService.getFlattenedWithAllAncestorsAndThrowIfAnyFailed
(Collection<UserRole> roles) Same logic as documented forUserRoleAncestryHydrationService.getFlattenedWithAllAncestors(Collection)
except this method throws an exception when there's one or moreUserRoleAncestryHydrationResponse
not successful.UserRoleAncestryHydrationResponse.getRoleAndAncestors()
If the operation wasUserRoleAncestryHydrationResponse.successful
, this will contain the role itself along with all of its ancestors.protected UserRoleService<UserRole>
DefaultUserRoleAncestryHydrationService.getUserRoleService()
DefaultUserRoleAncestryHydrationService.getWithAllAncestorsByRoleIdAndThrowIfAnyFailed
(Collection<UserRole> roles) UserRoleAncestryHydrationService.getWithAllAncestorsByRoleIdAndThrowIfAnyFailed
(Collection<UserRole> roles) Same logic as documented forUserRoleAncestryHydrationService.getWithAllAncestors(Collection)
except this method throws an exception when there's one or moreUserRoleAncestryHydrationResponse
not successful, and the value of the map is a collection of the given roles along with their ancestors mapped by the given role id.Modifier and TypeMethodDescriptionprotected void
DefaultUserRoleAncestryHydrationService.attemptHydrationOfNextAncestor
(String inProgressRoleToHydrate, UserRole highestAncestorThusFar, List<String> ancestorIdsSeenThusFar, Set<String> failedToFindRoleIds, Map<String, UserRole> foundRolesCache, Set<String> roleIdsToRemoveFromInProgress, Set<String> roleIdsToFindInDataStore, Map<String, UserRoleAncestryHydrationResponse> completed) Modifier and TypeMethodDescriptionprotected void
DefaultUserRoleAncestryHydrationService.attemptHydrationOfNextAncestor
(String inProgressRoleToHydrate, UserRole highestAncestorThusFar, List<String> ancestorIdsSeenThusFar, Set<String> failedToFindRoleIds, Map<String, UserRole> foundRolesCache, Set<String> roleIdsToRemoveFromInProgress, Set<String> roleIdsToFindInDataStore, Map<String, UserRoleAncestryHydrationResponse> completed) DefaultUserRoleAncestryHydrationService.findInDataStoreAndReturnMissingIds
(Set<String> roleIdsToFind, Map<String, UserRole> cacheToAddFoundTo) Searches the data store for roles matching the givenroleIdsToFind
.DefaultUserRoleAncestryHydrationService.getFlattenedWithAllAncestors
(Collection<UserRole> roles) UserRoleAncestryHydrationService.getFlattenedWithAllAncestors
(Collection<UserRole> roles) A convenience method to enable fetching a flattened collection consisting of all of the given roles along with their ancestors.DefaultUserRoleAncestryHydrationService.getFlattenedWithAllAncestorsAndThrowIfAnyFailed
(Collection<UserRole> roles) UserRoleAncestryHydrationService.getFlattenedWithAllAncestorsAndThrowIfAnyFailed
(Collection<UserRole> roles) Same logic as documented forUserRoleAncestryHydrationService.getFlattenedWithAllAncestors(Collection)
except this method throws an exception when there's one or moreUserRoleAncestryHydrationResponse
not successful.DefaultUserRoleAncestryHydrationService.getWithAllAncestors
(Collection<UserRole> roles) UserRoleAncestryHydrationService.getWithAllAncestors
(Collection<UserRole> roles) Fetches all of the given roles' ancestors from the data store and returns a result containing them and the given roles themselves.DefaultUserRoleAncestryHydrationService.getWithAllAncestorsByRoleIdAndThrowIfAnyFailed
(Collection<UserRole> roles) UserRoleAncestryHydrationService.getWithAllAncestorsByRoleIdAndThrowIfAnyFailed
(Collection<UserRole> roles) Same logic as documented forUserRoleAncestryHydrationService.getWithAllAncestors(Collection)
except this method throws an exception when there's one or moreUserRoleAncestryHydrationResponse
not successful, and the value of the map is a collection of the given roles along with their ancestors mapped by the given role id.ModifierConstructorDescriptionDefaultUserRoleAncestryHydrationService
(UserRoleService<UserRole> userRoleService) UserRoleAncestryHydrationResponse
(boolean successful, String errorMessage, List<UserRole> roleAndAncestors) -
Uses of UserRole in com.broadleafcommerce.auth.user.autoconfigure
Modifier and TypeMethodDescriptionImpersonationConfiguration.defaultImpersonationClaimsEnhancer
(AuthorizationServerProperties properties, UserService<User> userService, UserRoleService<UserRole> roleService, UserRoleAncestryHydrationService roleAncestryHydrationService) -
Uses of UserRole in com.broadleafcommerce.auth.user.listener
Modifier and TypeMethodDescriptionprotected UserRole
AdminRolePersistenceHandler.buildUserRoleForCreate
(String id, AdminRole request, Instant lastUpdated) Modifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
AdminRolePersistenceHandler.getUserRoleService()
Modifier and TypeMethodDescriptionprotected void
AdminRolePersistenceHandler.mapUpdatesFromRequest
(AdminRole request, UserRole target) protected void
AdminRolePersistenceHandler.modifyForArchival
(UserRole target) Mimic whatUserRoleService.archive(String)
would do to mark this record as archived.protected void
AdminRolePersistenceHandler.performArchivalReplacementIfEligible
(@NonNull String entityId, @NonNull UserRole existing, @NonNull Instant changeTimestamp) protected void
AdminRolePersistenceHandler.performReplacementIfEligible
(@NonNull String entityId, @NonNull UserRole existing, @NonNull AdminRole request, @NonNull Instant changeTimestamp) protected void
AdminRolePersistenceHandler.updateBasicRoleInfo
(AdminRole request, UserRole role) protected void
AdminRolePersistenceHandler.updateParent
(AdminRole request, UserRole role) Don't validate parent or ancestry here, since we expect the admin user service to have pre-validated it against cycles or broken references.protected void
AdminRolePersistenceHandler.updatePermissions
(AdminRole request, UserRole role) We will not validate these references by querying for them, as the associated permissions may not yet be synchronized to the authentication service.protected void
AdminRolePersistenceHandler.updateRoleTenantRestrictions
(AdminRole request, UserRole role) ModifierConstructorDescriptionAdminRolePersistenceHandler
(UserRoleService<UserRole> userRoleService, com.fasterxml.jackson.databind.ObjectMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of UserRole in com.broadleafcommerce.auth.user.listener.autoconfigure
Modifier and TypeMethodDescriptionAuthDataUpdatePersistenceHandlerAutoConfiguration.adminRolePersistenceHandler
(UserRoleService<UserRole> userRoleService, com.fasterxml.jackson.databind.ObjectMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of UserRole in com.broadleafcommerce.auth.user.messaging
Modifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
CartApprovalRequestEventListener.getUserRoleService()
ModifierConstructorDescriptionCartApprovalRequestEventListener
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, UserService<User> userService, UserRoleService<UserRole> userRoleService, AccountRoleService<AccountRole> accountRoleService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, CartApprovalRequestNotificationProducer cartApprovalRequestNotificationProducer, AccountAncestorService accountAncestorService) -
Uses of UserRole in com.broadleafcommerce.auth.user.messaging.autoconfigure
Modifier and TypeMethodDescriptionAuthUserMessagingAutoConfiguration.cartApprovalRequestEventListener
(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentMessageConsumptionService, UserService<User> userService, UserRoleService<UserRole> userRoleService, AccountRoleService<AccountRole> accountRoleService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, CartApprovalRequestNotificationProducer cartApprovalRequestNotificationProducer, AccountAncestorService accountAncestorService) -
Uses of UserRole in com.broadleafcommerce.auth.user.service
Modifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
DefaultAccountMemberRoleChangeRequestHandler.getUserRoleService()
Modifier and TypeMethodDescriptionprotected AccountRole
DefaultAccountMemberRoleChangeRequestHandler.buildAccountRole
(String accountId, String userId, UserRole role, boolean active) Build anAccountRole
from account id, user, and role.ModifierConstructorDescriptionDefaultAccountMemberRoleChangeRequestHandler
(UserService<User> userService, UserRoleService<UserRole> userRoleService) DefaultImpersonationClaimsEnhancer
(AuthorizationServerProperties properties, UserService<User> userService, UserRoleService<UserRole> userRoleService, UserRoleAncestryHydrationService roleAncestryHydrationService) -
Uses of UserRole in com.broadleafcommerce.auth.user.service.autoconfigure
Modifier and TypeMethodDescription<D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable>
UserRoleService<UserRole>AuthServiceServiceAutoConfiguration.userRoleService
(RoleRepository<D> roleRepository, com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validatorManager, SimplePayloadMapper simplePayloadMapper) Modifier and TypeMethodDescriptionAuthServiceServiceAutoConfiguration.accountMemberRoleChangeRequestHandler
(UserService<User> userService, UserRoleService<UserRole> userRoleService) AuthServiceServiceAutoConfiguration.restrictionService
(UserRoleService<UserRole> userRoleService, UserRoleAncestryHydrationService userRoleAncestryHydrationService, AuthorizationServerService<AuthorizationServer> serverService, AccountAncestorService accountAncestorService, TokenProperties tokenProperties) AuthServiceServiceAutoConfiguration.userRoleAncestryHydrationService
(UserRoleService<UserRole> userRoleService) -
Uses of UserRole in com.broadleafcommerce.auth.user.web.endpoint
Modifier and TypeMethodDescriptionCustomerAccountRoleEndpoint.readAccountRole
(String roleId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Modifier and TypeMethodDescriptionCustomerAccountRoleEndpoint.readAccountRoles
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) ModifierConstructorDescriptionCustomerAccountRoleEndpoint
(UserRoleService<UserRole> userRoleService)