Class NoRollupMerchandisingMetricRollupStrategy
java.lang.Object
com.hybris.merchandising.metric.rollup.strategies.impl.NoRollupMerchandisingMetricRollupStrategy
- All Implemented Interfaces:
MerchandisingMetricRollupStrategy
public class NoRollupMerchandisingMetricRollupStrategy
extends Object
implements MerchandisingMetricRollupStrategy
Essentially a no-op implementation an
MerchandisingMetricRollupStrategy. No rollup is performed, so scores
will be calculated for every product variant individually.-
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
-
NoRollupMerchandisingMetricRollupStrategy
public NoRollupMerchandisingMetricRollupStrategy()
-
-
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
-