Interface Condition
- All Known Implementing Classes:
ContainsCondition,IsPresentCondition,NotCondition,OrCondition
public interface Condition
An interface for evaluating conditions.
-
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.
-
Method Details
-
initialize
Initializes this condition.- Parameters:
d- The abstract managed object definition associated with this condition.- Throws:
Exception- If this condition could not be initialized.
-
evaluate
Evaluates this condition against the provided client managed object.- 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
Evaluates this condition against the provided server managed object.- 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.
-