public final class ORCondition extends Object implements Condition
false
if and only if all of its
sub-conditions are false
.Constructor and Description |
---|
ORCondition(Condition... conditions)
Creates a new logical OR condition with the provided sub-conditions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(ManagementContext context,
ManagedObject<?> managedObject)
Evaluates this condition against the provided client managed object.
|
boolean |
evaluate(ServerManagedObject<?> managedObject)
Evaluates this condition against the provided server managed object.
|
void |
initialize(AbstractManagedObjectDefinition<?,?> d)
Initializes this condition.
|
public ORCondition(Condition... conditions)
conditions
- The sub-conditions which will be combined using a logical OR.public boolean evaluate(ManagementContext context, ManagedObject<?> managedObject) throws org.forgerock.opendj.ldap.LdapException
public boolean evaluate(ServerManagedObject<?> managedObject) throws ConfigException
evaluate
in interface Condition
managedObject
- The server managed object.true
if this condition is satisfied.ConfigException
- If the condition could not be evaluated due to an unexpected
configuration exception.public void initialize(AbstractManagedObjectDefinition<?,?> d) throws Exception
initialize
in interface Condition
d
- The abstract managed object definition associated with this
condition.Exception
- If this condition could not be initialized.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.