Class DefaultExecutableLabelValidator

java.lang.Object
com.atlassian.bamboo.configuration.external.helpers.DefaultExecutableLabelValidator
All Implemented Interfaces:
ExecutableLabelValidator

public class DefaultExecutableLabelValidator extends Object implements ExecutableLabelValidator
  • Constructor Details

    • DefaultExecutableLabelValidator

      @Inject public DefaultExecutableLabelValidator(TaskManager taskManager, JdkManager jdkManager)
  • 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 interface ExecutableLabelValidator
      Returns:
      Optional.empty() if executable label is present, otherwise ValidationProblem 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 interface ExecutableLabelValidator
      Returns:
      Optional.empty() if JDK label is present, otherwise ValidationProblem with proper message