Class CMSCampaignRestrictionEvaluator
- java.lang.Object
-
- de.hybris.platform.cms2.servicelayer.services.evaluator.impl.CMSCampaignRestrictionEvaluator
-
- All Implemented Interfaces:
CMSRestrictionEvaluator<CMSCampaignRestrictionModel>
public class CMSCampaignRestrictionEvaluator extends java.lang.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 Constructor Description CMSCampaignRestrictionEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(CMSCampaignRestrictionModel cmsCampaignRestriction, RestrictionData context)Main method that evaluates given restriction.protected CampaignServicegetCampaignService()voidsetCampaignService(CampaignService campaignService)
-
-
-
Method Detail
-
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
protected CampaignService getCampaignService()
-
setCampaignService
public void setCampaignService(CampaignService campaignService)
-
-