Class LoneLeafVariantProductReferenceTargetStrategy
java.lang.Object
de.hybris.platform.commerceservices.strategies.impl.LoneLeafVariantProductReferenceTargetStrategy
- All Implemented Interfaces:
ProductReferenceTargetStrategy
public class LoneLeafVariantProductReferenceTargetStrategy
extends Object
implements ProductReferenceTargetStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProductModelfindSingleLeafVariant(ProductModel currentProduct) getTarget(ProductModel sourceProduct, ProductReferenceModel reference) Gets the target product for the given product reference.
-
Constructor Details
-
LoneLeafVariantProductReferenceTargetStrategy
public LoneLeafVariantProductReferenceTargetStrategy()
-
-
Method Details
-
getTarget
Description copied from interface:ProductReferenceTargetStrategyGets 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.- Specified by:
getTargetin interfaceProductReferenceTargetStrategy- Parameters:
sourceProduct- the source productreference- the product reference- Returns:
- the target product
-
findSingleLeafVariant
-