hudson.scm
Class SubversionSCM.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<hudson.scm.SCM>
hudson.scm.SCMDescriptor<SubversionSCM>
hudson.scm.SubversionSCM.DescriptorImpl
- All Implemented Interfaces:
- hudson.model.Saveable
- Enclosing class:
- SubversionSCM
@Extension
public static class SubversionSCM.DescriptorImpl
- extends hudson.scm.SCMDescriptor<SubversionSCM>
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| 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 |
|
Method Summary |
org.tmatesoft.svn.core.SVNNodeKind |
checkRepositoryPath(org.tmatesoft.svn.core.SVNURL repoURL)
|
org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider |
createAuthenticationProvider()
Creates ISVNAuthenticationProvider backed by credentials. |
hudson.util.FormValidation |
doExcludeRegionsCheck(java.lang.String value)
Validates the excludeRegions Regex |
void |
doPostCredential(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Submits the authentication info. |
hudson.util.FormValidation |
doSvnLocalLocationCheck(java.lang.String value)
validate the value for a local location (local checkout directory). |
hudson.util.FormValidation |
doSvnRemoteLocationCheck(org.kohsuke.stapler.StaplerRequest req,
java.lang.String value)
validate the value for a remote (repository) location. |
java.lang.String |
getDisplayName()
|
static java.lang.String |
getRelativePath(org.tmatesoft.svn.core.SVNURL repoURL,
org.tmatesoft.svn.core.io.SVNRepository repository)
|
protected org.tmatesoft.svn.core.io.SVNRepository |
getRepository(org.tmatesoft.svn.core.SVNURL repoURL)
|
hudson.scm.SCM |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
|
void |
postCredential(java.lang.String url,
java.lang.String username,
java.lang.String password,
java.io.File keyFile,
java.io.PrintWriter logWriter)
Submits the authentication info. |
| Methods inherited from class hudson.scm.SCMDescriptor |
getBrowserDescriptors, isApplicable, isBrowserReusable |
| Methods inherited from class hudson.model.Descriptor |
configure, configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, load, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubversionSCM.DescriptorImpl
public SubversionSCM.DescriptorImpl()
SubversionSCM.DescriptorImpl
protected SubversionSCM.DescriptorImpl(java.lang.Class clazz,
java.lang.Class<? extends hudson.scm.RepositoryBrowser> repositoryBrowser)
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.scm.SCM>
newInstance
public hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
- Overrides:
newInstance in class hudson.model.Descriptor<hudson.scm.SCM>
- Throws:
hudson.model.Descriptor.FormException
createAuthenticationProvider
public org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider createAuthenticationProvider()
- 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
SubversionSCM.createSvnClientManager(ISVNAuthenticationProvider) on the slave.
- See Also:
SubversionSCM.createSvnClientManager(ISVNAuthenticationProvider)
doPostCredential
public void doPostCredential(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
- Submits the authentication info.
- Throws:
java.io.IOException
javax.servlet.ServletException
postCredential
public void postCredential(java.lang.String url,
java.lang.String username,
java.lang.String password,
java.io.File keyFile,
java.io.PrintWriter logWriter)
throws org.tmatesoft.svn.core.SVNException,
java.io.IOException
- Submits the authentication info.
This code is fairly ugly because of the way SVNKit handles credentials.
- Throws:
org.tmatesoft.svn.core.SVNException
java.io.IOException
doSvnRemoteLocationCheck
public hudson.util.FormValidation doSvnRemoteLocationCheck(org.kohsuke.stapler.StaplerRequest req,
@QueryParameter
java.lang.String value)
- validate the value for a remote (repository) location.
checkRepositoryPath
public org.tmatesoft.svn.core.SVNNodeKind checkRepositoryPath(org.tmatesoft.svn.core.SVNURL repoURL)
throws org.tmatesoft.svn.core.SVNException
- Throws:
org.tmatesoft.svn.core.SVNException
getRepository
protected org.tmatesoft.svn.core.io.SVNRepository getRepository(org.tmatesoft.svn.core.SVNURL repoURL)
throws org.tmatesoft.svn.core.SVNException
- Throws:
org.tmatesoft.svn.core.SVNException
getRelativePath
public static java.lang.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
doSvnLocalLocationCheck
public hudson.util.FormValidation doSvnLocalLocationCheck(@QueryParameter
java.lang.String value)
throws java.io.IOException,
javax.servlet.ServletException
- validate the value for a local location (local checkout directory).
- Throws:
java.io.IOException
javax.servlet.ServletException
doExcludeRegionsCheck
public hudson.util.FormValidation doExcludeRegionsCheck(@QueryParameter
java.lang.String value)
throws java.io.IOException,
javax.servlet.ServletException
- Validates the excludeRegions Regex
- Throws:
java.io.IOException
javax.servlet.ServletException
Copyright © 2009. All Rights Reserved.