Class CMSCategoryRestrictionEvaluator
- java.lang.Object
-
- de.hybris.platform.cms2.servicelayer.services.evaluator.impl.CMSCategoryRestrictionEvaluator
-
- All Implemented Interfaces:
CMSRestrictionEvaluator<CMSCategoryRestrictionModel>
public class CMSCategoryRestrictionEvaluator extends java.lang.Object implements CMSRestrictionEvaluator<CMSCategoryRestrictionModel>
Evaluates a category restriction accordingly to context information.
-
-
Constructor Summary
Constructors Constructor Description CMSCategoryRestrictionEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(CMSCategoryRestrictionModel categoryRestrictionModel, RestrictionData context)Main method that evaluates given restriction.protected java.util.List<java.lang.String>getCategoryCodes(java.util.List<CategoryModel> categories)
-
-
-
Method Detail
-
evaluate
public boolean evaluate(CMSCategoryRestrictionModel categoryRestrictionModel, RestrictionData context)
Description copied from interface:CMSRestrictionEvaluatorMain method that evaluates given restriction.- Specified by:
evaluatein interfaceCMSRestrictionEvaluator<CMSCategoryRestrictionModel>- Parameters:
categoryRestrictionModel- given restrictioncontext- all context information required to evaluate restriction- Returns:
truewhen restriction is matched otherwisefalse
-
getCategoryCodes
protected java.util.List<java.lang.String> getCategoryCodes(java.util.List<CategoryModel> categories)
-
-