Package jenkins.scm.impl.subversion
Class SubversionSCMSource.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<jenkins.scm.api.SCMSource>
-
- jenkins.scm.api.SCMSourceDescriptor
-
- jenkins.scm.impl.subversion.SubversionSCMSource.DescriptorImpl
-
- Enclosing class:
- SubversionSCMSource
@Extension public static class SubversionSCMSource.DescriptorImpl extends jenkins.scm.api.SCMSourceDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_EXCLUDES
static String
DEFAULT_INCLUDES
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.tmatesoft.svn.core.SVNNodeKind
checkRepositoryPath(org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials)
FormValidation
doCheckCredentialsId(org.kohsuke.stapler.StaplerRequest req, Item context, String remoteBase, String value)
validate the value for a remote (repository) location.ListBoxModel
doFillCredentialsIdItems(Item context, String remoteBase, String credentialsId)
Stapler helper method.List<Descriptor<RepositoryBrowser<?>>>
getBrowserDescriptors()
Expose theSubversionRepositoryBrowser
instances to stapler.String
getDisplayName()
static 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, com.cloudbees.plugins.credentials.common.StandardCredentials credentials, Map<String,com.cloudbees.plugins.credentials.Credentials> additionalCredentials, org.tmatesoft.svn.core.io.ISVNSession session)
List<WorkspaceUpdaterDescriptor>
getWorkspaceUpdaterDescriptors()
Expose theWorkspaceUpdater
instances to stapler.-
Methods inherited from class jenkins.scm.api.SCMSourceDescriptor
createCategories, forOwner, forOwner, forOwner, forOwner, getCategories, getIconClassName, getId, getPronoun, getTraitsDefaults, isApplicable, isUserInstantiable
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
DEFAULT_INCLUDES
public static final String DEFAULT_INCLUDES
- See Also:
- Constant Field Values
-
DEFAULT_EXCLUDES
public static final String DEFAULT_EXCLUDES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<jenkins.scm.api.SCMSource>
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context, @QueryParameter String remoteBase, @QueryParameter String credentialsId)
Stapler helper method.- Parameters:
context
- the context.remoteBase
- the remote base.- Returns:
- list box model.
-
doCheckCredentialsId
public FormValidation doCheckCredentialsId(org.kohsuke.stapler.StaplerRequest req, @AncestorInPath Item context, @QueryParameter String remoteBase, @QueryParameter String value)
validate the value for a remote (repository) location.
-
checkRepositoryPath
public org.tmatesoft.svn.core.SVNNodeKind checkRepositoryPath(org.tmatesoft.svn.core.SVNURL repoURL, com.cloudbees.plugins.credentials.common.StandardCredentials credentials) 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, com.cloudbees.plugins.credentials.common.StandardCredentials credentials, Map<String,com.cloudbees.plugins.credentials.Credentials> additionalCredentials, org.tmatesoft.svn.core.io.ISVNSession session) 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
-
getWorkspaceUpdaterDescriptors
public List<WorkspaceUpdaterDescriptor> getWorkspaceUpdaterDescriptors()
Expose theWorkspaceUpdater
instances to stapler.- Returns:
- the
WorkspaceUpdater
instances
-
getBrowserDescriptors
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public List<Descriptor<RepositoryBrowser<?>>> getBrowserDescriptors()
Expose theSubversionRepositoryBrowser
instances to stapler.- Returns:
- the
SubversionRepositoryBrowser
instances
-
-