Class CMSCampaignRestrictionEvaluator
java.lang.Object
de.hybris.platform.cms2.servicelayer.services.evaluator.impl.CMSCampaignRestrictionEvaluator
- All Implemented Interfaces:
CMSRestrictionEvaluator<CMSCampaignRestrictionModel>
public class CMSCampaignRestrictionEvaluator
extends Object
implements CMSRestrictionEvaluator<CMSCampaignRestrictionModel>
Evaluates a campaign restriction by checking the campaigns that are configured in the restriction against the
campaigns which are active in the system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(CMSCampaignRestrictionModel cmsCampaignRestriction, RestrictionData context) Main method that evaluates given restriction.protected CampaignServicevoidsetCampaignService(CampaignService campaignService)
-
Constructor Details
-
CMSCampaignRestrictionEvaluator
public CMSCampaignRestrictionEvaluator()
-
-
Method Details
-
evaluate
public boolean evaluate(CMSCampaignRestrictionModel cmsCampaignRestriction, RestrictionData context) Description copied from interface:CMSRestrictionEvaluatorMain method that evaluates given restriction.- Specified by:
evaluatein interfaceCMSRestrictionEvaluator<CMSCampaignRestrictionModel>- Parameters:
cmsCampaignRestriction- given restrictioncontext- all context information required to evaluate restriction- Returns:
truewhen restriction is matched otherwisefalse
-
getCampaignService
-
setCampaignService
-