Class CMSProductRestrictionEvaluator
java.lang.Object
de.hybris.platform.cms2.servicelayer.services.evaluator.impl.CMSProductRestrictionEvaluator
- All Implemented Interfaces:
CMSRestrictionEvaluator<CMSProductRestrictionModel>
public class CMSProductRestrictionEvaluator
extends Object
implements CMSRestrictionEvaluator<CMSProductRestrictionModel>
Evaluates a product restriction accordingly to context information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(CMSProductRestrictionModel productRestrictionModel, RestrictionData context) Main method that evaluates given restriction.
-
Constructor Details
-
CMSProductRestrictionEvaluator
public CMSProductRestrictionEvaluator()
-
-
Method Details
-
evaluate
public boolean evaluate(CMSProductRestrictionModel productRestrictionModel, RestrictionData context) Description copied from interface:CMSRestrictionEvaluatorMain method that evaluates given restriction.- Specified by:
evaluatein interfaceCMSRestrictionEvaluator<CMSProductRestrictionModel>- Parameters:
productRestrictionModel- given restrictioncontext- all context information required to evaluate restriction- Returns:
truewhen restriction is matched otherwisefalse
-