public class DefaultExecutableLabelValidator extends Object implements ExecutableLabelValidator
| Constructor and Description |
|---|
DefaultExecutableLabelValidator(TaskManager taskManager,
JdkManager jdkManager) |
| Modifier and Type | Method and Description |
|---|---|
Optional<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> |
validateExecutableLabelExists(com.atlassian.bamboo.specs.api.validators.common.ValidationContext context,
String executableLabel,
String key)
Checks if Bamboo Server contains information about executableLabel of type key
|
Optional<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> |
validateJDKLabels(com.atlassian.bamboo.specs.api.validators.common.ValidationContext context,
String jdkLabel)
Checks if Bamboo Server contains information about given JDK.
|
@Inject public DefaultExecutableLabelValidator(TaskManager taskManager, JdkManager jdkManager)
public Optional<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validateExecutableLabelExists(com.atlassian.bamboo.specs.api.validators.common.ValidationContext context, String executableLabel, String key)
ExecutableLabelValidatorvalidateExecutableLabelExists in interface ExecutableLabelValidatorOptional.empty() if executable label is present,
otherwise ValidationProblem with proper messagepublic Optional<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validateJDKLabels(com.atlassian.bamboo.specs.api.validators.common.ValidationContext context, String jdkLabel)
ExecutableLabelValidatorvalidateJDKLabels in interface ExecutableLabelValidatorOptional.empty() if JDK label is present,
otherwise ValidationProblem with proper messageCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.