public final class NOTCondition extends Object implements Condition
true
if the
sub-condition is false
, or false
if
the sub-condition is true
.Constructor and Description |
---|
NOTCondition(Condition condition)
Creates a new logical NOT condition with the provided
sub-condition.
|
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 NOTCondition(Condition condition)
condition
- The sub-condition which will be inverted.public boolean evaluate(ManagementContext context, ManagedObject<?> managedObject) throws AuthorizationException, CommunicationException
evaluate
in interface Condition
context
- The client management context.managedObject
- The client managed object.true
if this condition is
satisfied.AuthorizationException
- If the condition could not be evaluated due to an
authorization problem.CommunicationException
- If the condition could not be evaluated due to an
communication problem.public boolean evaluate(ServerManagedObject<?> managedObject) throws org.forgerock.opendj.config.server.ConfigException
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 © 2010-2016 ForgeRock AS. All Rights Reserved.