Class BasicUserTargetFilterService
- java.lang.Object
- 
- com.broadleafcommerce.pricing.service.BasicUserTargetFilterService
 
- 
- All Implemented Interfaces:
- UserTargetFilterService
 
 @ConfigurationProperties(prefix="broadleaf.pricing.usertarget") public class BasicUserTargetFilterService extends Object implements UserTargetFilterService Implementations of this service provide support for reducing the user targets that are involved in pricing with the goal of increasing the caching ofPriceListrelated queries.- Author:
- Brian Polster (bpolster)
 
- 
- 
Constructor SummaryConstructors Constructor Description BasicUserTargetFilterService()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilterUserTargets(Set<UserTarget> targets, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Filters the passed in set ofUserTargetto include only those relevant for pricing.UserTargetFilterInfogetFilterInfo()voidsetFilterInfo(UserTargetFilterInfo filterInfo)protected booleanshouldRemove(Map<String,List<String>> targetValuesMap, UserTarget target)
 
- 
- 
- 
Method Detail- 
filterUserTargetspublic void filterUserTargets(Set<UserTarget> targets, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:UserTargetFilterServiceFilters the passed in set ofUserTargetto include only those relevant for pricing. Most implementations can benefit from cachingPriceListqueries needed by thePriceInfoService- Specified by:
- filterUserTargetsin interface- UserTargetFilterService
- Parameters:
- targets- Set of targets to filter.
- See Also:
- BasicUserTargetFilterService
 
 - 
shouldRemoveprotected boolean shouldRemove(Map<String,List<String>> targetValuesMap, UserTarget target) 
 - 
getFilterInfopublic UserTargetFilterInfo getFilterInfo() 
 - 
setFilterInfopublic void setFilterInfo(UserTargetFilterInfo filterInfo) 
 
- 
 
-