Package net.sf.statcvs.output
Class ViewCvsIntegration
java.lang.Object
net.sf.statcvs.output.ViewCvsIntegration
- All Implemented Interfaces:
WebRepositoryIntegration
- Direct Known Subclasses:
ViewVcIntegration
Integration of ViewCVS
- Version:
- $Id: ViewCvsIntegration.java,v 1.14 2008/04/02 11:22:15 benoitx Exp $
- Author:
- Richard Cyganiak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDiffUrl
(Revision oldRevision, Revision newRevision) Returns a URL to a diff in the web repository browser.getDirectoryUrl
(Directory directory) Returns a URL to a directory in the web repository browserReturns a URL to a file in the web repository browser.protected String
getFileUrl
(VersionedFile file, String parameter) getFileViewUrl
(Revision revision) Returns a URL to a file in the web repository browser.getFileViewUrl
(VersionedFile file) Returns a URL to a file in the web repository browser.getName()
Returns the name of the repository browserprotected String
protected boolean
isInAttic
(VersionedFile file) void
setAtticFileNames
(Set atticFileNames) Sets the files that are "in the attic", in the CVS sense.
-
Constructor Details
-
ViewCvsIntegration
- Parameters:
baseURL
- base URL of the ViewCVS installation
-
-
Method Details
-
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
- See Also:
-
getDirectoryUrl
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
- See Also:
-
getFileUrl
-
getFileHistoryUrl
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
- See Also:
-
getFileViewUrl
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
- See Also:
-
getFileViewUrl
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
- See Also:
-
getDiffUrl
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
- See Also:
-
setAtticFileNames
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- See Also:
-
isInAttic
-
getPostfix
-
getBaseUrl
- Specified by:
getBaseUrl
in interfaceWebRepositoryIntegration
- Returns:
- the base Url
-