Class AbstractAisTppValidator<T extends TppInfoProvider>
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.validator.ais.AbstractAisTppValidator<T>
-
- Type Parameters:
T- type of object to be checked
- All Implemented Interfaces:
BusinessValidator<T>
- Direct Known Subclasses:
AbstractAccountTppValidator,AbstractConsentTppValidator
public abstract class AbstractAisTppValidator<T extends TppInfoProvider> extends Object implements BusinessValidator<T>
Common validator for validating TPP in consents and executing request-specific business validation afterwards. Should be used for all AIS-related requests after consent creation.
-
-
Constructor Summary
Constructors Constructor Description AbstractAisTppValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract @NotNull ValidationResultexecuteBusinessValidation(T consentObject)Executes request-specific business validationprotected abstract @NotNull TppInfoValidatorgetTppInfoValidator()Returns appropriate TPP info validator for current request@NotNull ValidationResultvalidate(T object)Validates some object according to some business rules-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.adorsys.psd2.xs2a.service.validator.BusinessValidator
buildWarningMessages
-
-
-
-
Method Detail
-
validate
@NotNull public @NotNull ValidationResult validate(@NotNull T object)
Description copied from interface:BusinessValidatorValidates some object according to some business rules- Specified by:
validatein interfaceBusinessValidator<T extends TppInfoProvider>- Parameters:
object- business object to be validated- Returns:
- valid result if the object is valid, invalid result with appropriate error otherwise
-
executeBusinessValidation
@NotNull protected abstract @NotNull ValidationResult executeBusinessValidation(T consentObject)
Executes request-specific business validation- Parameters:
consentObject- consent object to be validated- Returns:
- valid result if the object is valid, invalid result with appropriate error otherwise
-
getTppInfoValidator
@NotNull protected abstract @NotNull TppInfoValidator getTppInfoValidator()
Returns appropriate TPP info validator for current request- Returns:
- TPP info validator
-
-