Package net.sf.statcvs.output
Class TracIntegration
- java.lang.Object
-
- net.sf.statcvs.output.TracIntegration
-
- All Implemented Interfaces:
WebRepositoryIntegration
public class TracIntegration extends java.lang.Object implements WebRepositoryIntegration
-
-
Constructor Summary
Constructors Constructor Description TracIntegration(java.lang.String baseURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBaseUrl()
java.lang.String
getDiffUrl(Revision oldRevision, Revision 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 browserjava.lang.String
getFileHistoryUrl(VersionedFile file)
Returns a URL to a file in the web repository browser.java.lang.String
getFileViewUrl(Revision revision)
Returns a URL to a file in the web repository browser.java.lang.String
getFileViewUrl(VersionedFile file)
Returns a URL to a file in the web repository browser.java.lang.String
getName()
Returns the name of the repository browservoid
setAtticFileNames(java.util.Set atticFileNames)
Sets the files that are "in the attic", in the CVS sense.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:WebRepositoryIntegration
Returns the name of the repository browser- Specified by:
getName
in interfaceWebRepositoryIntegration
- Returns:
- the name of the repository browser
-
getDirectoryUrl
public java.lang.String getDirectoryUrl(Directory directory)
Description copied from interface:WebRepositoryIntegration
Returns a URL to a directory in the web repository browser- Specified by:
getDirectoryUrl
in interfaceWebRepositoryIntegration
- Parameters:
directory
- the directory- Returns:
- a URL to the directory in the web repository browser
-
getFileHistoryUrl
public java.lang.String getFileHistoryUrl(VersionedFile file)
Description copied from interface:WebRepositoryIntegration
Returns a URL to a file in the web repository browser. The URL points to a history of all revisions of the file.- Specified by:
getFileHistoryUrl
in interfaceWebRepositoryIntegration
- Parameters:
file
- the file- Returns:
- a URL to the file in the web repository browser
-
getFileViewUrl
public java.lang.String getFileViewUrl(Revision revision)
Description copied from interface:WebRepositoryIntegration
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.- Specified by:
getFileViewUrl
in interfaceWebRepositoryIntegration
- Parameters:
revision
- the revision- Returns:
- a URL to the revision in the web repository browser
-
getBaseUrl
public java.lang.String getBaseUrl()
- Specified by:
getBaseUrl
in interfaceWebRepositoryIntegration
- Returns:
- the base Url
-
getDiffUrl
public java.lang.String getDiffUrl(Revision oldRevision, Revision newRevision)
Description copied from interface:WebRepositoryIntegration
Returns a URL to a diff in the web repository browser. Both revisions must belong to the same VersionedFile.- Specified by:
getDiffUrl
in interfaceWebRepositoryIntegration
- Parameters:
oldRevision
- the old revisionnewRevision
- the new revision- Returns:
- a URL to a diff
-
getFileViewUrl
public java.lang.String getFileViewUrl(VersionedFile file)
Description copied from interface:WebRepositoryIntegration
Returns a URL to a file in the web repository browser. The URL points to a representation of the file's current contents.- Specified by:
getFileViewUrl
in interfaceWebRepositoryIntegration
- Parameters:
file
- the file- Returns:
- a URL to the file in the web repository browser
-
setAtticFileNames
public void setAtticFileNames(java.util.Set atticFileNames)
Description copied from interface:WebRepositoryIntegration
Sets the files that are "in the attic", in the CVS sense. See CVS manual.- Specified by:
setAtticFileNames
in interfaceWebRepositoryIntegration
- Parameters:
atticFileNames
- names of all files (String) in the attic
-
-