net.sf.statcvs.output
Interface WebRepositoryIntegration

All Known Implementing Classes:
ChoraIntegration, CvswebIntegration, ViewCvsIntegration

public interface WebRepositoryIntegration

Interface for integration of web repository browsers. Web repository browsers are dynamic web sites where you can browse the contents of a CVS repository, make diffs etc. A good example is ViewCVS.

Version:
$Id: WebRepositoryIntegration.java,v 1.3 2003/04/30 23:42:40 cyganiak Exp $
Author:
Richard Cyganiak

Method Summary
 java.lang.String getDiffUrl(CvsRevision oldRevision, CvsRevision newRevision)
          Returns a URL to a diff in the web repository browser.
 java.lang.String getDirectoryUrl(Directory directory)
          Returns a URL to a directory in the web repository browser
 java.lang.String getFileHistoryUrl(CvsFile file)
          Returns a URL to a file in the web repository browser.
 java.lang.String getFileViewUrl(CvsFile file)
          Returns a URL to a file in the web repository browser.
 java.lang.String getFileViewUrl(CvsRevision revision)
          Returns a URL to a file in the web repository browser.
 java.lang.String getName()
          Returns the name of the repository browser
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the repository browser

Returns:
the name of the repository browser

getDirectoryUrl

public java.lang.String getDirectoryUrl(Directory directory)
Returns a URL to a directory in the web repository browser

Parameters:
directory - the directory
Returns:
a URL to the directory in the web repository browser

getFileHistoryUrl

public java.lang.String getFileHistoryUrl(CvsFile file)
Returns a URL to a file in the web repository browser. The URL points to a history of all revisions of the file.

Parameters:
file - the file
Returns:
a URL to the file in the web repository browser

getFileViewUrl

public java.lang.String getFileViewUrl(CvsFile file)
Returns a URL to a file in the web repository browser. The URL points to a representation of the file's current contents.

Parameters:
file - the file
Returns:
a URL to the file in the web repository browser

getFileViewUrl

public java.lang.String getFileViewUrl(CvsRevision revision)
Returns a URL to a file in the web repository browser. The URL points to a representation of the specific revision given as a parameter.

Parameters:
revision - the revision
Returns:
a URL to the revision in the web repository browser

getDiffUrl

public java.lang.String getDiffUrl(CvsRevision oldRevision,
                                   CvsRevision newRevision)
Returns a URL to a diff in the web repository browser. Both revisions must belong to the same CvsFile.

Parameters:
oldRevision - the old revision
newRevision - the new revision
Returns:
a URL to a diff