hudson.plugins.git.browser
Class RedmineWeb

java.lang.Object
  extended by hudson.scm.RepositoryBrowser<GitChangeSet>
      extended by hudson.plugins.git.browser.GitRepositoryBrowser
          extended by hudson.plugins.git.browser.RedmineWeb
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, java.io.Serializable

public class RedmineWeb
extends GitRepositoryBrowser

Git Browser for Redmine.

Author:
mfriedenhagen
See Also:
Serialized Form

Nested Class Summary
static class RedmineWeb.RedmineWebDescriptor
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
RedmineWeb(java.lang.String url)
           
 
Method Summary
 java.net.URL getChangeSetLink(GitChangeSet changeSet)
           
 java.net.URL getDiffLink(GitChangeSet.Path path)
          Creates a link to the file diff.
 java.net.URL getFileLink(GitChangeSet.Path path)
          Creates a link to the file.
 java.net.URL getUrl()
           
 
Methods inherited from class hudson.scm.RepositoryBrowser
all, getDescriptor, normalizeToEndWithSlash, trimHeadSlash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedmineWeb

@DataBoundConstructor
public RedmineWeb(java.lang.String url)
           throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException
Method Detail

getUrl

public java.net.URL getUrl()

getChangeSetLink

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

getDiffLink

public java.net.URL getDiffLink(GitChangeSet.Path path)
                         throws java.io.IOException
Creates a link to the file diff. https://SERVER/PATH/projects/PROJECT/repository/revisions/a9182a07750c9a0dfd89a8461adf72ef5ef0885b/diff/pom.xml Returns a diff link for EditType.DELETE and EditType.EDIT, for EditType.ADD returns an RedmineWeb#getFileLink(Path).

Specified by:
getDiffLink in class GitRepositoryBrowser
Parameters:
path - affected file path
Returns:
diff link
Throws:
java.io.IOException

getFileLink

public java.net.URL getFileLink(GitChangeSet.Path path)
                         throws java.io.IOException
Creates a link to the file. https://SERVER/PATH/projects/PROJECT/repository/revisions/a9182a07750c9a0dfd89a8461adf72ef5ef0885b/entry/pom.xml For deleted files just returns a diff link, which will have /dev/null as target file.

Specified by:
getFileLink in class GitRepositoryBrowser
Parameters:
path - file
Returns:
file link
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.