Package org.reviewboard.rbjenkins.config
Class ReviewBoardServerConfiguration.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<ReviewBoardServerConfiguration>
-
- org.reviewboard.rbjenkins.config.ReviewBoardServerConfiguration.DescriptorImpl
-
- Enclosing class:
- ReviewBoardServerConfiguration
@Extension public static final class ReviewBoardServerConfiguration.DescriptorImpl extends Descriptor<ReviewBoardServerConfiguration>
Provides the description of the notification build step and validation functions for fields in its configuration form.
-
-
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
doCheckName(String value)
Validates the given config name specified in the form.FormValidation
doCheckReviewBoardURL(String value)
Validates the given Review Board URL specified in the form.ListBoxModel
doFillCredentialsIdItems(String reviewBoardURL, String credentialsId)
Fills the API token credentials dropdown box with credentials that are valid for the Review Board endpoint.String
getDisplayName()
Returns the display name for this configuration, as shown in the Jenkins GUI.-
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
-
getDisplayName
public String getDisplayName()
Returns the display name for this configuration, as shown in the Jenkins GUI.- Overrides:
getDisplayName
in classDescriptor<ReviewBoardServerConfiguration>
- Returns:
- Notification build step display name
-
doCheckName
public FormValidation doCheckName(@QueryParameter String value)
Validates the given config name specified in the form.- Parameters:
value
- Configuration name- Returns:
- FormValidation status
-
doCheckReviewBoardURL
public FormValidation doCheckReviewBoardURL(@QueryParameter String value)
Validates the given Review Board URL specified in the form.- Parameters:
value
- Review Board URL- Returns:
- FormValidation status
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@QueryParameter String reviewBoardURL, @QueryParameter String credentialsId)
Fills the API token credentials dropdown box with credentials that are valid for the Review Board endpoint.- Parameters:
reviewBoardURL
- Review Board server URLcredentialsId
- Credentials identifier- Returns:
- ListBoxModel containing credential IDs
-
-