Package hudson.plugins.git
Class UserRemoteConfig.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<UserRemoteConfig>
-
- hudson.plugins.git.UserRemoteConfig.DescriptorImpl
-
- Enclosing class:
- UserRemoteConfig
@Extension public static class UserRemoteConfig.DescriptorImpl extends Descriptor<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
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckCredentialsId(Item project, String url, String value)
FormValidation
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 configurationFormValidation
doCheckUrl(Item item, String credentialsId, String value)
ListBoxModel
doFillCredentialsIdItems(Item project, String url, String credentialsId)
String
getDisplayName()
-
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, 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
-
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
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<UserRemoteConfig>
-
-