hudson.scm
Class RepositoryBrowser<E extends ChangeLogSet.Entry>

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
      extended by hudson.scm.RepositoryBrowser<E>
All Implemented Interfaces:
ExtensionPoint, Describable<RepositoryBrowser<?>>, Serializable

@ExportedBean
public abstract class RepositoryBrowser<E extends ChangeLogSet.Entry>
extends AbstractDescribableImpl<RepositoryBrowser<?>>
implements ExtensionPoint, Serializable

Connects Hudson to repository browsers like ViewCVS or FishEye, so that Hudson can generate links to them.

RepositoryBrowser instance is normally created as a result of job configuration, and stores immutable configuration information (such as the URL of the FishEye site).

RepositoryBrowser is persisted with SCM.

To have Hudson recognize RepositoryBrowser, put Extension on your Descriptor.

Since:
1.89
Author:
Kohsuke Kawaguchi
See Also:
RepositoryBrowsers, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
RepositoryBrowser()
           
 
Method Summary
static DescriptorExtensionList<RepositoryBrowser<?>,Descriptor<RepositoryBrowser<?>>> all()
          Returns all the registered RepositoryBrowser descriptors.
abstract  URL getChangeSetLink(E changeSet)
          Determines the link to the given change set.
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryBrowser

public RepositoryBrowser()
Method Detail

getChangeSetLink

public abstract URL getChangeSetLink(E changeSet)
                              throws IOException
Determines the link to the given change set.

Returns:
null if this repository browser doesn't have any meaningful URL for a change set (for example, ViewCVS doesn't have any page for a change set, whereas FishEye does.)
Throws:
IOException

all

public static DescriptorExtensionList<RepositoryBrowser<?>,Descriptor<RepositoryBrowser<?>>> all()
Returns all the registered RepositoryBrowser descriptors.



Copyright © 2004-2013 Hudson. All Rights Reserved.