Interface ProductReferenceTargetStrategy
-
- All Known Implementing Classes:
ApparelSizeProductReferenceTargetStrategy
,ChainProductReferenceTargetStrategy
,LoneLeafVariantProductReferenceTargetStrategy
public interface ProductReferenceTargetStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProductModel
getTarget(ProductModel sourceProduct, ProductReferenceModel reference)
Gets the target product for the given product reference.
-
-
-
Method Detail
-
getTarget
ProductModel getTarget(ProductModel sourceProduct, ProductReferenceModel reference)
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
-
-