net.sf.statscm
Class Trac

java.lang.Object
  extended by net.sf.statcvs.weblinks.bugs.BugTracker
      extended by net.sf.statscm.Trac
All Implemented Interfaces:
net.sf.statcvs.output.WebRepositoryIntegration

public class Trac
extends net.sf.statcvs.weblinks.bugs.BugTracker
implements net.sf.statcvs.output.WebRepositoryIntegration


Field Summary
protected static java.util.regex.Pattern bugRegex
           
 
Fields inherited from class net.sf.statcvs.weblinks.bugs.BugTracker
NO_BUG_TRACKER
 
Constructor Summary
Trac(java.lang.String baseURL)
           
 
Method Summary
 java.lang.String bugURL(java.lang.String bugNumber)
           
 java.lang.String getBaseUrl()
           
 java.lang.String getDiffUrl(net.sf.statcvs.model.Revision oldRevision, net.sf.statcvs.model.Revision newRevision)
           
 java.lang.String getDirectoryUrl(net.sf.statcvs.model.Directory directory)
           
 java.lang.String getFileHistoryUrl(net.sf.statcvs.model.VersionedFile file)
           
protected  java.lang.String getFileUrl(net.sf.statcvs.model.VersionedFile file)
           
 java.lang.String getFileViewUrl(net.sf.statcvs.model.Revision revision)
           
 java.lang.String getFileViewUrl(net.sf.statcvs.model.VersionedFile file)
           
 java.lang.String getName()
           
protected  boolean isInAttic(net.sf.statcvs.model.VersionedFile file)
           
 void setAtticFileNames(java.util.Set atticFileNames)
           
 java.lang.String toHTMLWithLinks(java.lang.String plainTextInput)
          Filters a String, e.g.
 
Methods inherited from class net.sf.statcvs.weblinks.bugs.BugTracker
baseURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bugRegex

protected static java.util.regex.Pattern bugRegex
Constructor Detail

Trac

public Trac(java.lang.String baseURL)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface net.sf.statcvs.output.WebRepositoryIntegration
Specified by:
getName in class net.sf.statcvs.weblinks.bugs.BugTracker

bugURL

public java.lang.String bugURL(java.lang.String bugNumber)
Specified by:
bugURL in class net.sf.statcvs.weblinks.bugs.BugTracker

toHTMLWithLinks

public java.lang.String toHTMLWithLinks(java.lang.String plainTextInput)
Filters a String, e.g. a commit message, replacing bug references with links to the tracker.

Overrides:
toHTMLWithLinks in class net.sf.statcvs.weblinks.bugs.BugTracker
Parameters:
plainTextInput - String to examine for bug references
Returns:
A copy of input, with bug references replaced with HTML links

getFileUrl

protected java.lang.String getFileUrl(net.sf.statcvs.model.VersionedFile file)

getDiffUrl

public java.lang.String getDiffUrl(net.sf.statcvs.model.Revision oldRevision,
                                   net.sf.statcvs.model.Revision newRevision)
Specified by:
getDiffUrl in interface net.sf.statcvs.output.WebRepositoryIntegration

getDirectoryUrl

public java.lang.String getDirectoryUrl(net.sf.statcvs.model.Directory directory)
Specified by:
getDirectoryUrl in interface net.sf.statcvs.output.WebRepositoryIntegration

getFileHistoryUrl

public java.lang.String getFileHistoryUrl(net.sf.statcvs.model.VersionedFile file)
Specified by:
getFileHistoryUrl in interface net.sf.statcvs.output.WebRepositoryIntegration

getFileViewUrl

public java.lang.String getFileViewUrl(net.sf.statcvs.model.VersionedFile file)
Specified by:
getFileViewUrl in interface net.sf.statcvs.output.WebRepositoryIntegration

getFileViewUrl

public java.lang.String getFileViewUrl(net.sf.statcvs.model.Revision revision)
Specified by:
getFileViewUrl in interface net.sf.statcvs.output.WebRepositoryIntegration

setAtticFileNames

public void setAtticFileNames(java.util.Set atticFileNames)
Specified by:
setAtticFileNames in interface net.sf.statcvs.output.WebRepositoryIntegration

isInAttic

protected boolean isInAttic(net.sf.statcvs.model.VersionedFile file)

getBaseUrl

public java.lang.String getBaseUrl()
Specified by:
getBaseUrl in interface net.sf.statcvs.output.WebRepositoryIntegration


Copyright © 2006-2009. All Rights Reserved.