Class BambooYamlValidatorImpl
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.yaml.BambooYamlValidatorImpl
-
- All Implemented Interfaces:
BambooYamlValidator
public class BambooYamlValidatorImpl extends Object implements BambooYamlValidator
-
-
Constructor Summary
Constructors Constructor Description BambooYamlValidatorImpl(PlanManager planManager, ProjectManager projectManager, RssPermissionsService rssPermissionsService, ValidationService validationService, SecretEncryptionService secretEncryptionService, DocumentationLinkProvider documentationLinkProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 bambooYamlDefinition, @NotNull VcsRepositoryData repository)
Validates an instance ofBambooYamlPlanDefinition
.void
validatePlanPermissions(@NotNull BambooYamlPlanPermissionsDefinition planPermissionsDefinition)
Validates an instance ofBambooYamlPlanPermissionsDefinition
.
-
-
-
Constructor Detail
-
BambooYamlValidatorImpl
@Inject public BambooYamlValidatorImpl(PlanManager planManager, ProjectManager projectManager, RssPermissionsService rssPermissionsService, ValidationService validationService, SecretEncryptionService secretEncryptionService, DocumentationLinkProvider documentationLinkProvider)
-
-
Method Detail
-
validatePlan
public void validatePlan(@NotNull @NotNull BambooYamlPlanDefinition bambooYamlDefinition, @NotNull @NotNull VcsRepositoryData repository)
Description copied from interface:BambooYamlValidator
Validates an instance ofBambooYamlPlanDefinition
.- Specified by:
validatePlan
in interfaceBambooYamlValidator
- Parameters:
bambooYamlDefinition
- YAML document to validaterepository
- repository string the YAML document
-
validatePlanPermissions
public void validatePlanPermissions(@NotNull @NotNull BambooYamlPlanPermissionsDefinition planPermissionsDefinition)
Description copied from interface:BambooYamlValidator
Validates an instance ofBambooYamlPlanPermissionsDefinition
.- Specified by:
validatePlanPermissions
in interfaceBambooYamlValidator
- Parameters:
planPermissionsDefinition
- YAML document to validate
-
validateDeploymentPermissions
public void validateDeploymentPermissions(@NotNull @NotNull BambooYamlDeploymentPermissionsDefinition deploymentPermissionsDefinition)
Description copied from interface:BambooYamlValidator
Validates an instance ofBambooYamlDeploymentPermissionsDefinition
.- Specified by:
validateDeploymentPermissions
in interfaceBambooYamlValidator
- Parameters:
deploymentPermissionsDefinition
- YAML document to validate
-
validateDeployment
public void validateDeployment(@NotNull @NotNull BambooYamlDeploymentDefinition deploymentDefinition, @NotNull @NotNull List<com.atlassian.bamboo.specs.api.builders.plan.Plan> plansInYaml) throws YamlSpecsValidationException
Description copied from interface:BambooYamlValidator
Validates an instance ofBambooYamlDeploymentDefinition
.- Specified by:
validateDeployment
in interfaceBambooYamlValidator
- 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
-
-