Class NOTCondition
- java.lang.Object
-
- org.forgerock.opendj.config.conditions.NOTCondition
-
-
Constructor Summary
Constructors Constructor Description NOTCondition(Condition condition)Creates a new logical NOT condition with the provided sub-condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(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.voidinitialize(AbstractManagedObjectDefinition<?,?> d)Initializes this condition.
-
-
-
Constructor Detail
-
NOTCondition
public NOTCondition(Condition condition)
Creates a new logical NOT condition with the provided sub-condition.- Parameters:
condition- The sub-condition which will be inverted.
-
-
Method Detail
-
evaluate
public boolean evaluate(ManagementContext context, ManagedObject<?> managedObject) throws org.forgerock.opendj.ldap.LdapException
Description copied from interface:ConditionEvaluates this condition against the provided client managed object.
-
evaluate
public boolean evaluate(ServerManagedObject<?> managedObject) throws ConfigException
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
public void initialize(AbstractManagedObjectDefinition<?,?> d) throws Exception
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.
-
-