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:ExecutableLabelValidatorChecks if Bamboo Server contains information about executableLabel of type key- Specified by:
validateExecutableLabelExistsin interfaceExecutableLabelValidator- Returns:
Optional.empty()if executable label is present, otherwiseValidationProblemwith 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:ExecutableLabelValidatorChecks if Bamboo Server contains information about given JDK.- Specified by:
validateJDKLabelsin interfaceExecutableLabelValidator- Returns:
Optional.empty()if JDK label is present, otherwiseValidationProblemwith proper message
-
-