org.opends.server.authorization.dseecompat
Class TimeOfDay

java.lang.Object
  extended by org.opends.server.authorization.dseecompat.TimeOfDay
All Implemented Interfaces:
KeywordBindRule

public class TimeOfDay
extends java.lang.Object
implements KeywordBindRule

This class represents the timeofday keyword in a bind rule.


Method Summary
static TimeOfDay decode(java.lang.String expr, EnumBindRuleType type)
          Decodes a string representation of a timeofday bind rule expression.
 EnumEvalResult evaluate(AciEvalContext evalCtx)
          Evaluates the timeofday bind rule using the evaluation context passed into the method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static TimeOfDay decode(java.lang.String expr,
                               EnumBindRuleType type)
                        throws AciException
Decodes a string representation of a timeofday bind rule expression.

Parameters:
expr - A string representation of the expression.
type - An enumeration of the type of the expression.
Returns:
A TimeOfDay class representing the expression.
Throws:
AciException - If the expression is invalid.

evaluate

public EnumEvalResult evaluate(AciEvalContext evalCtx)
Evaluates the timeofday bind rule using the evaluation context passed into the method.

Specified by:
evaluate in interface KeywordBindRule
Parameters:
evalCtx - The evaluation context to use for the evaluation.
Returns:
An enumeration result representing the result of the evaluation.