org.jenkinsci.plugins.ghprb
Class GhprbGitHubAuth.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<GhprbGitHubAuth>
      extended by org.jenkinsci.plugins.ghprb.GhprbGitHubAuth.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
GhprbGitHubAuth

public static final class GhprbGitHubAuth.DescriptorImpl
extends hudson.model.Descriptor<GhprbGitHubAuth>


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
GhprbGitHubAuth.DescriptorImpl()
           
 
Method Summary
 hudson.util.FormValidation doCheckRepoAccess(String serverAPIUrl, String credentialsId, String repo)
           
 hudson.util.FormValidation doCheckServerAPIUrl(String value)
           
 hudson.util.FormValidation doCreateApiToken(String serverAPIUrl, String credentialsId, String username, String password)
           
 hudson.util.ListBoxModel doFillCredentialsIdItems(hudson.model.Item context, String serverAPIUrl)
          Stapler helper method.
 hudson.util.ListBoxModel doFillStateItems(String state)
           
 hudson.util.FormValidation doTestComment(String serverAPIUrl, String credentialsId, String repoName, int issueId, String comment)
           
 hudson.util.FormValidation doTestGithubAccess(String serverAPIUrl, String credentialsId)
           
 hudson.util.FormValidation doTestUpdateStatus(String serverAPIUrl, String credentialsId, String repoName, String sha1, org.kohsuke.github.GHCommitState state, String url, String message, String context)
           
 String getDisplayName()
           
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GhprbGitHubAuth.DescriptorImpl

public GhprbGitHubAuth.DescriptorImpl()
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<GhprbGitHubAuth>

doFillCredentialsIdItems

public hudson.util.ListBoxModel doFillCredentialsIdItems(@AncestorInPath
                                                         hudson.model.Item context,
                                                         @QueryParameter
                                                         String serverAPIUrl)
                                                  throws URISyntaxException
Stapler helper method.

Parameters:
context - the context.
remoteBase - the remote base.
Returns:
list box model.
Throws:
URISyntaxException

doCreateApiToken

public hudson.util.FormValidation doCreateApiToken(@QueryParameter(value="serverAPIUrl")
                                                   String serverAPIUrl,
                                                   @QueryParameter(value="credentialsId")
                                                   String credentialsId,
                                                   @QueryParameter(value="username")
                                                   String username,
                                                   @QueryParameter(value="password")
                                                   String password)

doCheckServerAPIUrl

public hudson.util.FormValidation doCheckServerAPIUrl(@QueryParameter
                                                      String value)

doCheckRepoAccess

public hudson.util.FormValidation doCheckRepoAccess(@QueryParameter(value="serverAPIUrl")
                                                    String serverAPIUrl,
                                                    @QueryParameter(value="credentialsId")
                                                    String credentialsId,
                                                    @QueryParameter(value="repo")
                                                    String repo)

doTestGithubAccess

public hudson.util.FormValidation doTestGithubAccess(@QueryParameter(value="serverAPIUrl")
                                                     String serverAPIUrl,
                                                     @QueryParameter(value="credentialsId")
                                                     String credentialsId)

doTestComment

public hudson.util.FormValidation doTestComment(@QueryParameter(value="serverAPIUrl")
                                                String serverAPIUrl,
                                                @QueryParameter(value="credentialsId")
                                                String credentialsId,
                                                @QueryParameter(value="repo")
                                                String repoName,
                                                @QueryParameter(value="issueId")
                                                int issueId,
                                                @QueryParameter(value="message1")
                                                String comment)

doTestUpdateStatus

public hudson.util.FormValidation doTestUpdateStatus(@QueryParameter(value="serverAPIUrl")
                                                     String serverAPIUrl,
                                                     @QueryParameter(value="credentialsId")
                                                     String credentialsId,
                                                     @QueryParameter(value="repo")
                                                     String repoName,
                                                     @QueryParameter(value="sha1")
                                                     String sha1,
                                                     @QueryParameter(value="state")
                                                     org.kohsuke.github.GHCommitState state,
                                                     @QueryParameter(value="url")
                                                     String url,
                                                     @QueryParameter(value="message2")
                                                     String message,
                                                     @QueryParameter(value="context")
                                                     String context)

doFillStateItems

public hudson.util.ListBoxModel doFillStateItems(@QueryParameter(value="state")
                                                 String state)


Copyright © 2004-2015. All Rights Reserved.