Class GerritProject.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<GerritProject>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject.DescriptorImpl
All Implemented Interfaces:
Saveable, OnMaster
Enclosing class:
GerritProject

@Extension public static final class GerritProject.DescriptorImpl extends Descriptor<GerritProject>
Descriptor allowing for communication within the Repeatable. Necessary for editable combobox.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • doFillPatternItems

      public ComboBoxModel doFillPatternItems(@AncestorInPath Item project, @QueryParameter("serverName") @RelativePath("..") String serverName)
      Used to fill the project pattern combobox with AJAX. The filled values will depend on the server that the user has chosen from the dropdown.
      Parameters:
      project - the current project.
      serverName - the name of the server that the user has chosen.
      Returns:
      ComboBoxModels containing a list of all Gerrit Projects found on that server.
    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<GerritProject>