Class PlanregistratieValidator

java.lang.Object
nl.b3p.planmonitorwonen.api.validation.PlanregistratieValidator

public final class PlanregistratieValidator extends Object
Validates a planregistratie received from a client. Only the fields of the basisset 2.0 and the fields needed to identify and authorize the planregistratie are required, the provincie specific fields are optional because planregistraties may be delivered by software of a gemeente. Optional fields left out or null are not filled in, but when filled in the value must be valid.

Whether the geometry lies within the gemeente is checked by PlanregistratieCompletionService because it needs the database.

  • Field Details

  • Method Details

    • validate

      public static List<ValidationError> validate(Planregistratie planregistratie, EnumValues enumValues)
      Returns the validation errors of the planregistratie, empty when valid.
      Parameters:
      enumValues - the values of the enum types in the database