Interface CMSRestrictionEvaluator<T extends AbstractRestrictionModel>
-
- All Known Implementing Classes:
ASMCMSUserGroupRestrictionEvaluator,AssistedServiceSessionRestrictionEvaluator,CampaignRestrictionEvaluator,CMSActionRestrictionEvaluator,CMSBaseStoreTimeRestrictionEvaluator,CMSCampaignRestrictionEvaluator,CMSCartConfigurationRestrictionEvaluator,CMSCatalogRestrictionEvaluator,CMSCategoryRestrictionEvaluator,CMSProductRestrictionEvaluator,CMSSecurePortalRestrictionEvaluator,CMSTimeRestrictionEvaluator,CMSUiExperienceRestrictionEvaluator,CMSUserGroupRestrictionEvaluator,CMSUserRestrictionEvaluator,CMSVendorRestrictionEvaluator,SOMCartConfigurationRestrictionEvaluator
public interface CMSRestrictionEvaluator<T extends AbstractRestrictionModel>Generic Interface for CMS restriction evaluators. Note:
Each restriction type should have its own evaluator in order to calculate given restriction correctly.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanevaluate(T restriction, RestrictionData context)Main method that evaluates given restriction.
-
-
-
Method Detail
-
evaluate
boolean evaluate(T restriction, RestrictionData context)
Main method that evaluates given restriction.- Parameters:
restriction- given restrictioncontext- all context information required to evaluate restriction- Returns:
truewhen restriction is matched otherwisefalse
-
-