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 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.PropertyDefinition<?>
getPropertyDefinition()
Returns the property definition associated with this condition.String
getPropertyValueAsString()
Returns the value that must be set for this condition to be fulfilled.void
initialize(AbstractManagedObjectDefinition<?,?> d)
Initializes this condition.void
setPropertyValue(ManagedObject<?> managedObject)
Modifies the provided managed object so that it has the property value associated with this condition.String
toString()
-
-
-
Method Detail
-
evaluate
public boolean evaluate(ManagementContext context, ManagedObject<?> managedObject)
Description copied from interface:Condition
Evaluates this condition against the provided client managed object.
-
evaluate
public boolean evaluate(ServerManagedObject<?> managedObject)
Description copied from interface:Condition
Evaluates 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:Condition
Initializes this condition.- Specified by:
initialize
in 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.
-
-