hudson.scm
Class BlameSubversionSCM.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.scm.SCM>
      extended by hudson.scm.SCMDescriptor<BlameSubversionSCM>
          extended by hudson.scm.BlameSubversionSCM.DescriptorImpl
All Implemented Interfaces:
hudson.model.ModelObject, hudson.model.Saveable
Enclosing class:
BlameSubversionSCM

@Extension
public static class BlameSubversionSCM.DescriptorImpl
extends hudson.scm.SCMDescriptor<BlameSubversionSCM>
implements hudson.model.ModelObject


Nested Class Summary
static class BlameSubversionSCM.DescriptorImpl.Credential
          Stores SVNAuthentication for a single realm.
static class BlameSubversionSCM.DescriptorImpl.PasswordCredential
          Username/password based authentication.
static class BlameSubversionSCM.DescriptorImpl.SshPublicKeyCredential
          Publickey authentication for Subversion over SSH.
static class BlameSubversionSCM.DescriptorImpl.SslClientCertificateCredential
          SSL client certificate based authentication.
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 
Fields inherited from class hudson.scm.SCMDescriptor
generation, repositoryBrowser
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
  BlameSubversionSCM.DescriptorImpl()
           
protected BlameSubversionSCM.DescriptorImpl(Class clazz, Class<? extends hudson.scm.RepositoryBrowser> repositoryBrowser)
           
 
Method Summary
 org.tmatesoft.svn.core.SVNNodeKind checkRepositoryPath(hudson.model.AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL)
          validate the value for a remote (repository) location.
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider createAuthenticationProvider()
          Deprecated. as of 1.18 Now that Hudson allows different credentials to be given in different jobs, The caller should use createAuthenticationProvider(AbstractProject) to indicate the project in which the subversion operation is performed.
 org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider createAuthenticationProvider(hudson.model.AbstractProject<?,?> inContextOf)
          Creates ISVNAuthenticationProvider backed by credentials.
 String getDisplayName()
           
 String getGlobalExcludedRevprop()
           
static String getRelativePath(org.tmatesoft.svn.core.SVNURL repoURL, org.tmatesoft.svn.core.io.SVNRepository repository)
           
protected  org.tmatesoft.svn.core.io.SVNRepository getRepository(hudson.model.AbstractProject context, org.tmatesoft.svn.core.SVNURL repoURL)
           
 boolean isBrowserReusable(BlameSubversionSCM x, BlameSubversionSCM y)
           
 hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject jsonObject)
           
 void postCredential(hudson.model.AbstractProject inContextOf, String url, String username, String password, File keyFile, PrintWriter logWriter)
           
 void postCredential(String url, String username, String password, File keyFile, PrintWriter logWriter)
          Deprecated. as of 1.18 Use postCredential(AbstractProject, String, String, String, File, PrintWriter)
 void postCredential(String url, UserProvidedCredential upc, PrintWriter logWriter)
          Submits the authentication info.
 
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, isApplicable, load
 
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, 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

BlameSubversionSCM.DescriptorImpl

public BlameSubversionSCM.DescriptorImpl()

BlameSubversionSCM.DescriptorImpl

protected BlameSubversionSCM.DescriptorImpl(Class clazz,
                                            Class<? extends hudson.scm.RepositoryBrowser> repositoryBrowser)
Method Detail

newInstance

public hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest staplerRequest,
                                  net.sf.json.JSONObject jsonObject)
                           throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.Descriptor<hudson.scm.SCM>
Throws:
hudson.model.Descriptor.FormException

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.scm.SCM>

getGlobalExcludedRevprop

public String getGlobalExcludedRevprop()

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject formData)
                  throws hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.model.Descriptor<hudson.scm.SCM>
Throws:
hudson.model.Descriptor.FormException

isBrowserReusable

public boolean isBrowserReusable(BlameSubversionSCM x,
                                 BlameSubversionSCM y)
Overrides:
isBrowserReusable in class hudson.scm.SCMDescriptor<BlameSubversionSCM>

createAuthenticationProvider

public org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider createAuthenticationProvider(hudson.model.AbstractProject<?,?> inContextOf)
Creates ISVNAuthenticationProvider backed by credentials. This method must be invoked on the master, but the returned object is remotable.

Therefore, to access ISVNAuthenticationProvider, you need to call this method on the master, then pass the object to the slave side, then call BlameSubversionSCM.createSvnClientManager(ISVNAuthenticationProvider) on the slave.

See Also:
BlameSubversionSCM.createSvnClientManager(ISVNAuthenticationProvider)

createAuthenticationProvider

public org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider createAuthenticationProvider()
Deprecated. as of 1.18 Now that Hudson allows different credentials to be given in different jobs, The caller should use createAuthenticationProvider(AbstractProject) to indicate the project in which the subversion operation is performed.


postCredential

public void postCredential(String url,
                           String username,
                           String password,
                           File keyFile,
                           PrintWriter logWriter)
                    throws org.tmatesoft.svn.core.SVNException,
                           IOException
Deprecated. as of 1.18 Use postCredential(AbstractProject, String, String, String, File, PrintWriter)

Throws:
org.tmatesoft.svn.core.SVNException
IOException

postCredential

public void postCredential(hudson.model.AbstractProject inContextOf,
                           String url,
                           String username,
                           String password,
                           File keyFile,
                           PrintWriter logWriter)
                    throws org.tmatesoft.svn.core.SVNException,
                           IOException
Throws:
org.tmatesoft.svn.core.SVNException
IOException

postCredential

public void postCredential(String url,
                           UserProvidedCredential upc,
                           PrintWriter logWriter)
                    throws org.tmatesoft.svn.core.SVNException,
                           IOException
Submits the authentication info. This code is fairly ugly because of the way SVNKit handles credentials.

Throws:
org.tmatesoft.svn.core.SVNException
IOException

checkRepositoryPath

public org.tmatesoft.svn.core.SVNNodeKind checkRepositoryPath(hudson.model.AbstractProject context,
                                                              org.tmatesoft.svn.core.SVNURL repoURL)
                                                       throws org.tmatesoft.svn.core.SVNException
validate the value for a remote (repository) location.

Throws:
org.tmatesoft.svn.core.SVNException

getRepository

protected org.tmatesoft.svn.core.io.SVNRepository getRepository(hudson.model.AbstractProject context,
                                                                org.tmatesoft.svn.core.SVNURL repoURL)
                                                         throws org.tmatesoft.svn.core.SVNException
Throws:
org.tmatesoft.svn.core.SVNException

getRelativePath

public static String getRelativePath(org.tmatesoft.svn.core.SVNURL repoURL,
                                     org.tmatesoft.svn.core.io.SVNRepository repository)
                              throws org.tmatesoft.svn.core.SVNException
Throws:
org.tmatesoft.svn.core.SVNException


Copyright © 2004-2012 Hudson. All Rights Reserved.