Class TppNotificationDataValidator

  • All Implemented Interfaces:
    BusinessValidator<de.adorsys.psd2.xs2a.core.tpp.TppNotificationData>

    @Component
    public class TppNotificationDataValidator
    extends Object
    implements BusinessValidator<de.adorsys.psd2.xs2a.core.tpp.TppNotificationData>
    • Constructor Detail

      • TppNotificationDataValidator

        public TppNotificationDataValidator()
    • Method Detail

      • validate

        @NotNull
        public @NotNull ValidationResult validate​(@NotNull
                                                  @NotNull de.adorsys.psd2.xs2a.core.tpp.TppNotificationData tppNotificationData)
        Description copied from interface: BusinessValidator
        Validates some object according to some business rules
        Specified by:
        validate in interface BusinessValidator<de.adorsys.psd2.xs2a.core.tpp.TppNotificationData>
        Parameters:
        tppNotificationData - business object to be validated
        Returns:
        valid result if the object is valid, invalid result with appropriate error otherwise
      • buildWarningMessages

        @NotNull
        public @NotNull Set<de.adorsys.psd2.xs2a.core.domain.TppMessageInformation> buildWarningMessages​(@NotNull
                                                                                                         @NotNull de.adorsys.psd2.xs2a.core.tpp.TppNotificationData tppNotificationData)
        Description copied from interface: BusinessValidator
        Checks some object according to some business rules and creates warning messages if there is inconsistency in the logic
        Specified by:
        buildWarningMessages in interface BusinessValidator<de.adorsys.psd2.xs2a.core.tpp.TppNotificationData>
        Parameters:
        tppNotificationData - business object to be validated
        Returns:
        empty set if the object doesn't have inconsistencies, set of warning messages otherwise