Interface BusinessValidator<T>

    • Method Detail

      • validate

        @NotNull
        @NotNull 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