Interface CMSRestrictionEvaluator<T extends AbstractRestrictionModel>
- All Known Implementing Classes:
ASMCMSUserGroupRestrictionEvaluator,AssistedServiceSessionRestrictionEvaluator,CMSActionRestrictionEvaluator,CMSBaseStoreTimeRestrictionEvaluator,CMSCampaignRestrictionEvaluator,CMSCartConfigurationRestrictionEvaluator,CMSCatalogRestrictionEvaluator,CMSCategoryRestrictionEvaluator,CMSProductRestrictionEvaluator,CMSSecurePortalRestrictionEvaluator,CMSTimeRestrictionEvaluator,CMSUiExperienceRestrictionEvaluator,CMSUserGroupRestrictionEvaluator,CMSUserRestrictionEvaluator,CMSVendorRestrictionEvaluator
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.
Each restriction type should have its own evaluator in order to calculate given restriction correctly.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(T restriction, RestrictionData context) Main method that evaluates given restriction.
-
Method Details
-
evaluate
Main method that evaluates given restriction.- Parameters:
restriction- given restrictioncontext- all context information required to evaluate restriction- Returns:
truewhen restriction is matched otherwisefalse
-