Constructor and Description |
---|
AuthorizationServerDataInitializer(com.broadleafcommerce.common.extension.TypeFactory typeFactory,
AuthorizationServerService<AuthorizationServer> serverService,
UserRoleService<UserRole> userRoleService,
AuthorizationDataInitializationProperties properties) |
Constructor and Description |
---|
AuthorizationServerConfiguration(AuthorizationServerDataInitializerAutoConfiguration.RoleConfiguration roleConfiguration,
com.broadleafcommerce.common.extension.TypeFactory typeFactory,
AuthorizationServerService<AuthorizationServer> authorizationServerService,
UserRoleService<UserRole> userRoleService,
AuthorizationDataInitializationProperties properties) |
Modifier and Type | Method and Description |
---|---|
protected UserRoleService<UserRole> |
UserRoleValidator.getUserRoleService() |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
UserRoleValidator.setUserRoleService(UserRoleService<UserRole> userRoleService)
Lazy injection since this validator is itself a service component.
|
Modifier and Type | Method and Description |
---|---|
UserRole |
UserRoleEndpoint.createRole(UserRole req) |
UserRole |
UserRoleEndpoint.readRole(String id) |
UserRole |
UserRoleEndpoint.replaceRole(String id,
UserRole req) |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.domain.Page<UserRole> |
UserRoleEndpoint.readAllRoles(String query,
org.springframework.data.domain.Pageable page) |
Modifier and Type | Method and Description |
---|---|
UserRole |
UserRoleEndpoint.createRole(UserRole req) |
UserRole |
UserRoleEndpoint.replaceRole(String id,
UserRole req) |
Constructor and Description |
---|
UserRoleEndpoint(UserRoleService<UserRole> userRoleService) |
Modifier and Type | Method and Description |
---|---|
protected UserRole |
JpaUserRole.pruneArchivedReferences(org.modelmapper.spi.MappingContext<JpaUserRole,UserRole> mappingContext)
Used as the
TypeMap.setPostConverter(Converter) for JpaUserRole.fromMe() . |
Modifier and Type | Method and Description |
---|---|
protected UserRole |
JpaUserRole.pruneArchivedReferences(org.modelmapper.spi.MappingContext<JpaUserRole,UserRole> mappingContext)
Used as the
TypeMap.setPostConverter(Converter) for JpaUserRole.fromMe() . |
Modifier and Type | Class and Description |
---|---|
class |
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 Type | Method and Description |
---|---|
Map<String,Collection<UserRole>> |
DefaultPrivilegeService.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 Type | Method and Description |
---|---|
void |
DefaultPrivilegeService.PrivilegeHydrationResult.setRestrictedRoleWithAncestorsByRestrictedRoleId(Map<String,Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId) |
Constructor and Description |
---|
DefaultPrivilegeService(UserRoleService<UserRole> userRoleService,
UserRoleAncestryHydrationService roleAncestryHydrationService,
AuthorizationServerService<AuthorizationServer> serverService) |
PrivilegeHydrationResult(Set<UserPermissionRef> flatPermissions,
Set<Restriction> restrictions,
Set<RestrictedRole> restrictedRoles,
Map<String,Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId,
Set<RestrictedPermission> restrictedPermissions) |
Modifier and Type | Method and Description |
---|---|
Collection<UserRole> |
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.
|
Collection<UserRole> |
DefaultUserRoleAncestryHydrationService.getFlattenedWithAllAncestors(Collection<UserRole> roles) |
Collection<UserRole> |
UserRoleAncestryHydrationService.getFlattenedWithAllAncestorsAndThrowIfAnyFailed(Collection<UserRole> roles)
Same logic as documented for
UserRoleAncestryHydrationService.getFlattenedWithAllAncestors(Collection) except this
method throws an exception when there's one or more UserRoleAncestryHydrationResponse
not successful. |
Collection<UserRole> |
DefaultUserRoleAncestryHydrationService.getFlattenedWithAllAncestorsAndThrowIfAnyFailed(Collection<UserRole> roles) |
List<UserRole> |
UserRoleAncestryHydrationResponse.getRoleAndAncestors()
If the operation was
UserRoleAncestryHydrationResponse.successful , this will contain the role itself along with all of
its ancestors. |
protected UserRoleService<UserRole> |
DefaultUserRoleAncestryHydrationService.getUserRoleService() |
Map<String,Collection<UserRole>> |
UserRoleAncestryHydrationService.getWithAllAncestorsByRoleIdAndThrowIfAnyFailed(Collection<UserRole> roles)
Same logic as documented for
UserRoleAncestryHydrationService.getWithAllAncestors(Collection) except this method
throws an exception when there's one or more UserRoleAncestryHydrationResponse 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. |
Map<String,Collection<UserRole>> |
DefaultUserRoleAncestryHydrationService.getWithAllAncestorsByRoleIdAndThrowIfAnyFailed(Collection<UserRole> roles) |
Modifier and Type | Method and Description |
---|---|
protected 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 Type | Method and Description |
---|---|
protected 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) |
protected Set<String> |
DefaultUserRoleAncestryHydrationService.findInDataStoreAndReturnMissingIds(Set<String> roleIdsToFind,
Map<String,UserRole> cacheToAddFoundTo)
Searches the data store for roles matching the given
roleIdsToFind . |
Collection<UserRole> |
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.
|
Collection<UserRole> |
DefaultUserRoleAncestryHydrationService.getFlattenedWithAllAncestors(Collection<UserRole> roles) |
Collection<UserRole> |
UserRoleAncestryHydrationService.getFlattenedWithAllAncestorsAndThrowIfAnyFailed(Collection<UserRole> roles)
Same logic as documented for
UserRoleAncestryHydrationService.getFlattenedWithAllAncestors(Collection) except this
method throws an exception when there's one or more UserRoleAncestryHydrationResponse
not successful. |
Collection<UserRole> |
DefaultUserRoleAncestryHydrationService.getFlattenedWithAllAncestorsAndThrowIfAnyFailed(Collection<UserRole> roles) |
Map<String,UserRoleAncestryHydrationResponse> |
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.
|
Map<String,UserRoleAncestryHydrationResponse> |
DefaultUserRoleAncestryHydrationService.getWithAllAncestors(Collection<UserRole> roles) |
Map<String,Collection<UserRole>> |
UserRoleAncestryHydrationService.getWithAllAncestorsByRoleIdAndThrowIfAnyFailed(Collection<UserRole> roles)
Same logic as documented for
UserRoleAncestryHydrationService.getWithAllAncestors(Collection) except this method
throws an exception when there's one or more UserRoleAncestryHydrationResponse 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. |
Map<String,Collection<UserRole>> |
DefaultUserRoleAncestryHydrationService.getWithAllAncestorsByRoleIdAndThrowIfAnyFailed(Collection<UserRole> roles) |
Constructor and Description |
---|
DefaultUserRoleAncestryHydrationService(UserRoleService<UserRole> userRoleService) |
UserRoleAncestryHydrationResponse(boolean successful,
String errorMessage,
List<UserRole> roleAndAncestors) |
Modifier and Type | Method and Description |
---|---|
ImpersonationClaimsEnhancer |
ImpersonationConfiguration.defaultImpersonationClaimsEnhancer(AuthorizationServerProperties properties,
UserService<User> userService,
UserRoleService<UserRole> roleService,
UserRoleAncestryHydrationService roleAncestryHydrationService) |
Modifier and Type | Method and Description |
---|---|
protected UserRole |
AdminRolePersistenceHandler.buildUserRoleForCreate(String id,
AdminRole request,
Instant lastUpdated) |
Modifier and Type | Method and Description |
---|---|
protected UserRoleService<UserRole> |
AdminRolePersistenceHandler.getUserRoleService() |
Modifier and Type | Method and Description |
---|---|
protected void |
AdminRolePersistenceHandler.mapUpdatesFromRequest(AdminRole request,
UserRole target) |
protected void |
AdminRolePersistenceHandler.modifyForArchival(UserRole target)
Mimic what
UserRoleService.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 and Description |
---|
AdminRolePersistenceHandler(UserRoleService<UserRole> userRoleService,
com.fasterxml.jackson.databind.ObjectMapper mapper,
com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
Modifier and Type | Method and Description |
---|---|
AdminRolePersistenceHandler |
AuthDataUpdatePersistenceHandlerAutoConfiguration.adminRolePersistenceHandler(UserRoleService<UserRole> userRoleService,
com.fasterxml.jackson.databind.ObjectMapper mapper,
com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
Constructor and Description |
---|
DefaultImpersonationClaimsEnhancer(AuthorizationServerProperties properties,
UserService<User> userService,
UserRoleService<UserRole> userRoleService,
UserRoleAncestryHydrationService roleAncestryHydrationService) |
Modifier and Type | Method and Description |
---|---|
<D extends com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware & com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable> |
AuthServiceServiceAutoConfiguration.userRoleService(RoleRepository<D> roleRepository,
com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidatorManager validatorManager,
SimplePayloadMapper simplePayloadMapper) |
Modifier and Type | Method and Description |
---|---|
PrivilegeService |
AuthServiceServiceAutoConfiguration.restrictionService(UserRoleService<UserRole> userRoleService,
UserRoleAncestryHydrationService userRoleAncestryHydrationService,
AuthorizationServerService<AuthorizationServer> serverService) |
UserRoleAncestryHydrationService |
AuthServiceServiceAutoConfiguration.userRoleAncestryHydrationService(UserRoleService<UserRole> userRoleService) |
Copyright © 2021. All rights reserved.