Interface BambooYamlValidator
- All Known Implementing Classes:
BambooYamlValidatorImpl
public interface BambooYamlValidator
Validator for simplified Bamboo YAML documents.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validateDeployment
(@NotNull BambooYamlDeploymentDefinition deploymentDefinition, @NotNull List<com.atlassian.bamboo.specs.api.builders.plan.Plan> plansInYaml) Validates an instance ofBambooYamlDeploymentDefinition
.void
validateDeploymentPermissions
(@NotNull BambooYamlDeploymentPermissionsDefinition deploymentPermissionsDefinition) Validates an instance ofBambooYamlDeploymentPermissionsDefinition
.void
validatePlan
(@NotNull BambooYamlPlanDefinition planDefinition, @NotNull VcsRepositoryData repository) Validates an instance ofBambooYamlPlanDefinition
.void
validatePlanPermissions
(@NotNull BambooYamlPlanPermissionsDefinition planPermissionsDefinition) Validates an instance ofBambooYamlPlanPermissionsDefinition
.
-
Method Details
-
validatePlan
void validatePlan(@NotNull @NotNull BambooYamlPlanDefinition planDefinition, @NotNull @NotNull VcsRepositoryData repository) Validates an instance ofBambooYamlPlanDefinition
.- Parameters:
planDefinition
- YAML document to validaterepository
- repository string the YAML document- Throws:
YamlSpecsValidationException
- if the passed YAML document is invalid in any way
-
validatePlanPermissions
void validatePlanPermissions(@NotNull @NotNull BambooYamlPlanPermissionsDefinition planPermissionsDefinition) Validates an instance ofBambooYamlPlanPermissionsDefinition
.- Parameters:
planPermissionsDefinition
- YAML document to validate- Throws:
YamlSpecsValidationException
- if the passed YAML document is invalid in any way
-
validateDeployment
void validateDeployment(@NotNull @NotNull BambooYamlDeploymentDefinition deploymentDefinition, @NotNull @NotNull List<com.atlassian.bamboo.specs.api.builders.plan.Plan> plansInYaml) Validates an instance ofBambooYamlDeploymentDefinition
.- Parameters:
deploymentDefinition
- YAML document to validateplansInYaml
- plans which should be created from yaml file- Throws:
YamlSpecsValidationException
- if the passed YAML document is invalid in any way
-
validateDeploymentPermissions
void validateDeploymentPermissions(@NotNull @NotNull BambooYamlDeploymentPermissionsDefinition deploymentPermissionsDefinition) Validates an instance ofBambooYamlDeploymentPermissionsDefinition
.- Parameters:
deploymentPermissionsDefinition
- YAML document to validate- Throws:
YamlSpecsValidationException
- if the passed YAML document is invalid in any way
-