Class ChartDefinition.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<ChartDefinition>
org.jenkinsci.plugins.vmanager.charts.model.ChartDefinition.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
ChartDefinition

@Extension public static class ChartDefinition.DescriptorImpl extends Descriptor<ChartDefinition>
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<ChartDefinition>
    • newInstance

      public ChartDefinition newInstance(org.kohsuke.stapler.StaplerRequest2 req, @NonNull net.sf.json.JSONObject formData) throws Descriptor.FormException
      Overrides:
      newInstance in class Descriptor<ChartDefinition>
      Throws:
      Descriptor.FormException
    • doCheckTitle

      @POST public FormValidation doCheckTitle(@AncestorInPath Item item, @QueryParameter String value)
    • doCheckMaxBuilds

      @POST public FormValidation doCheckMaxBuilds(@AncestorInPath Item item, @QueryParameter String value)
    • doCheckVPlanPath

      @POST public FormValidation doCheckVPlanPath(@QueryParameter String value, @QueryParameter String vPlanType, @RelativePath("..") @QueryParameter String serverUrl, @RelativePath("..") @QueryParameter String credentialsId, @AncestorInPath Item item)
      Validates the vPlan field. When vPlan Type is DB this also pings the vManager REST endpoint so any server-side error (auth, 404, connection refused, TLS, etc.) is surfaced inline under the field in red. Triggered via checkDependsOn in the Jelly when vPlanType, serverUrl or credentialsId change.
    • doFillVPlanTypeItems

      @POST public ListBoxModel doFillVPlanTypeItems(@AncestorInPath Item item)
    • doFillVPlanPathItems

      @POST public ComboBoxModel doFillVPlanPathItems(@QueryParameter String vPlanType, @RelativePath("..") @QueryParameter String serverUrl, @RelativePath("..") @QueryParameter String credentialsId, @AncestorInPath Item item)
      For DB type: POST to {serverUrl}/rest/vplan/list-vplans and return the vplan_name of each entry. For FILE type or when no server details are available: return empty list so the user can type a path freely.