Package com.inflectra.spiratest.plugins
Class SpiraBuilder.DescriptorImpl
- Enclosing class:
SpiraBuilder
-
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 TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) doTestConnection(String url, String username, String password) Tests the connection to the SpiraTeam server.doVerifyRelease(String project, String release) Verifies that the project and release exist.getUrl()booleanisApplicable(Class<? extends AbstractProject> aClass) voidsetPassword(Secret password) Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
isApplicable
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<BuildWrapper>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
configurein classDescriptor<BuildWrapper>- Throws:
Descriptor.FormException
-
getUrl
-
getUsername
-
getPassword
-
setPassword
-
doTestConnection
@POST public FormValidation doTestConnection(@QueryParameter("url") String url, @QueryParameter("username") String username, @QueryParameter("password") String password) throws IOException, javax.servlet.ServletException Tests the connection to the SpiraTeam server. Requires Administrator permission and must be invoked via POST.- Throws:
IOExceptionjavax.servlet.ServletException
-
doVerifyRelease
@POST public FormValidation doVerifyRelease(@QueryParameter("project") String project, @QueryParameter("release") String release) throws IOException, javax.servlet.ServletException Verifies that the project and release exist. Requires Administrator permission and must be invoked via POST.- Throws:
IOExceptionjavax.servlet.ServletException
-