@Service public class Xs2aValidator extends Object
ContextMode.MOCK_REAL_CALLS collects
all violations into the context to emit message that requires user to provide inputs that fix the violations.
For ContextMode.REAL_CALLS causes Runtime error
if API object fails the validation.| Constructor and Description |
|---|
Xs2aValidator(javax.validation.Validator validator,
List<? extends ExternalValidationModeDeclaration> externalValidationMode) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
validate(org.flowable.engine.delegate.DelegateExecution exec,
Xs2aContext context,
Class<T> invokerClass,
Object... dtosToValidate)
Validates that all parameters necessary to perform ASPSP API call is present.
|
public Xs2aValidator(javax.validation.Validator validator,
List<? extends ExternalValidationModeDeclaration> externalValidationMode)
public <T> void validate(org.flowable.engine.delegate.DelegateExecution exec,
Xs2aContext context,
Class<T> invokerClass,
Object... dtosToValidate)
ContextMode.MOCK_REAL_CALLS
reports all violations into BaseContext.getViolations() (merging with already existing ones)exec - Current execution that will be updated with violations if present.dtosToValidate - ASPSP API call parameter objects to validate.Copyright © 2020. All rights reserved.