Package hudson.plugins.git
Class UserRemoteConfig.DescriptorImpl
- Enclosing class:
- UserRemoteConfig
-
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
-
Method Summary
Modifier and TypeMethodDescriptiondoCheckCredentialsId
(Item project, String url, String value) doCheckRefspec
(String name, String url, String value) A form validation logic as a method to check the specification of 'refSpec' and notify the user about illegal specs before applying the project configurationdoCheckUrl
(Item item, String credentialsId, String value) doFillCredentialsIdItems
(Item project, String url, String credentialsId) Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item project, @QueryParameter String url, @QueryParameter String credentialsId) -
doCheckCredentialsId
public FormValidation doCheckCredentialsId(@AncestorInPath Item project, @QueryParameter String url, @QueryParameter String value) -
doCheckUrl
public FormValidation doCheckUrl(@AncestorInPath Item item, @QueryParameter String credentialsId, @QueryParameter String value) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
doCheckRefspec
public FormValidation doCheckRefspec(@QueryParameter String name, @QueryParameter String url, @QueryParameter String value) throws IllegalArgumentException A form validation logic as a method to check the specification of 'refSpec' and notify the user about illegal specs before applying the project configuration- Parameters:
name
- Name of the remote repositoryurl
- Repository URLvalue
- value of RefSpec- Returns:
- FormValidation.ok() or FormValidation.error()
- Throws:
IllegalArgumentException
- on unexpected argument error
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<UserRemoteConfig>
-