public class CMSTimeRestrictionEvaluator extends Object implements CMSRestrictionEvaluator<CMSTimeRestrictionModel>
| Constructor and Description |
|---|
CMSTimeRestrictionEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(CMSTimeRestrictionModel timeRestriction,
RestrictionData context)
Main method that evaluates given restriction.
|
void |
setSessionService(SessionService sessionService) |
public boolean evaluate(CMSTimeRestrictionModel timeRestriction, RestrictionData context)
CMSRestrictionEvaluatorevaluate in interface CMSRestrictionEvaluator<CMSTimeRestrictionModel>timeRestriction - given restrictioncontext - all context information required to evaluate restrictiontrue when restriction is matched otherwise falsepublic void setSessionService(SessionService sessionService)
Copyright © 2017 SAP SE. All Rights Reserved.