public class DefaultUserTargetGenerationService extends Object implements UserTargetGenerationService
Constructor and Description |
---|
DefaultUserTargetGenerationService(com.broadleafcommerce.common.extension.TypeFactory typeFactory,
com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils) |
Modifier and Type | Method and Description |
---|---|
protected Set<UserTarget> |
gatherCustomerSegmentTargets() |
protected Optional<UserTarget> |
gatherCustomerTarget() |
Set<UserTarget> |
gatherUserTargetsFromAuthentication()
Create and return
user targets for use in pricing and offer provider
requests. |
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils |
getAuthenticationUtils() |
protected com.broadleafcommerce.common.extension.TypeFactory |
getTypeFactory() |
public DefaultUserTargetGenerationService(com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils)
public Set<UserTarget> gatherUserTargetsFromAuthentication()
UserTargetGenerationService
user targets
for use in pricing and offer provider
requests. Uses the current authentication token to determine principal and details.gatherUserTargetsFromAuthentication
in interface UserTargetGenerationService
user targets
for the current security context.protected Optional<UserTarget> gatherCustomerTarget()
protected Set<UserTarget> gatherCustomerSegmentTargets()
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils()
Copyright © 2021. All rights reserved.