Class CMSTimeRestrictionEvaluator
java.lang.Object
de.hybris.platform.cms2.servicelayer.services.evaluator.impl.CMSTimeRestrictionEvaluator
- All Implemented Interfaces:
CMSRestrictionEvaluator<CMSTimeRestrictionModel>
public class CMSTimeRestrictionEvaluator
extends Object
implements CMSRestrictionEvaluator<CMSTimeRestrictionModel>
Evaluates a time restriction accordingly to current date.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(CMSTimeRestrictionModel timeRestriction, RestrictionData context) Main method that evaluates given restriction.protected SessionServiceprotected TimeServicevoidsetSessionService(SessionService sessionService) voidsetTimeService(TimeService timeService)
-
Constructor Details
-
CMSTimeRestrictionEvaluator
public CMSTimeRestrictionEvaluator()
-
-
Method Details
-
evaluate
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
-
setSessionService
-
getTimeService
-
setTimeService
-