public class DeploymentImportServiceImpl extends Object implements DeploymentImportService
Constructor and Description |
---|
DeploymentImportServiceImpl() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties |
convertYamlToDeployment(String yaml,
RssPermissions rssPermissions)
Converts data from a YAML document to deployment properties.
|
com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties |
convertYamlToDeploymentPermissions(String yaml)
Converts data from a YAML document to deployment permissions properties.
|
com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties |
convertYamlToEnvironmentPermissions(String yaml)
Converts data from a YAML document to environment permissions properties.
|
DeploymentProject |
importDeployment(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties,
com.atlassian.user.User user,
RssPermissions rssPermissions,
boolean noChangesInProperties)
Validates exported deployment properties within Bamboo context (e.g.
|
void |
importDeploymentEnvironmentPermissions(com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties environmentPermission,
RssPermissions rssPermissions)
Import permissions for deployment environment.
|
void |
importDeploymentPermissions(com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties deploymentPermissions,
com.atlassian.bamboo.specs.api.model.permission.PermissionsProperties defaultEnvironmentPermissions,
List<com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties> environmentPermissions,
RssPermissions rssPermissions)
Import permissions in a bulk.
|
void |
importDeploymentPermissions(com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties deploymentPermission,
RssPermissions rssPermissions)
Import permissions for deployment project.
|
void |
validate(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties,
RssPermissions rssPermissions)
Validates exported deployment properties within Bamboo context (e.g.
|
@NotNull public com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties convertYamlToDeployment(@NotNull String yaml, @NotNull RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
DeploymentImportService
This method performs validation of YAML types and of the properties without Bamboo context (e.g. no database integrity is verified).
convertYamlToDeployment
in interface DeploymentImportService
yaml
- YAML String containing definition of deploymentcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not validYamlValidationException
- if the format of the YAML file is invalidpublic void validate(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, @NotNull RssPermissions rssPermissions) throws YamlValidationException
DeploymentImportService
validate
in interface DeploymentImportService
deploymentProperties
- deployment properties to importrssPermissions
- deployment projects which are allowed for modification; since 6.2YamlValidationException
- if validation failed@NotNull public com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties convertYamlToDeploymentPermissions(String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
DeploymentImportService
This method performs validation of YAML types and of the properties without Bamboo context (e.g. no database integrity is verified).
convertYamlToDeploymentPermissions
in interface DeploymentImportService
yaml
- YAML String containing definition of deployment permissionscom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not validYamlValidationException
- if the format of the YAML file is invalid@NotNull public com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties convertYamlToEnvironmentPermissions(String yaml) throws YamlValidationException
DeploymentImportService
This method performs validation of YAML types and of the properties without Bamboo context (e.g. no database integrity is verified).
convertYamlToEnvironmentPermissions
in interface DeploymentImportService
yaml
- YAML String containing definition of environment permissionsYamlValidationException
- if the format of the YAML file is invalid@NotNull public DeploymentProject importDeployment(@NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, @Nullable com.atlassian.user.User user, @NotNull RssPermissions rssPermissions, boolean noChangesInProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
DeploymentImportService
importDeployment
in interface DeploymentImportService
deploymentProperties
- deployment properties to importuser
- user invoking the importrssPermissions
- deployment projects which are allowed for modification; since 6.2com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failspublic void importDeploymentPermissions(@NotNull com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties deploymentPermission, @NotNull RssPermissions rssPermissions)
DeploymentImportService
importDeploymentPermissions
in interface DeploymentImportService
deploymentPermission
- deployment permissions to importpublic void importDeploymentEnvironmentPermissions(@NotNull com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties environmentPermission, @NotNull RssPermissions rssPermissions)
DeploymentImportService
importDeploymentEnvironmentPermissions
in interface DeploymentImportService
environmentPermission
- environment permissions to import.public void importDeploymentPermissions(@NotNull com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties deploymentPermissions, @NotNull com.atlassian.bamboo.specs.api.model.permission.PermissionsProperties defaultEnvironmentPermissions, @NotNull List<com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties> environmentPermissions, @NotNull RssPermissions rssPermissions)
DeploymentImportService
importDeploymentPermissions
in interface DeploymentImportService
deploymentPermissions
- deployment project permissions to importdefaultEnvironmentPermissions
- default environment permission will be used for all environments if they not specified at #environmentPermissions argumentenvironmentPermissions
- environment permissionsrssPermissions
- repository permissionsCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.