Class DefaultExecutableLabelValidator
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.helpers.DefaultExecutableLabelValidator
-
- All Implemented Interfaces:
ExecutableLabelValidator
public class DefaultExecutableLabelValidator extends Object implements ExecutableLabelValidator
-
-
Constructor Summary
Constructors Constructor Description DefaultExecutableLabelValidator(TaskManager taskManager, JdkManager jdkManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 keyOptional<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.
-
-
-
Constructor Detail
-
DefaultExecutableLabelValidator
@Inject public DefaultExecutableLabelValidator(TaskManager taskManager, JdkManager jdkManager)
-
-
Method Detail
-
validateExecutableLabelExists
public Optional<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validateExecutableLabelExists(com.atlassian.bamboo.specs.api.validators.common.ValidationContext context, String executableLabel, String key)
Description copied from interface:ExecutableLabelValidator
Checks if Bamboo Server contains information about executableLabel of type key- Specified by:
validateExecutableLabelExists
in interfaceExecutableLabelValidator
- Returns:
Optional.empty()
if executable label is present, otherwiseValidationProblem
with proper message
-
validateJDKLabels
public Optional<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validateJDKLabels(com.atlassian.bamboo.specs.api.validators.common.ValidationContext context, String jdkLabel)
Description copied from interface:ExecutableLabelValidator
Checks if Bamboo Server contains information about given JDK.- Specified by:
validateJDKLabels
in interfaceExecutableLabelValidator
- Returns:
Optional.empty()
if JDK label is present, otherwiseValidationProblem
with proper message
-
-