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 -
Method Summary
Modifier and TypeMethodDescriptiondoCheckName(String value) Validates the given config name specified in the form.doCheckReviewBoardURL(String value) Validates the given Review Board URL specified in the form.doFillCredentialsIdItems(String reviewBoardURL, String credentialsId) Fills the API token credentials dropdown box with credentials that are valid for the Review Board endpoint.Returns the display name for this configuration, as shown in the Jenkins GUI.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
-
getDisplayName
Returns the display name for this configuration, as shown in the Jenkins GUI.- Overrides:
getDisplayNamein classDescriptor<ReviewBoardServerConfiguration>- Returns:
- Notification build step display name
-
doCheckName
Validates the given config name specified in the form.- Parameters:
value- Configuration name- Returns:
- FormValidation status
-
doCheckReviewBoardURL
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
-