Interface BusinessValidator<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default @NotNull Set<de.adorsys.psd2.xs2a.core.domain.TppMessageInformation> buildWarningMessages​(T object)
      Checks some object according to some business rules and creates warning messages if there is inconsistency in the logic
      @NotNull de.adorsys.psd2.xs2a.core.service.validator.ValidationResult validate​(T object)
      Validates some object according to some business rules
    • Method Detail

      • validate

        @NotNull
        @NotNull de.adorsys.psd2.xs2a.core.service.validator.ValidationResult validate​(@NotNull
                                                                                       T object)
        Validates some object according to some business rules
        Parameters:
        object - business object to be validated
        Returns:
        valid result if the object is valid, invalid result with appropriate error otherwise
      • buildWarningMessages

        @NotNull
        default @NotNull Set<de.adorsys.psd2.xs2a.core.domain.TppMessageInformation> buildWarningMessages​(@NotNull
                                                                                                          T object)
        Checks some object according to some business rules and creates warning messages if there is inconsistency in the logic
        Parameters:
        object - business object to be validated
        Returns:
        empty set if the object doesn't have inconsistencies, set of warning messages otherwise