Class ReviewBoardServerConfiguration.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<ReviewBoardServerConfiguration>
org.reviewboard.rbjenkins.config.ReviewBoardServerConfiguration.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
ReviewBoardServerConfiguration

@Extension public static final class ReviewBoardServerConfiguration.DescriptorImpl extends Descriptor<ReviewBoardServerConfiguration>
Provides the description of the notification build step and validation functions for fields in its configuration form.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Returns the display name for this configuration, as shown in the Jenkins GUI.
      Overrides:
      getDisplayName in class Descriptor<ReviewBoardServerConfiguration>
      Returns:
      Notification build step display name
    • doCheckName

      public FormValidation doCheckName(@QueryParameter String value)
      Validates the given config name specified in the form.
      Parameters:
      value - Configuration name
      Returns:
      FormValidation status
    • doCheckReviewBoardURL

      public FormValidation doCheckReviewBoardURL(@QueryParameter String value)
      Validates the given Review Board URL specified in the form.
      Parameters:
      value - Review Board URL
      Returns:
      FormValidation status
    • doFillCredentialsIdItems

      public ListBoxModel doFillCredentialsIdItems(@QueryParameter String reviewBoardURL, @QueryParameter String credentialsId)
      Fills the API token credentials dropdown box with credentials that are valid for the Review Board endpoint.
      Parameters:
      reviewBoardURL - Review Board server URL
      credentialsId - Credentials identifier
      Returns:
      ListBoxModel containing credential IDs