Class VManagerChartsJobProperty.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<JobProperty<?>>
hudson.model.JobPropertyDescriptor
jenkins.model.OptionalJobProperty.OptionalJobPropertyDescriptor
org.jenkinsci.plugins.vmanager.charts.VManagerChartsJobProperty.DescriptorImpl
- Enclosing class:
VManagerChartsJobProperty
@Extension
@Symbol("vManagerCharts")
public static class VManagerChartsJobProperty.DescriptorImpl
extends OptionalJobProperty.OptionalJobPropertyDescriptor
-
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 TypeMethodDescriptiondoCheckCredentialsId(Item item, String value) doCheckMaxBuilds(String value) doCheckServerUrl(String value) voiddoExportConfig(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Exports the currently-edited (unsaved) plugin configuration as a downloadable JSON file.doFillCredentialsIdItems(Item item, String credentialsId, String serverUrl) booleanisApplicable(Class<? extends Job> jobType) Methods inherited from class jenkins.model.OptionalJobProperty.OptionalJobPropertyDescriptor
newInstance, newInstanceMethods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptorsMethods 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, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<JobProperty<?>>
-
isApplicable
- Overrides:
isApplicablein classJobPropertyDescriptor
-
doFillCredentialsIdItems
@POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String credentialsId, @QueryParameter String serverUrl) -
doCheckServerUrl
-
doCheckCredentialsId
@POST public FormValidation doCheckCredentialsId(@AncestorInPath Item item, @QueryParameter String value) -
doFillSessionSourceItems
-
doCheckMaxBuilds
-
doExportConfig
public void doExportConfig(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws Exception Exports the currently-edited (unsaved) plugin configuration as a downloadable JSON file. The browser POSTs the full job-config form tree (built via Jenkins'buildFormTree); we walk it to find the subtree that holds this plugin's fields, bind it to a transientVManagerChartsJobProperty, and serialize viaJsonConfigLoader.toJson(VManagerChartsJobProperty). ThecredentialsIdfield is never included in the output.- Throws:
Exception
-