Class DefaultExecutableLabelValidator

    • 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 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