net.sf.bloof.scm.cvsplugin
Class CvsPlugin

java.lang.Object
  |
  +--net.sf.bloof.scm.cvsplugin.CvsPlugin
All Implemented Interfaces:
ScmPlugin

public class CvsPlugin
extends java.lang.Object
implements ScmPlugin

SCM plugin for CVS

Version:
$Id: CvsPlugin.java,v 1.19 2003/09/11 10:16:22 pekacki Exp $
Author:
Lukasz Pekacki

Field Summary
static CvsAccess MINI_LOG
          mini log file for testing purposes
static char NORMALZIED_PATH_SEPERATOR
          Normalized path seperator
 
Constructor Summary
CvsPlugin()
           
 
Method Summary
protected static java.util.Date convertFromLogTime(java.lang.String aModTime)
          Returns a date from a given modTime String of a cvs logfile
static CvsConnectionMethod getConnectionMethod(java.lang.String aConnMethodString)
          Converts the connection method string into the Integer constant
static java.lang.String[] getConnectionMethods()
          Returns valid connection methods
 ScmRevisionIterator getRevisions(ScmAccess aAccessInformation)
          Returns a Revisioniterator on all revisions of the software project
 ScmRevisionIterator getRevisionsUpdate(ScmAccess aAccessInformation, java.util.Date aFromDate)
          Returns a Revisioniterator on all revisions of the software project
static CvsAccess[] getSamples()
          Returns the sample CvsAccess objects for example usage of the bloof application
static java.lang.String normalizePath(java.lang.String aString)
          Normalizes pathname by replacing all seperators to '/'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINI_LOG

public static final CvsAccess MINI_LOG
mini log file for testing purposes


NORMALZIED_PATH_SEPERATOR

public static final char NORMALZIED_PATH_SEPERATOR
Normalized path seperator

See Also:
Constant Field Values
Constructor Detail

CvsPlugin

public CvsPlugin()
Method Detail

convertFromLogTime

protected static java.util.Date convertFromLogTime(java.lang.String aModTime)
                                            throws java.text.ParseException
Returns a date from a given modTime String of a cvs logfile

Parameters:
aModTime - String of a cvs logfile
Returns:
Date date from a given modTime String of a cvs logfile
java.text.ParseException

getConnectionMethod

public static CvsConnectionMethod getConnectionMethod(java.lang.String aConnMethodString)
Converts the connection method string into the Integer constant

Parameters:
aConnMethodString - named by connection method
Returns:
String[] connection methods

getConnectionMethods

public static java.lang.String[] getConnectionMethods()
Returns valid connection methods

Returns:
String[] connection methods

getSamples

public static CvsAccess[] getSamples()
Returns the sample CvsAccess objects for example usage of the bloof application

Returns:
CvsAccess[]

normalizePath

public static java.lang.String normalizePath(java.lang.String aString)
Normalizes pathname by replacing all seperators to '/'

Parameters:
aString - input path
Returns:
String normalized path

getRevisions

public ScmRevisionIterator getRevisions(ScmAccess aAccessInformation)
                                 throws ScmAccessException
Description copied from interface: ScmPlugin
Returns a Revisioniterator on all revisions of the software project

Specified by:
getRevisions in interface ScmPlugin
Parameters:
aAccessInformation - contains all necessary data for access the repository
Returns:
ScmRevisonIterator
Throws:
ScmAccessException - if an error accessing the SCM System occured
See Also:
ScmPlugin.getRevisions( ScmAccess )

getRevisionsUpdate

public ScmRevisionIterator getRevisionsUpdate(ScmAccess aAccessInformation,
                                              java.util.Date aFromDate)
                                       throws ScmAccessException
Description copied from interface: ScmPlugin
Returns a Revisioniterator on all revisions of the software project

Specified by:
getRevisionsUpdate in interface ScmPlugin
Parameters:
aAccessInformation - contains all necessary data for access the repository
aFromDate - get only revisions newser than this date
Returns:
ScmRevisonIterator
Throws:
ScmAccessException - if an error accessing the SCM System occured
See Also:
ScmPlugin.getRevisionsUpdate(net.sf.bloof.scm.ScmAccess, java.util.Date)


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.