Class CMSTimeRestrictionEvaluator
- java.lang.Object
-
- de.hybris.platform.cms2.servicelayer.services.evaluator.impl.CMSTimeRestrictionEvaluator
-
- All Implemented Interfaces:
CMSRestrictionEvaluator<CMSTimeRestrictionModel>
public class CMSTimeRestrictionEvaluator extends java.lang.Object implements CMSRestrictionEvaluator<CMSTimeRestrictionModel>
Evaluates a time restriction accordingly to current date.
-
-
Constructor Summary
Constructors Constructor Description CMSTimeRestrictionEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(CMSTimeRestrictionModel timeRestriction, RestrictionData context)Main method that evaluates given restriction.protected SessionServicegetSessionService()protected TimeServicegetTimeService()voidsetSessionService(SessionService sessionService)voidsetTimeService(TimeService timeService)
-
-
-
Method Detail
-
evaluate
public boolean evaluate(CMSTimeRestrictionModel timeRestriction, RestrictionData context)
Description copied from interface:CMSRestrictionEvaluatorMain method that evaluates given restriction.- Specified by:
evaluatein interfaceCMSRestrictionEvaluator<CMSTimeRestrictionModel>- Parameters:
timeRestriction- given restrictioncontext- all context information required to evaluate restriction- Returns:
truewhen restriction is matched otherwisefalse
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getTimeService
protected TimeService getTimeService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
-