Class InstanceConfiguration.DefensicsInstanceConfigurationDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<InstanceConfiguration>
-
- com.synopsys.defensics.jenkins.configuration.InstanceConfiguration.DefensicsInstanceConfigurationDescriptor
-
- Enclosing class:
- InstanceConfiguration
@Extension public static class InstanceConfiguration.DefensicsInstanceConfigurationDescriptor extends Descriptor<InstanceConfiguration>
-
-
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 DefensicsInstanceConfigurationDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckCredentialsId(Item item, String value)
Check credential drop down list.FormValidation
doCheckName(String name)
Validation for Defensics instance name.FormValidation
doCheckUrl(String url)
Validation for Defensics instance URL.ListBoxModel
doFillCredentialsIdItems(Item item, String credentialsId)
Fills Credentials drop down menu with the StringCredentials description field values.FormValidation
doTestConnection(String url, boolean certificateValidationDisabled, String credentialsId)
Test the connection to Defensics instance.-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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
-
doCheckName
public FormValidation doCheckName(@QueryParameter String name)
Validation for Defensics instance name.- Parameters:
name
- The name the user has entered.- Returns:
- Ok if name is valid, otherwise Error.
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String credentialsId)
Fills Credentials drop down menu with the StringCredentials description field values.- Parameters:
item
- nearest ancestor item in Jenkins hierarchy.credentialsId
- currently selected credentials (can be null).- Returns:
- List box model.
-
doCheckCredentialsId
public FormValidation doCheckCredentialsId(@AncestorInPath Item item, @QueryParameter String value)
Check credential drop down list.- Parameters:
item
- nearest ancestor item in Jenkins hierarchy.value
- value of credentials id.- Returns:
- Form validation result.
-
doCheckUrl
public FormValidation doCheckUrl(@QueryParameter String url)
Validation for Defensics instance URL.- Parameters:
url
- The url the user has entered.- Returns:
- Ok if the url is set and is a valid url, otherwise Error.
-
doTestConnection
@POST public FormValidation doTestConnection(@QueryParameter("url") String url, @QueryParameter("certificateValidationDisabled") boolean certificateValidationDisabled, @QueryParameter("credentialsId") String credentialsId)
Test the connection to Defensics instance.- Parameters:
url
- The URL of the Defensics instance to connect to.credentialsId
- Id of the authorization token-credential to be used (selected from the drop down menu).- Returns:
- Ok if a get request is successfully made to the api endpoint of the url, otherwise Error.
-
-