Class DefaultUserTargetGenerationService
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.provider.external.security.DefaultUserTargetGenerationService
-
- All Implemented Interfaces:
UserTargetGenerationService
public class DefaultUserTargetGenerationService extends Object implements UserTargetGenerationService
- Author:
- Chad Harchar (charchar)
-
-
Constructor Summary
Constructors Constructor Description DefaultUserTargetGenerationService(com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<UserTarget>gatherCustomerSegmentTargets()protected Optional<UserTarget>gatherCustomerTarget()Set<UserTarget>gatherUserTargetsFromAuthentication()Create and returnuser targetsfor use in pricing and offer provider requests.protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtilsgetAuthenticationUtils()protected com.broadleafcommerce.common.extension.TypeFactorygetTypeFactory()
-
-
-
Method Detail
-
gatherUserTargetsFromAuthentication
public Set<UserTarget> gatherUserTargetsFromAuthentication()
Description copied from interface:UserTargetGenerationServiceCreate and returnuser targetsfor use in pricing and offer provider requests. Uses the current authentication token to determine principal and details.- Specified by:
gatherUserTargetsFromAuthenticationin interfaceUserTargetGenerationService- Returns:
- set of
user targetsfor the current security context.
-
gatherCustomerTarget
protected Optional<UserTarget> gatherCustomerTarget()
-
gatherCustomerSegmentTargets
protected Set<UserTarget> gatherCustomerSegmentTargets()
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
getAuthenticationUtils
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils()
-
-