Class TimeOfDay
- java.lang.Object
-
- org.opends.server.authorization.dseecompat.TimeOfDay
-
- All Implemented Interfaces:
KeywordBindRule
public final class TimeOfDay extends Object implements KeywordBindRule
This class represents the timeofday keyword in a bind rule.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeOfDay
decode(String expr, org.opends.server.authorization.dseecompat.EnumBindRuleType type)
Decodes a string representation of a timeofday bind rule expression.EnumEvalResult
evaluate(AciEvalContext evalCtx)
Evaluate a bind rule using the passed in context.String
toString()
void
toString(StringBuilder buffer)
Appends a string representation of this object to the provided buffer.
-
-
-
Method Detail
-
decode
public static TimeOfDay decode(String expr, org.opends.server.authorization.dseecompat.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)
Description copied from interface:KeywordBindRule
Evaluate a bind rule using the passed in context.- Specified by:
evaluate
in interfaceKeywordBindRule
- Parameters:
evalCtx
- An evaluation context to use in the evaluation.- Returns:
- An enumeration evaluation result.
-
toString
public void toString(StringBuilder buffer)
Description copied from interface:KeywordBindRule
Appends a string representation of this object to the provided buffer.- Specified by:
toString
in interfaceKeywordBindRule
- Parameters:
buffer
- The buffer into which a string representation of this object should be appended.
-
-