|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
hudson.plugins.reviewboard.ReviewboardDescriptorImpl
@Extension public final class ReviewboardDescriptorImpl
Descriptor for ReviewboardPublisher. Used as a singleton.
The class is marked as public so that it can be accessed from views.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| Field Summary |
|---|
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
ReviewboardDescriptorImpl()
|
|
| Method Summary | |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject o)
Configures the Reviewboard plugin with parameters supplied on the Global configuration page of Hudson. |
hudson.util.FormValidation |
doCheckCmdPath(String cmdPath)
Validates that the command supplied exists and can be executed. |
hudson.util.FormValidation |
doCheckDaysBeforeStaleReview(Integer daysBeforeStaleReview)
Validates that the number of days before a review is considered stale is greater than or equal to -1. |
hudson.util.FormValidation |
doCheckDefaultReviewers(String defaultReviewers)
Validates that the reviewers entered match existing Reviewboard users. |
hudson.util.FormValidation |
doCheckDefaultReviewGroups(String defaultReviewGroups)
Validates that the review groups entered match existing Reviewboard groups. |
hudson.util.FormValidation |
doCheckForceUpdateOverride(boolean forceUpdateOverride,
boolean skipUnflaggedChanges)
|
hudson.util.FormValidation |
doCheckKeyRegEx(String keyRegEx)
Validates the regular expression supplied is a valid pattern for the external ID as set on the Build's configuration page. |
hudson.util.FormValidation |
doCheckSkipUnflaggedChanges(boolean forceUpdateOverride,
boolean skipUnflaggedChanges)
|
hudson.util.FormValidation |
doCheckUrl(String url)
Validates that the Reviewboard URL supplied is available. |
String |
getCmdPath()
Returns the reviewboard command path |
String |
getDisplayName()
This human readable name is used in the configuration screen. |
String |
getPassword()
Returns the reviewboard password |
protected ReviewboardHttpAPI |
getReviewboardAPI()
Returns a configured Reviewboard API |
Set<String> |
getReviewboardGroups()
|
Set<String> |
getReviewboardUsers()
|
String |
getUrl()
Returns the reviewboard URL |
String |
getUsername()
Returns the reviewboard username |
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
|
protected boolean |
isPluginConfigured()
Validates that the plugin is properly configured and reviewboard is available. |
protected boolean |
isSavedCommandPathValid()
Validates that the command path to post-review is available and executable. |
protected boolean |
isSavedURLValid()
Validates that the saved URL is available. |
protected boolean |
isValidURL(String url)
Validates a URL is available and responds with a 200 error code. |
| Methods inherited from class hudson.tasks.BuildStepDescriptor |
|---|
filter |
| Methods inherited from class hudson.model.Descriptor |
|---|
calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReviewboardDescriptorImpl()
| Method Detail |
|---|
public hudson.util.FormValidation doCheckKeyRegEx(@QueryParameter
String keyRegEx)
throws IOException,
javax.servlet.ServletException
keyRegEx - regular expression matching the external ID to extract from the change description
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckCmdPath(@QueryParameter
String cmdPath)
throws IOException,
javax.servlet.ServletException
cmdPath - command to execute post-review, and is often just "post-review.exe"
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckDaysBeforeStaleReview(@QueryParameter
Integer daysBeforeStaleReview)
throws IOException,
javax.servlet.ServletException
cmdPath - command to execute post-review, and is often just "post-review.exe"
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckUrl(@QueryParameter
String url)
throws IOException,
javax.servlet.ServletException
url - URL to reviewboard instance
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckDefaultReviewers(@QueryParameter
String defaultReviewers)
throws IOException,
javax.servlet.ServletException
defaultReviewers - Comma-delimited list of reviewers to check
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckDefaultReviewGroups(@QueryParameter
String defaultReviewGroups)
throws IOException,
javax.servlet.ServletException
defaultReviewGroups - Comma-delimited list of groups to check
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckForceUpdateOverride(@QueryParameter
boolean forceUpdateOverride,
@QueryParameter
boolean skipUnflaggedChanges)
public hudson.util.FormValidation doCheckSkipUnflaggedChanges(@QueryParameter
boolean forceUpdateOverride,
@QueryParameter
boolean skipUnflaggedChanges)
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject o)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<hudson.tasks.Publisher>req - Form submission requesto - JSON object containing values from global configuration
hudson.model.Descriptor.FormExceptionpublic String getUrl()
public String getUsername()
public String getPassword()
public String getCmdPath()
public Set<String> getReviewboardGroups()
public Set<String> getReviewboardUsers()
protected ReviewboardHttpAPI getReviewboardAPI()
throws org.apache.commons.httpclient.URIException,
NullPointerException
org.apache.commons.httpclient.URIException
NullPointerException
protected boolean isValidURL(String url)
throws URISyntaxException,
IOException
url - to check
URISyntaxException
MalformedURLException
IOExceptionprotected boolean isSavedURLValid()
protected boolean isSavedCommandPathValid()
protected boolean isPluginConfigured()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||