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)
ExecutableLabelValidator
validateExecutableLabelExists
in interface ExecutableLabelValidator
Optional.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)
ExecutableLabelValidator
validateJDKLabels
in interface ExecutableLabelValidator
Optional.empty()
if JDK label is present,
otherwise ValidationProblem
with proper messageCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.