Interface ConstraintContext
- All Superinterfaces:
DependenciesDefinitionContext
,SchemaNodeContext
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method prevents, in the user interface, the constraint from being pre-validated dynamically when the related field is updated at user inputs.void
Specifies that the current constraint must never block an operation, even if it adds validation errors.void
Specifies that the validation result of the current constraint depends only on the local value of the underlying node.Methods inherited from interface com.orchestranetworks.schema.DependenciesDefinitionContext
addDependencyToInsertAndDelete, addDependencyToInsertAndDelete, addDependencyToInsertAndDeleteInOtherInstance, addDependencyToInsertAndDeleteInOtherInstance, addDependencyToInsertDeleteAndModify, addDependencyToInsertDeleteAndModify, addDependencyToInsertDeleteAndModifyInOtherInstance, addDependencyToInsertDeleteAndModifyInOtherInstance, addDependencyToInsertDeleteAndModifyInOtherInstance, addDependencyToInsertDeleteAndModifyInOtherInstance, addDependencyToModify, addDependencyToModify
Methods inherited from interface com.orchestranetworks.schema.SchemaNodeContext
addError, addError, addInfo, addMessage, addWarning, getSchemaNode
-
Method Details
-
setDependencyToLocalNode
void setDependencyToLocalNode()Specifies that the validation result of the current constraint depends only on the local value of the underlying node. Except for changes to this local value, the validation result will not be affected by any external events.For more information, see Dependencies and Validation section.
- Throws:
IllegalStateException
- if a value dependency has been added to this constraint or if the associated field is computed.
-
setBlocksCommitToNever
void setBlocksCommitToNever()Specifies that the current constraint must never block an operation, even if it adds validation errors.When submitting a form in the context of the user interface, the current constraint will not be checked on user input. This allows relaxing the default behavior which prevents from submitting erroneous values. The current constraint will be still checked after submitting a form, if the form is valid and modified values have been committed.
- Since:
- 5.5.0
-
disableAjaxPrevalidation
void disableAjaxPrevalidation()This method prevents, in the user interface, the constraint from being pre-validated dynamically when the related field is updated at user inputs. This can be useful to improve performance or to avoid unnecessary validation errors during form updates. However, the constraint will still be validated when the form is submitted or when loading the record in the view.
- Since:
- 6.2.2
-