hudson.plugins.perforce
Class PerforceRepositoryBrowser

java.lang.Object
  extended by hudson.scm.RepositoryBrowser<PerforceChangeLogEntry>
      extended by hudson.plugins.perforce.PerforceRepositoryBrowser
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, java.io.Serializable
Direct Known Subclasses:
FishEyePerforce, P4Web

public abstract class PerforceRepositoryBrowser
extends hudson.scm.RepositoryBrowser<PerforceChangeLogEntry>

RepositoryBrowser for Perforce.

Author:
Mike wille
See Also:
Serialized Form

Constructor Summary
PerforceRepositoryBrowser()
           
 
Method Summary
abstract  java.net.URL getDiffLink(com.tek42.perforce.model.Changelist.FileEntry file)
          Determines the link to the diff between the version.
abstract  java.net.URL getFileLink(com.tek42.perforce.model.Changelist.FileEntry file)
          Determines the link to a single file under Perforce.
 
Methods inherited from class hudson.scm.RepositoryBrowser
getChangeSetLink, normalizeToEndWithSlash, trimHeadSlash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Describable
getDescriptor
 

Constructor Detail

PerforceRepositoryBrowser

public PerforceRepositoryBrowser()
Method Detail

getDiffLink

public abstract java.net.URL getDiffLink(com.tek42.perforce.model.Changelist.FileEntry file)
                                  throws java.io.IOException
Determines the link to the diff between the version. in the PerforceChangeLogEntry.Change.File to its previous version.

Returns:
null if the browser doesn't have any URL for diff.
Throws:
java.io.IOException

getFileLink

public abstract java.net.URL getFileLink(com.tek42.perforce.model.Changelist.FileEntry file)
                                  throws java.io.IOException
Determines the link to a single file under Perforce. This page should display all the past revisions of this file, etc.

Returns:
null if the browser doesn't have any suitable URL.
Throws:
java.io.IOException


Copyright © 2007. All Rights Reserved.