Class ReviewConfig.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<ReviewConfig>
-
- org.jenkinsci.plugins.sonargerrit.gerrit.ReviewConfig.DescriptorImpl
-
- Enclosing class:
- ReviewConfig
@Extension public static class ReviewConfig.DescriptorImpl extends Descriptor<ReviewConfig>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description static ReviewCommentType
DEFAULT_COMMENT_TYPE
static String
ISSUE_COMMENT_TEMPLATE
static boolean
ISSUE_OMIT_DUPLICATE_COMMENTS
static String
NO_ISSUES_TITLE_TEMPLATE
static String
SOME_ISSUES_TITLE_TEMPLATE
-
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
doCheckIssueCommentTemplate(String value)
Performs on-the-fly validation of the form field 'issueCommentTemplate'.FormValidation
doCheckNoIssuesTitleTemplate(String value)
Performs on-the-fly validation of the form field 'noIssuesTitleTemplate'.FormValidation
doCheckSomeIssuesTitleTemplate(String value)
Performs on-the-fly validation of the form field 'someIssuesTitleTemplate'.String
getCommentTypeDisplayName(ReviewCommentType commentType)
String
getDisplayName()
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, 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
-
-
-
-
Field Detail
-
DEFAULT_COMMENT_TYPE
public static final ReviewCommentType DEFAULT_COMMENT_TYPE
-
NO_ISSUES_TITLE_TEMPLATE
public static final String NO_ISSUES_TITLE_TEMPLATE
-
SOME_ISSUES_TITLE_TEMPLATE
public static final String SOME_ISSUES_TITLE_TEMPLATE
-
ISSUE_COMMENT_TEMPLATE
public static final String ISSUE_COMMENT_TEMPLATE
-
ISSUE_OMIT_DUPLICATE_COMMENTS
public static final boolean ISSUE_OMIT_DUPLICATE_COMMENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommentTypeDisplayName
public String getCommentTypeDisplayName(ReviewCommentType commentType)
-
doCheckNoIssuesTitleTemplate
public FormValidation doCheckNoIssuesTitleTemplate(@QueryParameter String value)
Performs on-the-fly validation of the form field 'noIssuesTitleTemplate'.- Parameters:
value
- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
Note that returning
FormValidation.error(String)
does not prevent the form from being saved. It just means that a message will be displayed to the user.
-
doCheckSomeIssuesTitleTemplate
public FormValidation doCheckSomeIssuesTitleTemplate(@QueryParameter String value)
Performs on-the-fly validation of the form field 'someIssuesTitleTemplate'.- Parameters:
value
- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
Note that returning
FormValidation.error(String)
does not prevent the form from being saved. It just means that a message will be displayed to the user.
-
doCheckIssueCommentTemplate
public FormValidation doCheckIssueCommentTemplate(@QueryParameter String value)
Performs on-the-fly validation of the form field 'issueCommentTemplate'.- Parameters:
value
- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
Note that returning
FormValidation.error(String)
does not prevent the form from being saved. It just means that a message will be displayed to the user.
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<ReviewConfig>
-
-