public class ValidationService
extends java.lang.Object
Constructor and Description |
---|
ValidationService(ConfigServiceImpl configService, java.lang.Integer parallelValidation, java.lang.Boolean skipValidation)
constructor
|
Modifier and Type | Method and Description |
---|---|
Validator |
getValidator(ReferenceMap combinedDependency, java.util.Set<Ref> refsToValidate, boolean failOnCannotCreate) |
java.util.Map<Ref,Diagnostics> |
validate(java.lang.String session, java.util.Set<Ref> initialValidationSet, boolean failOnCannotCreate)
Validates the given set of resources with respect to a session.
|
public ValidationService(ConfigServiceImpl configService, java.lang.Integer parallelValidation, java.lang.Boolean skipValidation)
public java.util.Map<Ref,Diagnostics> validate(java.lang.String session, java.util.Set<Ref> initialValidationSet, boolean failOnCannotCreate) throws java.lang.Exception
session
- the session to perform the validation ininitialValidationSet
- initial set of resources to be considered for validation. The list may be expanded to include their ancestors if validateDependents argument is true. The initial set may contain references to resources that do not exist. Along with validateDependencies, such references can be used to validate resources that depend on the non-existing resource.failOnCannotCreate
- whether to fail validation if a resource ends up with a validation of severity Diagnostic.Severity.CannotCreate
java.lang.Exception
public Validator getValidator(ReferenceMap combinedDependency, java.util.Set<Ref> refsToValidate, boolean failOnCannotCreate)