Interface ProductReferenceTargetStrategy
- All Known Implementing Classes:
ApparelSizeProductReferenceTargetStrategy,ChainProductReferenceTargetStrategy,LoneLeafVariantProductReferenceTargetStrategy
public interface ProductReferenceTargetStrategy
-
Method Summary
Modifier and TypeMethodDescriptiongetTarget(ProductModel sourceProduct, ProductReferenceModel reference) Gets the target product for the given product reference.
-
Method Details
-
getTarget
Gets the target product for the given product reference. Should return either the a proposed target product or null if this strategy cannot offer a better target than the default.- Parameters:
sourceProduct- the source productreference- the product reference- Returns:
- the target product
-