hudson.scm.browsers
Class CollabNetSVN

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.scm.RepositoryBrowser<?>>
      extended by hudson.scm.RepositoryBrowser<SubversionChangeLogSet.LogEntry>
          extended by hudson.scm.SubversionRepositoryBrowser
              extended by hudson.scm.browsers.CollabNetSVN
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, java.io.Serializable

public class CollabNetSVN
extends SubversionRepositoryBrowser

RepositoryBrowser implementation for CollabNet hosted Subversion repositories. This enables Hudson to integrate with the repository browsers built-in to CollabNet-powered sites such as Java.net and Tigris.org.

Author:
Daniel Dyer
See Also:
Serialized Form

Nested Class Summary
static class CollabNetSVN.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 java.net.URL url
           
 
Constructor Summary
CollabNetSVN(java.net.URL url)
           
 
Method Summary
 java.net.URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet)
          
 java.net.URL getDiffLink(SubversionChangeLogSet.Path path)
          Determines the link to the diff between the version in the specified revision of SubversionChangeLogSet.Path to its previous version.
 java.net.URL getFileLink(SubversionChangeLogSet.Path path)
          Determines the link to a single file under Subversion.
 
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

public final java.net.URL url
Constructor Detail

CollabNetSVN

@DataBoundConstructor
public CollabNetSVN(java.net.URL url)
Parameters:
url - The repository browser URL for the root of the project. For example, a Java.net project called "myproject" would use https://myproject.dev.java.net/source/browse/myproject
Method Detail

getDiffLink

public java.net.URL getDiffLink(SubversionChangeLogSet.Path path)
                         throws java.io.IOException
Determines the link to the diff between the version in the specified revision of SubversionChangeLogSet.Path to its previous version.

Specified by:
getDiffLink in class SubversionRepositoryBrowser
Returns:
null if the browser doesn't have any URL for diff.
Throws:
java.io.IOException

getFileLink

public java.net.URL getFileLink(SubversionChangeLogSet.Path path)
                         throws java.io.IOException
Determines the link to a single file under Subversion. This page should display all the past revisions of this file, etc.

Specified by:
getFileLink in class SubversionRepositoryBrowser
Returns:
null if the browser doesn't have any suitable URL.
Throws:
java.io.IOException

getChangeSetLink

public java.net.URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet)
                              throws java.io.IOException

Specified by:
getChangeSetLink in class hudson.scm.RepositoryBrowser<SubversionChangeLogSet.LogEntry>
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.