Interface UserTargetGenerationService
- All Known Implementing Classes:
DefaultUserTargetGenerationService
public interface UserTargetGenerationService
- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptionCreate and returnuser targets
for use in pricing and offer provider requests.default Set<UserTarget>
gatherUserTargetsFromContextAndAuth
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create and returnuser targets
for use in pricing and offer provider requests.
-
Method Details
-
gatherUserTargetsFromAuthentication
Set<UserTarget> gatherUserTargetsFromAuthentication()Create and returnuser targets
for use in pricing and offer provider requests. Uses the current authentication token to determine principal and details.- Returns:
- set of
user targets
for the current security context.
-
gatherUserTargetsFromContextAndAuth
default Set<UserTarget> gatherUserTargetsFromContextAndAuth(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create and returnuser targets
for use in pricing and offer provider requests. Uses context information to determine principal and details, otherwise uses the current authentication token.- Returns:
- set of
user targets
for the current context.
-