hudson.scm
Class SubversionReleaseSCM.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<hudson.scm.SCM>
hudson.scm.SCMDescriptor<SubversionReleaseSCM>
hudson.scm.SubversionReleaseSCM.DescriptorImpl
- All Implemented Interfaces:
- hudson.model.Saveable
- Enclosing class:
- SubversionReleaseSCM
public static class SubversionReleaseSCM.DescriptorImpl
- extends hudson.scm.SCMDescriptor<SubversionReleaseSCM>
| 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 |
|
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. |
void |
doPostCredential(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Submits the authentication info. |
void |
doSvnLocalLocationCheck(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
validate the value for a local location (local checkout directory). |
void |
doSvnRemoteLocationCheck(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
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)
|
| Methods inherited from class hudson.scm.SCMDescriptor |
getBrowserDescriptors, 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 |
DESCRIPTOR
public static final SubversionReleaseSCM.DescriptorImpl DESCRIPTOR
SubversionReleaseSCM.DescriptorImpl
protected SubversionReleaseSCM.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
SubversionReleaseSCM.createSvnClientManager(ISVNAuthenticationProvider) on the slave.
- See Also:
SubversionReleaseSCM.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.
This code is fairly ugly because of the way SVNKit handles credentials.
- Throws:
java.io.IOException
javax.servlet.ServletException
doSvnRemoteLocationCheck
public void doSvnRemoteLocationCheck(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
- validate the value for a remote (repository) location.
- Throws:
java.io.IOException
javax.servlet.ServletException
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 void doSvnLocalLocationCheck(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
- validate the value for a local location (local checkout directory).
- Throws:
java.io.IOException
javax.servlet.ServletException
Copyright © 2009. All Rights Reserved.