@Extension
public static final class EstimateBuilder.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
HelloWorldBuilder
. Used as a singleton.
The class is marked as public so that it can be accessed from views.
See src/main/resources/hudson/plugins/hello_world/HelloWorldBuilder/*.jelly for the actual HTML fragment for the configuration screen.
Constructor and Description |
---|
EstimateBuilder.DescriptorImpl()
In order to load the persisted global configuration, you have to
call load() in the constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.FormValidation |
doCheckMaxNumberOfViolations(String value)
Performs on-the-fly validation of the form field 'maxNumberOfViolations'.
|
hudson.util.FormValidation |
doCheckName(String value)
Performs on-the-fly validation of the form field 'name'.
|
hudson.util.FormValidation |
doCheckRegWhichIncludedModules(String value)
Performs on-the-fly validation of the form field 'regWhichIncludedModules'.
|
hudson.util.FormValidation |
doCheckReportConfigName(String token,
String saasURI)
Validates the report configuration drop-down menu
by checking if an authorized token is being used.
|
hudson.util.FormValidation |
doCheckSaasuri(String value)
Performs on-the-fly validation of the form field 'saasuri'.
|
hudson.util.FormValidation |
doCheckToken(String token,
String saasURI)
Performs on-the-fly validation of the form field 'token'.
|
hudson.util.FormValidation |
doCheckUri(String value)
Performs on-the-fly validation of the form field 'uri'.
|
hudson.util.ListBoxModel |
doFillReportConfigNameItems(String token,
String saasURI,
String language)
Fills in report configuration items.
|
String |
getDisplayName()
This human readable name is used in the configuration screen.
|
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> aClass) |
void |
setAuthorized(boolean isAuthorized)
Sets the authorized state.
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public EstimateBuilder.DescriptorImpl()
public hudson.util.FormValidation doCheckName(@QueryParameter String value) throws IOException, javax.servlet.ServletException
value
- This parameter receives the value that the user has typed.IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckUri(@QueryParameter String value) throws IOException, javax.servlet.ServletException
value
- This parameter receives the value that the user has typed.IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckSaasuri(@QueryParameter String value) throws IOException, javax.servlet.ServletException
value
- This parameter receives the value that the user has typed.IOException
javax.servlet.ServletException
public hudson.util.ListBoxModel doFillReportConfigNameItems(@QueryParameter(value="token") String token, @QueryParameter(value="saasuri") String saasURI, @QueryParameter(value="language") String language) throws org.json.JSONException
org.json.JSONException
public hudson.util.FormValidation doCheckReportConfigName(@QueryParameter(value="token") String token, @QueryParameter(value="saasuri") String saasURI) throws IOException, org.json.JSONException
IOException
org.json.JSONException
public hudson.util.FormValidation doCheckToken(@QueryParameter(value="token") String token, @QueryParameter(value="saasuri") String saasURI) throws IOException, javax.servlet.ServletException, org.json.JSONException
token
- This parameter receives the value that the user has typed in the token field.saasURI
- This parameter receives the value that the user has typed in the 'saasuri' field.IOException
javax.servlet.ServletException
org.json.JSONException
for form validation (check for required field).
public void setAuthorized(boolean isAuthorized)
isAuthorized
- whether the token is authorized.public hudson.util.FormValidation doCheckRegWhichIncludedModules(@QueryParameter String value) throws IOException, javax.servlet.ServletException
value
- This parameter receives the value that the user has typed.IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckMaxNumberOfViolations(@QueryParameter String value) throws IOException, javax.servlet.ServletException
value
- This parameter receives the value that the user has typed.IOException
javax.servlet.ServletException
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
isApplicable
in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.tasks.Builder>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<hudson.tasks.Builder>
hudson.model.Descriptor.FormException
Copyright © 2004-2015. All Rights Reserved.