hudson.plugins.bazaar.browsers
Class OpenGrok

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.scm.RepositoryBrowser<?>>
      extended by hudson.scm.RepositoryBrowser<BazaarChangeSet>
          extended by hudson.plugins.bazaar.BazaarRepositoryBrowser
              extended by hudson.plugins.bazaar.browsers.OpenGrok
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, java.io.Serializable

public class OpenGrok
extends BazaarRepositoryBrowser

RepositoryBrowser for OpenGrok.

Author:
Alexandre Garnier
See Also:
Serialized Form

Nested Class Summary
static class OpenGrok.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static OpenGrok.DescriptorImpl DESCRIPTOR
           
 java.net.URL url
          The URL of the OpenGrok repository.
 
Constructor Summary
OpenGrok(java.net.URL url, java.lang.String rootModule)
           
 
Method Summary
 java.net.URL getChangeSetLink(BazaarChangeSet changeSet)
           
 hudson.model.Descriptor<hudson.scm.RepositoryBrowser<?>> getDescriptor()
           
 java.net.URL getDiffLink(BazaarAffectedFile affectedFile)
          Determines the link to the diff between the version in the specified revision of BazaarAffectedFile to its previous version.
 java.net.URL getFileLink(BazaarAffectedFile affectedFile)
          Determines the link to a single file under Bazaar.
 
Methods inherited from class hudson.plugins.bazaar.BazaarRepositoryBrowser
isFolderPath, isRenaming
 
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
 
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
The URL of the OpenGrok repository. This is normally like http://src.opensolaris.org/source/ Normalized to have '/' at the tail.


DESCRIPTOR

@Extension
public static final OpenGrok.DescriptorImpl DESCRIPTOR
Constructor Detail

OpenGrok

@DataBoundConstructor
public OpenGrok(java.net.URL url,
                                     java.lang.String rootModule)
Method Detail

getChangeSetLink

public java.net.URL getChangeSetLink(BazaarChangeSet changeSet)
                              throws java.io.IOException
Specified by:
getChangeSetLink in class hudson.scm.RepositoryBrowser<BazaarChangeSet>
Throws:
java.io.IOException

getDiffLink

public java.net.URL getDiffLink(BazaarAffectedFile affectedFile)
                         throws java.io.IOException
Description copied from class: BazaarRepositoryBrowser
Determines the link to the diff between the version in the specified revision of BazaarAffectedFile to its previous version.

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

getFileLink

public java.net.URL getFileLink(BazaarAffectedFile affectedFile)
                         throws java.io.IOException
Description copied from class: BazaarRepositoryBrowser
Determines the link to a single file under Bazaar. This page should display all the past revisions of this file, etc.

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

getDescriptor

public hudson.model.Descriptor<hudson.scm.RepositoryBrowser<?>> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>
Overrides:
getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.scm.RepositoryBrowser<?>>


Copyright © 2011. All Rights Reserved.