Uses of Class
com.broadleafcommerce.auth.resource.domain.UserRole
Packages that use UserRole
Package
Description
-
Uses of UserRole in com.broadleafcommerce.auth.data
Constructor parameters in com.broadleafcommerce.auth.data with type arguments of type UserRoleModifierConstructorDescriptionAuthorizationServerDataInitializer
(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
Constructor parameters in com.broadleafcommerce.auth.data.autoconfigure with type arguments of type UserRoleModifierConstructorDescriptionAuthorizationServerConfiguration
(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
Methods in com.broadleafcommerce.auth.resource.service that return types with arguments of type UserRoleModifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
DefaultUserOperationService.getUserRoleService()
Method parameters in com.broadleafcommerce.auth.resource.service with type arguments of type UserRoleModifier and TypeMethodDescriptionvoid
DefaultUserOperationService.setUserRoleService
(UserRoleService<UserRole> userRoleService) -
Uses of UserRole in com.broadleafcommerce.auth.resource.service.validation
Methods in com.broadleafcommerce.auth.resource.service.validation that return types with arguments of type UserRoleModifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
UserRoleValidator.getUserRoleService()
Methods in com.broadleafcommerce.auth.resource.service.validation with parameters of type UserRoleModifier 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.Method parameters in com.broadleafcommerce.auth.resource.service.validation with type arguments of type UserRoleModifier 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
Methods in com.broadleafcommerce.auth.resource.web.endpoint that return UserRoleModifier and TypeMethodDescriptionUserRoleEndpoint.createRole
(UserRole req) UserRoleEndpoint.replaceRole
(String id, UserRole req) Methods in com.broadleafcommerce.auth.resource.web.endpoint that return types with arguments of type UserRoleModifier 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) Methods in com.broadleafcommerce.auth.resource.web.endpoint with parameters of type UserRoleModifier and TypeMethodDescriptionUserRoleEndpoint.createRole
(UserRole req) UserRoleEndpoint.replaceRole
(String id, UserRole req) Constructor parameters in com.broadleafcommerce.auth.resource.web.endpoint with type arguments of type UserRoleModifierConstructorDescriptionUserRoleEndpoint
(UserRoleService<UserRole> userRoleService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService) -
Uses of UserRole in com.broadleafcommerce.auth.security.domain
Methods in com.broadleafcommerce.auth.security.domain that return UserRoleModifier and TypeMethodDescriptionprotected UserRole
JpaUserRole.pruneArchivedReferences
(org.modelmapper.spi.MappingContext<JpaUserRole, UserRole> mappingContext) Used as theTypeMap.setPostConverter(Converter)
forJpaUserRole.fromMe()
.Method parameters in com.broadleafcommerce.auth.security.domain with type arguments of type UserRoleModifier 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
Classes in com.broadleafcommerce.auth.security.service with type parameters of type UserRoleModifier 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>
Methods in com.broadleafcommerce.auth.security.service that return types with arguments of type UserRoleModifier 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()
Method parameters in com.broadleafcommerce.auth.security.service with type arguments of type UserRoleModifier 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) Constructor parameters in com.broadleafcommerce.auth.security.service with type arguments of type UserRoleModifierConstructorDescriptionDefaultPrivilegeService
(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
Methods in com.broadleafcommerce.auth.security.service.hydration that return types with arguments of type UserRoleModifier 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.Methods in com.broadleafcommerce.auth.security.service.hydration with parameters of type UserRoleModifier 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) Method parameters in com.broadleafcommerce.auth.security.service.hydration with type arguments of type UserRoleModifier 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.Constructor parameters in com.broadleafcommerce.auth.security.service.hydration with type arguments of type UserRoleModifierConstructorDescriptionDefaultUserRoleAncestryHydrationService
(UserRoleService<UserRole> userRoleService) UserRoleAncestryHydrationResponse
(boolean successful, String errorMessage, List<UserRole> roleAndAncestors) -
Uses of UserRole in com.broadleafcommerce.auth.user.autoconfigure
Method parameters in com.broadleafcommerce.auth.user.autoconfigure with type arguments of type UserRoleModifier and TypeMethodDescriptionImpersonationConfiguration.defaultImpersonationClaimsEnhancer
(AuthorizationServerProperties properties, UserService<User> userService, UserRoleService<UserRole> roleService, UserRoleAncestryHydrationService roleAncestryHydrationService) -
Uses of UserRole in com.broadleafcommerce.auth.user.listener
Methods in com.broadleafcommerce.auth.user.listener that return UserRoleModifier and TypeMethodDescriptionprotected UserRole
AdminRolePersistenceHandler.buildUserRoleForCreate
(String id, AdminRole request, Instant lastUpdated) Methods in com.broadleafcommerce.auth.user.listener that return types with arguments of type UserRoleModifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
AdminRolePersistenceHandler.getUserRoleService()
Methods in com.broadleafcommerce.auth.user.listener with parameters of type UserRoleModifier 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) Constructor parameters in com.broadleafcommerce.auth.user.listener with type arguments of type UserRoleModifierConstructorDescriptionAdminRolePersistenceHandler
(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
Method parameters in com.broadleafcommerce.auth.user.listener.autoconfigure with type arguments of type UserRoleModifier 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
Methods in com.broadleafcommerce.auth.user.messaging that return types with arguments of type UserRoleModifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
CartApprovalRequestEventListener.getUserRoleService()
Constructor parameters in com.broadleafcommerce.auth.user.messaging with type arguments of type UserRoleModifierConstructorDescriptionCartApprovalRequestEventListener
(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
Method parameters in com.broadleafcommerce.auth.user.messaging.autoconfigure with type arguments of type UserRoleModifier 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
Methods in com.broadleafcommerce.auth.user.service that return types with arguments of type UserRoleModifier and TypeMethodDescriptionprotected UserRoleService<UserRole>
DefaultAccountMemberRoleChangeRequestHandler.getUserRoleService()
Methods in com.broadleafcommerce.auth.user.service with parameters of type UserRoleModifier and TypeMethodDescriptionprotected AccountRole
DefaultAccountMemberRoleChangeRequestHandler.buildAccountRole
(String accountId, String userId, UserRole role, boolean active) Build anAccountRole
from account id, user, and role.Constructor parameters in com.broadleafcommerce.auth.user.service with type arguments of type UserRoleModifierConstructorDescriptionDefaultAccountMemberRoleChangeRequestHandler
(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
Methods in com.broadleafcommerce.auth.user.service.autoconfigure that return types with arguments of type UserRoleModifier 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) Method parameters in com.broadleafcommerce.auth.user.service.autoconfigure with type arguments of type UserRoleModifier 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
Methods in com.broadleafcommerce.auth.user.web.endpoint that return UserRoleModifier and TypeMethodDescriptionCustomerAccountRoleEndpoint.readAccountRole
(String roleId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods in com.broadleafcommerce.auth.user.web.endpoint that return types with arguments of type UserRoleModifier and TypeMethodDescriptionCustomerAccountRoleEndpoint.readAccountRoles
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Constructor parameters in com.broadleafcommerce.auth.user.web.endpoint with type arguments of type UserRoleModifierConstructorDescriptionCustomerAccountRoleEndpoint
(UserRoleService<UserRole> userRoleService)