Class LabelParameterDefinition.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
    • Method Detail

      • doAutoCompleteDefaultValue

        public AutoCompletionCandidates doAutoCompleteDefaultValue​(@QueryParameter
                                                                   String value)
        Called by UI - Autocompletion for label values
        Parameters:
        value - the current value in the text field to base the automcompetion upon.
        Returns:
        autocompletion candidates for label values
      • doCheckDefaultValue

        public FormValidation doCheckDefaultValue​(@QueryParameter
                                                  String value)
        Called by UI - Checks whether the given label is valid
        Parameters:
        value - the label to be checked
        Returns:
        validation result for the form
      • doListNodesForLabel

        public FormValidation doListNodesForLabel​(@QueryParameter("value")
                                                  String label)
                                           throws javax.servlet.ServletException
        Called by validation button in UI when triggering a job manually
        Parameters:
        label - the label to search the nodes for
        Returns:
        if ok, a list of nodes matching the given label
        Throws:
        javax.servlet.ServletException - on error
      • getDefaultNodeEligibility

        public NodeEligibility getDefaultNodeEligibility()
        provides the default node eligibility for the UI