Package io.jenkins.plugins.oak9
Class Oak9Builder.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Builder>
-
- io.jenkins.plugins.oak9.Oak9Builder.DescriptorImpl
-
- Enclosing class:
- Oak9Builder
@Extension public static final class Oak9Builder.DescriptorImpl extends BuildStepDescriptor<Builder>
-
-
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 Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
defaultBaseUrl()
FormValidation
doCheckBaseUrl(String value)
Check to make sure the user has not unset the BaseURLFormValidation
doCheckCredentialsId(String value)
Check to make sure the user has selected a credentialFormValidation
doCheckOrgId(String value)
Check to make sure the user has entered an Org IdFormValidation
doCheckProjectId(String value)
Check to make sure the user has entered a Project IdListBoxModel
doFillCredentialsIdItems(String serverUrl, String credentialsId)
Fill the select list with permissible credentialsListBoxModel
doFillMaxSeverityItems()
Fill the select list with available Oak9 SeveritiesString
getDisplayName()
boolean
isApplicable(Class<? extends AbstractProject> aClass)
-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
doCheckOrgId
public FormValidation doCheckOrgId(@QueryParameter String value) throws IOException, javax.servlet.ServletException
Check to make sure the user has entered an Org Id- Parameters:
value
- the string value of the input being checked- Returns:
- FormValidation
- Throws:
IOException
- thrown by the Jenkins corejavax.servlet.ServletException
- thrown by the Jenkins core
-
doCheckBaseUrl
public FormValidation doCheckBaseUrl(@QueryParameter String value) throws IOException, javax.servlet.ServletException
Check to make sure the user has not unset the BaseURL- Parameters:
value
- the string value of the input being checked- Returns:
- FormValidation
- Throws:
IOException
- thrown by the Jenkins corejavax.servlet.ServletException
- thrown by the Jenkins core
-
doCheckProjectId
public FormValidation doCheckProjectId(@QueryParameter String value) throws IOException, javax.servlet.ServletException
Check to make sure the user has entered a Project Id- Parameters:
value
- the string value of the input being checked- Returns:
- FormValidation
- Throws:
IOException
- thrown by Jenkins corejavax.servlet.ServletException
- thrown by Jenkins core
-
doCheckCredentialsId
public FormValidation doCheckCredentialsId(@QueryParameter String value) throws IOException, javax.servlet.ServletException
Check to make sure the user has selected a credential- Parameters:
value
- The string value of the input being checked- Returns:
- FormValidation
- Throws:
IOException
- thrown by Jenkins corejavax.servlet.ServletException
- thrown by Jenkins core
-
doFillMaxSeverityItems
@POST public ListBoxModel doFillMaxSeverityItems()
Fill the select list with available Oak9 Severities- Returns:
- ListBoxModel
-
doFillCredentialsIdItems
@POST public ListBoxModel doFillCredentialsIdItems(@QueryParameter String serverUrl, @QueryParameter String credentialsId)
Fill the select list with permissible credentials- Parameters:
serverUrl
- the jenkins Server urlcredentialsId
- - the credentials ID that is currently selected- Returns:
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> aClass)
- Specified by:
isApplicable
in classBuildStepDescriptor<Builder>
-
getDisplayName
@NotNull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Builder>
-
defaultBaseUrl
public String defaultBaseUrl()
-
-