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.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    evaluate(T restriction, RestrictionData context)
    Main method that evaluates given restriction.
  • Method Details

    • evaluate

      boolean evaluate(T restriction, RestrictionData context)
      Main method that evaluates given restriction.
      Parameters:
      restriction - given restriction
      context - all context information required to evaluate restriction
      Returns:
      true when restriction is matched otherwise false