Interface Condition
-
- All Known Implementing Classes:
ContainsCondition,IsPresentCondition,NotCondition,OrCondition
public interface ConditionAn interface for evaluating conditions.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
initialize
void initialize(AbstractManagedObjectDefinition<?,?> d) throws Exception
Initializes this condition.- Parameters:
d- The abstract managed object definition associated with this condition.- Throws:
Exception- If this condition could not be initialized.
-
evaluate
boolean evaluate(ManagementContext context, ManagedObject<?> managedObject) throws LdapException
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
boolean evaluate(ServerManagedObject<?> managedObject) throws ConfigException
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.
-
-