Class ChartDefinition.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<ChartDefinition>
org.jenkinsci.plugins.vmanager.charts.model.ChartDefinition.DescriptorImpl
- Enclosing class:
ChartDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckMaxBuilds(Item item, String value) doCheckTitle(Item item, String value) Validates the vPlan field.doFillVPlanPathItems(String vPlanType, String serverUrl, String credentialsId, Item item) For DB type: POST to{serverUrl}/rest/vplan/list-vplansand return thevplan_nameof each entry.doFillVPlanTypeItems(Item item) newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<ChartDefinition>
-
newInstance
public ChartDefinition newInstance(org.kohsuke.stapler.StaplerRequest2 req, @NonNull net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
newInstancein classDescriptor<ChartDefinition>- Throws:
Descriptor.FormException
-
doCheckTitle
-
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 isDBthis 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 viacheckDependsOnin the Jelly whenvPlanType,serverUrlorcredentialsIdchange. -
doFillVPlanTypeItems
-
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-vplansand return thevplan_nameof each entry. For FILE type or when no server details are available: return empty list so the user can type a path freely.
-