Uses of Class
com.broadleafcommerce.promotion.offer.domain.UserTarget
Package
Description
-
Uses of UserTarget in com.broadleafcommerce.promotion.offer.domain
Modifier and TypeMethodDescriptionOfferAuditDetail.getUser()
The identifying info of the user that used the offer code.Modifier and TypeMethodDescriptionOffer.getUserTargets()
Set of users directly targeted by this offer.Modifier and TypeMethodDescriptionvoid
OfferAuditDetail.setUser
(UserTarget user) The identifying info of the user that used the offer code.Modifier and TypeMethodDescriptionvoid
Offer.setUserTargets
(Set<UserTarget> userTargets) Set of users directly targeted by this offer. -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.provider.jpa.domain
Modifier and TypeMethodDescriptionstatic org.modelmapper.Converter<UserTarget,
JpaUserTarget> JpaOffer.userTargetValuesToUserTargetEntities()
-
Uses of UserTarget in com.broadleafcommerce.promotion.offer.provider.jpa.repository
Modifier and TypeMethodDescriptionprotected jakarta.persistence.criteria.Predicate
JpaCustomizedOfferRepository.buildAutomaticOrCodeOrCustomerOffersPredicate
(Iterable<? extends UserTarget> userTargets, Iterable<String> offerIdsToFilterOn, Iterable<String> trackingIds, jakarta.persistence.criteria.CriteriaQuery<D> criteria, jakarta.persistence.criteria.CriteriaBuilder builder, jakarta.persistence.criteria.Root<D> topRoot, Map<String, Object> params) JpaCustomizedOfferRepository.findAllCustomerOffers
(Iterable<? extends UserTarget> userTargets, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) JpaCustomizedOfferRepository.findVoucherOffers
(Iterable<? extends UserTarget> userTargets, Iterable<String> offerIds, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.repository
Modifier and TypeMethodDescriptionCustomizedOfferRepository.findAllCustomerOffers
(Iterable<? extends UserTarget> userTargets, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all offers that have no user targets or contain the provided user targets.CustomizedOfferRepository.findVoucherOffers
(Iterable<? extends UserTarget> userTargets, Iterable<String> offerIds, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read all voucher offers whereOffer.isAutomaticallyConsidered()
is true,Offer.getCampaignTrackingIds()
intersects with the provided tracking ids,Offer.getOfferCodes()
intersects with the provided codes, or offers that contain the provided user targets. -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.service
Modifier and TypeMethodDescriptionDefaultOfferService.readAllCustomerOffersIn
(Iterable<UserTarget> userTargets, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferService.readAllCustomerOffersIn
(Iterable<UserTarget> userTargets, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all active offers whereOffer.userTargets
intersects with the providedUserTarget
s, or the offer has noUserTarget
sDefaultOfferService.readVoucherOffersIn
(Iterable<UserTarget> userTargets, Iterable<String> offerIds, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferService.readVoucherOffersIn
(Iterable<UserTarget> userTargets, Iterable<String> offerIdsForCodes, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all voucher offers based on the provided user targets, codes, or tracking ids. -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.service.engine.candidate
Modifier and TypeMethodDescriptionDefaultOfferUserService.buildUserTargetsForOfferCustomerContext
(Offer offer, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferUserService.buildUserTargetsForOfferCustomerContext
(Offer offer, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) For the provided customer information, check if there are no more usages for the provided offer available.protected UserTarget
DefaultOfferUserService.createUserTarget
(String targetValue, String targetType) protected UserTarget
DefaultOfferUserService.createUserTargetForOtherUserType
(String userId, CustomerFields customerFields, String maxUsesPerUserStrategy) Modifier and TypeMethodDescriptionDefaultOfferUserService.buildUserTargetsForCustomerContext
(com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext) OfferUserService.buildUserTargetsForCustomerContext
(com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext) Build and return a list ofUserTargets
based on the information provided in theCustomerContext
. -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.service.messaging.checkout
Modifier and TypeMethodDescriptionprotected UserTarget
RecordOfferUsageEventListener.buildUserTarget
(String customerId) Build theUserTarget
associated with the Offer Code's use