@Extension
public static class FodBuilder.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
FodBuilder. Used as a singleton.
The class is marked as public so that it can be accessed from views.
See src/main/resources/hudson/plugins/fod/FodBuilder/*.jelly for the actual HTML fragment for the configuration screen.
| Constructor and Description |
|---|
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 |
doCheckClientId(String value) |
hudson.util.FormValidation |
doCheckClientSecret(String value) |
hudson.util.FormValidation |
doCheckFodUrl(String value)
Performs on-the-fly validation of the form field 'fodUrl'.
|
hudson.util.ListBoxModel |
doFillApplicationNameItems() |
hudson.util.ListBoxModel |
doFillAssessmentTypeIdItems() |
hudson.util.ListBoxModel |
doFillLanguageLevelItems(String technologyStack) |
hudson.util.ListBoxModel |
doFillReleaseNameItems(String applicationName) |
hudson.util.ListBoxModel |
doFillTechnologyStackItems() |
protected void |
ensureLogin(FoDAPI api) |
protected FoDAPI |
getApi()
Retrieves a reference to the FoDAPI class, creating this object if necessary.
|
protected List<String> |
getApplicationNameList(FoDAPI api) |
String |
getClientId() |
String |
getClientSecret() |
String |
getDisplayName()
This human readable name is used in the configuration screen.
|
String |
getFodUrl() |
String |
getPollingInterval() |
protected List<String> |
getReleaseNameList(FoDAPI api,
String applicationName)
Get list of release names, using cached list of names
|
protected List<Release> |
getReleasesWithRetry(FoDAPI api,
int maxAttempts) |
String |
getTenantCode() |
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> aClass) |
protected boolean |
isReleaseListCacheStale() |
protected void |
refreshReleaseListCache(FoDAPI api) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, 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, toMappublic DescriptorImpl()
public hudson.util.FormValidation doCheckClientId(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckClientSecret(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckFodUrl(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
value - This parameter receives the value that the user has typed.
Note that returning FormValidation.error(String) does not
prevent the form from being saved. It just means that a message
will be displayed to the user.
IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.ListBoxModel doFillAssessmentTypeIdItems()
throws IOException
IOExceptionpublic hudson.util.ListBoxModel doFillApplicationNameItems()
public hudson.util.ListBoxModel doFillReleaseNameItems(@QueryParameter(value="applicationName")
String applicationName)
public hudson.util.ListBoxModel doFillTechnologyStackItems()
public hudson.util.ListBoxModel doFillLanguageLevelItems(@QueryParameter(value="technologyStack")
String technologyStack)
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>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.Publisher>hudson.model.Descriptor.FormExceptionpublic String getClientId()
public String getClientSecret()
public String getFodUrl()
public String getPollingInterval()
public String getTenantCode()
protected FoDAPI getApi()
protected void ensureLogin(FoDAPI api)
protected List<String> getReleaseNameList(FoDAPI api, String applicationName)
api - applicationName - protected void refreshReleaseListCache(FoDAPI api)
protected boolean isReleaseListCacheStale()
Copyright © 2004-2016. All Rights Reserved.