Class ContainsCondition
- java.lang.Object
-
- org.forgerock.opendj.config.conditions.ContainsCondition
-
-
Constructor Summary
Constructors Constructor Description ContainsCondition(String propertyName, String stringValue)Creates a new contains value 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.PropertyDefinition<?>getPropertyDefinition()Returns the property definition associated with this condition.StringgetPropertyValueAsString()Returns the value that must be set for this condition to be fulfilled.voidinitialize(AbstractManagedObjectDefinition<?,?> d)Initializes this condition.voidsetPropertyValue(ManagedObject<?> managedObject)Modifies the provided managed object so that it has the property value associated with this condition.StringtoString()
-
-
-
Method Detail
-
evaluate
public boolean evaluate(ManagementContext context, ManagedObject<?> managedObject)
Description copied from interface:ConditionEvaluates this condition against the provided client managed object.
-
evaluate
public boolean evaluate(ServerManagedObject<?> managedObject)
Description copied from interface:ConditionEvaluates this condition against the provided server managed object.
-
setPropertyValue
public void setPropertyValue(ManagedObject<?> managedObject)
Modifies the provided managed object so that it has the property value associated with this condition.- Parameters:
managedObject- The managed object.
-
initialize
public void initialize(AbstractManagedObjectDefinition<?,?> d)
Description copied from interface:ConditionInitializes this condition.- Specified by:
initializein interfaceCondition- Parameters:
d- The abstract managed object definition associated with this condition.
-
getPropertyDefinition
public PropertyDefinition<?> getPropertyDefinition()
Returns the property definition associated with this condition.- Returns:
- the property definition associated with this condition.
-
getPropertyValueAsString
public String getPropertyValueAsString()
Returns the value that must be set for this condition to be fulfilled.- Returns:
- the value that must be set for this condition to be fulfilled.
-
-