Class OrCondition
java.lang.Object
org.forgerock.opendj.config.conditions.OrCondition
- All Implemented Interfaces:
Condition
A condition which evaluates to
false if and only if all of its
sub-conditions are false.-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(ManagementContext context, ManagedObject<?> managedObject) Evaluates this condition against the provided client managed object.booleanevaluate(ServerManagedObject<?> managedObject) Evaluates this condition against the provided server managed object.voidInitializes this condition.toString()
-
Method Details
-
evaluate
public boolean evaluate(ManagementContext context, ManagedObject<?> managedObject) throws LdapException Description copied from interface:ConditionEvaluates this condition against the provided client managed object.- Specified by:
evaluatein interfaceCondition- Parameters:
context- The client management context.managedObject- The client managed object.- Returns:
- Returns
trueif this condition is satisfied. - Throws:
LdapException- If the condition could not be evaluated.
-
evaluate
Description copied from interface:ConditionEvaluates this condition against the provided server managed object.- Specified by:
evaluatein interfaceCondition- Parameters:
managedObject- The server managed object.- Returns:
- Returns
trueif this condition is satisfied. - Throws:
ConfigException- If the condition could not be evaluated due to an unexpected configuration exception.
-
initialize
Description copied from interface:ConditionInitializes this condition.- Specified by:
initializein interfaceCondition- Parameters:
d- The abstract managed object definition associated with this condition.- Throws:
Exception- If this condition could not be initialized.
-
toString
-