Class BaseProductMerchandisingMetricRollupStrategy
java.lang.Object
com.hybris.merchandising.metric.rollup.strategies.impl.BaseProductMerchandisingMetricRollupStrategy
- All Implemented Interfaces:
MerchandisingMetricRollupStrategy
public class BaseProductMerchandisingMetricRollupStrategy
extends Object
implements MerchandisingMetricRollupStrategy
An implementation of a
MerchandisingMetricRollupStrategy that rolls up to the base product level.
For each base product one of its variant's will be chosen to attribute all other variants' scores to.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the display name of the rollup strategy.intgetOrder()Gets the relative order position of the given rollup strategy.getReportingGroup(InputDocument product, String fieldName) Gets the "rolled up" group that the given product should have its merchandising scores calculated against.
-
Constructor Details
-
BaseProductMerchandisingMetricRollupStrategy
public BaseProductMerchandisingMetricRollupStrategy()
-
-
Method Details
-
getReportingGroup
public String getReportingGroup(InputDocument product, String fieldName) throws MerchandisingMetricRollupException Description copied from interface:MerchandisingMetricRollupStrategyGets the "rolled up" group that the given product should have its merchandising scores calculated against.- Specified by:
getReportingGroupin interfaceMerchandisingMetricRollupStrategy- Parameters:
product- - the product to calculate the "rolled up" reporting group forfieldName- - "rolled up" variant field name.- Returns:
- - the "rolled up" reporting group for the given product
- Throws:
MerchandisingMetricRollupException- if the reporting group could not be calculated for the product
-
getName
Description copied from interface:MerchandisingMetricRollupStrategyGets the display name of the rollup strategy.- Specified by:
getNamein interfaceMerchandisingMetricRollupStrategy- Returns:
- the display name of the rollup strategy
-
getOrder
public int getOrder()Description copied from interface:MerchandisingMetricRollupStrategyGets the relative order position of the given rollup strategy. This is used to determine the position (relative to other strategies) of the strategy in the rollup strategy dropdown.- Specified by:
getOrderin interfaceMerchandisingMetricRollupStrategy- Returns:
- the relative order position relative to other rollup strategies
-