Uses of Class
com.broadleafcommerce.promotion.offer.domain.UserTarget
-
-
Uses of UserTarget in com.broadleafcommerce.promotion.offer.domain
Methods in com.broadleafcommerce.promotion.offer.domain that return UserTarget Modifier and Type Method Description UserTargetOfferAuditDetail. getUser()The identifying info of the user that used the related offer.Methods in com.broadleafcommerce.promotion.offer.domain that return types with arguments of type UserTarget Modifier and Type Method Description Set<UserTarget>Offer. getUserTargets()Set of users directly targeted by this offer.Methods in com.broadleafcommerce.promotion.offer.domain with parameters of type UserTarget Modifier and Type Method Description voidOfferAuditDetail. setUser(UserTarget user)The identifying info of the user that used the related offer.Method parameters in com.broadleafcommerce.promotion.offer.domain with type arguments of type UserTarget Modifier and Type Method Description voidOffer. setUserTargets(Set<UserTarget> userTargets)Set of users directly targeted by this offer. -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.provider.jpa.domain
Methods in com.broadleafcommerce.promotion.offer.provider.jpa.domain that return types with arguments of type UserTarget Modifier and Type Method Description static org.modelmapper.Converter<UserTarget,JpaUserTarget>JpaOffer. userTargetValuesToUserTargetEntities() -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.provider.jpa.repository
Methods in com.broadleafcommerce.promotion.offer.provider.jpa.repository with parameters of type UserTarget Modifier and Type Method Description LongJpaCustomizedOfferAuditDetailRepository. countByOfferIdAndUser(String offerId, UserTarget userTarget, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)LongJpaCustomizedOfferAuditDetailRepository. countByOfferIdAndUserAndBetweenDates(String offerId, UserTarget userTarget, Instant startDate, Instant endDate, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Method parameters in com.broadleafcommerce.promotion.offer.provider.jpa.repository with type arguments of type UserTarget Modifier and Type Method Description protected javax.persistence.criteria.PredicateJpaCustomizedOfferRepository. buildAutomaticOrCodeOrCustomerOffersPredicate(Iterable<? extends UserTarget> userTargets, Iterable<String> codes, Iterable<String> trackingIds, javax.persistence.criteria.CriteriaQuery<JpaOffer> criteria, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Root<JpaOffer> topRoot, Map<String,Object> params)Stream<D>JpaCustomizedOfferRepository. findAllCustomerOffers(Iterable<? extends UserTarget> userTargets, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Stream<D>JpaCustomizedOfferRepository. findAutomaticAndCodeAndCustomerOffers(Iterable<? extends UserTarget> userTargets, Iterable<String> codes, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Stream<D>JpaCustomizedOfferRepository. findVoucherOffers(Iterable<? extends UserTarget> userTargets, Iterable<String> codes, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.repository
Methods in com.broadleafcommerce.promotion.offer.repository with parameters of type UserTarget Modifier and Type Method Description LongCustomizedOfferAuditDetailRepository. countByOfferIdAndUser(String offerId, UserTarget userTarget, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Count allOfferAuditDetailrecords that relate to the provided offer id and user target.LongCustomizedOfferAuditDetailRepository. countByOfferIdAndUserAndBetweenDates(String offerId, UserTarget userTarget, Instant startDate, Instant endDate, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Count allOfferAuditDetailrecords that relate to the provided offer id and user target and that fall between the given dates.Method parameters in com.broadleafcommerce.promotion.offer.repository with type arguments of type UserTarget Modifier and Type Method Description Stream<D>CustomizedOfferRepository. 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.Stream<D>CustomizedOfferRepository. findAutomaticAndCodeAndCustomerOffers(Iterable<? extends UserTarget> userTargets, Iterable<String> codes, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Read all offers whereOffer#getAutomaticallyConsideredis true,Offer.getCampaignTrackingIds()intersects with the provided tracking ids,Offer.getSharedCodes()intersects with the provided codes, or offers that contain the provided user targets.Stream<D>CustomizedOfferRepository. findVoucherOffers(Iterable<? extends UserTarget> userTargets, Iterable<String> codes, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Read all voucher offers whereOffer#getAutomaticallyConsideredis true,Offer.getCampaignTrackingIds()intersects with the provided tracking ids,Offer.getSharedCodes()intersects with the provided codes, or offers that contain the provided user targets. -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.service
Methods in com.broadleafcommerce.promotion.offer.service with parameters of type UserTarget Modifier and Type Method Description LongDefaultOfferAuditDetailService. countByOfferAndUser(String offerId, UserTarget userTarget, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)LongOfferAuditDetailService. countByOfferAndUser(String offerId, UserTarget userTarget, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Count allOfferAuditDetailrecords that relate to the provided offer id and user target.LongDefaultOfferAuditDetailService. countByOfferAndUserAndBetweenDates(String offerId, UserTarget userTarget, Instant startDate, Instant endDate, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)LongOfferAuditDetailService. countByOfferAndUserAndBetweenDates(String offerId, UserTarget userTarget, Instant startDate, Instant endDate, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Count allOfferAuditDetailrecords that relate to the provided offer id and user target and that fall between the given dates.Method parameters in com.broadleafcommerce.promotion.offer.service with type arguments of type UserTarget Modifier and Type Method Description Stream<P>DefaultOfferService. readAllCustomerOffersIn(Iterable<UserTarget> userTargets, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Stream<P>OfferService. readAllCustomerOffersIn(Iterable<UserTarget> userTargets, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Reads all active offers whereOffer.userTargetsintersects with the providedUserTargets, or the offer has noUserTargetsStream<P>DefaultOfferService. readAutomaticAndCodeAndCustomerOffersIn(Iterable<UserTarget> userTargets, Iterable<String> codes, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Stream<P>OfferService. readAutomaticAndCodeAndCustomerOffersIn(Iterable<UserTarget> userTargets, Iterable<String> codes, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Reads all active offers whereOffer.userTargetsintersects with the providedUserTargets,Offer.sharedCodesintersects with the provided codes,Offer.campaignTrackingIdsintersects with the provided tracking ids, orOffer.automaticallyConsideredis true.Stream<P>DefaultOfferService. readVoucherOffersIn(Iterable<UserTarget> userTargets, Iterable<String> codes, Iterable<String> trackingIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Stream<P>OfferService. readVoucherOffersIn(Iterable<UserTarget> userTargets, Iterable<String> codes, 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
Methods in com.broadleafcommerce.promotion.offer.service.engine.candidate that return UserTarget Modifier and Type Method Description protected UserTargetDefaultOfferUserService. createUserTarget(String targetValue, String targetType)protected UserTargetDefaultOfferUserService. createUserTargetForOtherUserType(String userId, CustomerFields customerFields, String maxUsesPerUserStrategy)Methods in com.broadleafcommerce.promotion.offer.service.engine.candidate that return types with arguments of type UserTarget Modifier and Type Method Description Set<UserTarget>DefaultOfferUserService. buildUserTargetsForCustomerContext(com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext)Set<UserTarget>OfferUserService. buildUserTargetsForCustomerContext(com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext)Build and return a list ofUserTargetsbased on the information provided in theCustomerContext.Methods in com.broadleafcommerce.promotion.offer.service.engine.candidate with parameters of type UserTarget Modifier and Type Method Description protected LongDefaultOfferUserService. getCountMaxUserUses(Offer offer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, UserTarget userTarget) -
Uses of UserTarget in com.broadleafcommerce.promotion.offer.service.messaging.checkout
Methods in com.broadleafcommerce.promotion.offer.service.messaging.checkout that return UserTarget Modifier and Type Method Description protected UserTargetRecordOfferUsageEventListener. buildUserTarget(String customerId)Build theUserTargetassociated with the Offer Code's use
-