Interface MidpointFormValidator

All Known Implementing Classes:
InducedEntitlementsValidator, MidpointFormValidatorImpl

public interface MidpointFormValidator

A simple interface that aims to work as a custom validation plugin used in GUI. This plugin should be used BEFORE the changes made by user are sent for processing to model component.

This plugin serves as another form of validation process and can be used, when standard validation mechanism of GUI forms (usually aimed to validate one field at a time) is not enough. A classic use case may be a situation, when we need to examine the relationship between attributes edited via GUI before sending them for processing to model component.

Author:
shood
  • Method Details

    • validateObject

      Collection<SimpleValidationError> validateObject(PrismObject<? extends ObjectType> object, Collection<ObjectDelta<? extends ObjectType>> deltas)
      Performs a validation on an instance of object. Entire data of the object are accessible for validation purposes as well as a collection of ObjectDelta instances - the collection of current changes made by user prior to validation.
      Parameters:
      object - An object to validate
      deltas - A collection of ObjectDelta instances - a representation of changes made by user
      Returns:
      A collection of SimpleValidationError instances
    • validateAssignment

      Collection<SimpleValidationError> validateAssignment(AssignmentType assignment)
      Performs a validation on an instance of AssignmentType that represents an assignment in midPoint.
      Parameters:
      assignment - An object to validate
      Returns:
      A collection of SimpleValidationError instances