hudson.plugins.perforce.browsers
Class Perfbrowse

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.scm.RepositoryBrowser<?>>
      extended by hudson.scm.RepositoryBrowser<PerforceChangeLogEntry>
          extended by hudson.plugins.perforce.PerforceRepositoryBrowser
              extended by hudson.plugins.perforce.browsers.Perfbrowse
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, Serializable

public class Perfbrowse
extends PerforceRepositoryBrowser

RepositoryBrowser for Perforce's Perfbrowse.

Author:
Nick James
See Also:
Serialized Form

Nested Class Summary
static class Perfbrowse.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 String p4Describe
           
 String p4Diff
           
 String p4FileLog
           
 URL url
          The URL of the Perfbrowse server script, e.g.
 
Constructor Summary
Perfbrowse(URL url)
           
 
Method Summary
 URL getChangeSetLink(PerforceChangeLogEntry change)
           
 URL getDiffLink(Changelist.FileEntry file)
          Determines the link to the diff between the version.
 URL getFileLink(Changelist.FileEntry file)
          Determines the link to a single file under Perforce.
 
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 URL url
The URL of the Perfbrowse server script, e.g. http://perforce/perfbrowse.cgi


p4Describe

public final String p4Describe
See Also:
Constant Field Values

p4FileLog

public final String p4FileLog
See Also:
Constant Field Values

p4Diff

public final String p4Diff
See Also:
Constant Field Values
Constructor Detail

Perfbrowse

@DataBoundConstructor
public Perfbrowse(URL url)
Method Detail

getDiffLink

public URL getDiffLink(Changelist.FileEntry file)
                throws IOException
Description copied from class: PerforceRepositoryBrowser
Determines the link to the diff between the version. in the PerforceChangeLogEntry.Change.File to its previous version.

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

getFileLink

public URL getFileLink(Changelist.FileEntry file)
                throws IOException
Description copied from class: PerforceRepositoryBrowser
Determines the link to a single file under Perforce. This page should display all the past revisions of this file, etc.

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

getChangeSetLink

public URL getChangeSetLink(PerforceChangeLogEntry change)
                     throws IOException
Specified by:
getChangeSetLink in class hudson.scm.RepositoryBrowser<PerforceChangeLogEntry>
Throws:
IOException


Copyright © 2004-2012 Hudson. All Rights Reserved.