public class EnvironmentCustomConfigServiceImpl extends Object implements EnvironmentCustomConfigService
Constructor and Description |
---|
EnvironmentCustomConfigServiceImpl(EnvironmentCustomConfigDao environmentCustomConfigDao,
EnvironmentDao environmentDao,
EnvironmentCustomConfigJsonConverter environmentCustomConfigJsonConverter,
DockerPipelineValidationService dockerPipelineValidationService,
TaskManager taskManager) |
Modifier and Type | Method and Description |
---|---|
DockerPipelineConfiguration |
getDockerPipelineConfiguration(long environmentId)
Returns Docker pipeline configuration for a particular environment.
|
Map<String,Map<String,String>> |
getEnvironmentPluginConfig(long environmentId)
Returns plugins configuration map of given environment.
|
void |
saveDockerPipelineConfiguration(DockerPipelineConfiguration dockerPipelineConfiguration,
long environmentId)
Set Docker pipeline configuration for a particular environment.
|
void |
saveEnvironmentPluginConfig(Map<String,Map<String,String>> config,
long environmentId)
Saves plugins config for given environment.
|
@Inject public EnvironmentCustomConfigServiceImpl(EnvironmentCustomConfigDao environmentCustomConfigDao, EnvironmentDao environmentDao, EnvironmentCustomConfigJsonConverter environmentCustomConfigJsonConverter, DockerPipelineValidationService dockerPipelineValidationService, TaskManager taskManager)
@NotNull public Map<String,Map<String,String>> getEnvironmentPluginConfig(long environmentId)
EnvironmentCustomConfigService
getEnvironmentPluginConfig
in interface EnvironmentCustomConfigService
environmentId
- ID of the environmentpublic void saveEnvironmentPluginConfig(Map<String,Map<String,String>> config, long environmentId)
EnvironmentCustomConfigService
saveEnvironmentPluginConfig
in interface EnvironmentCustomConfigService
config
- plugins configuration map, with one entry per pluginenvironmentId
- ID of the environment@NotNull public DockerPipelineConfiguration getDockerPipelineConfiguration(long environmentId)
EnvironmentCustomConfigService
getDockerPipelineConfiguration
in interface EnvironmentCustomConfigService
environmentId
- ID of the environmentpublic void saveDockerPipelineConfiguration(@NotNull DockerPipelineConfiguration dockerPipelineConfiguration, long environmentId)
EnvironmentCustomConfigService
saveDockerPipelineConfiguration
in interface EnvironmentCustomConfigService
dockerPipelineConfiguration
- configuration of docker pipelineenvironmentId
- ID of the environmentCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.