Class DefaultExecutableLabelValidator
java.lang.Object
com.atlassian.bamboo.configuration.external.helpers.DefaultExecutableLabelValidator
- All Implemented Interfaces:
ExecutableLabelValidator
-
Constructor Summary
ConstructorDescriptionDefaultExecutableLabelValidator
(TaskManager taskManager, JdkManager jdkManager) -
Method Summary
Modifier and TypeMethodDescriptionOptional<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 Details
-
DefaultExecutableLabelValidator
-
-
Method Details
-
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
-