net.sf.bloof.scm.cvsplugin
Class CvsAccess

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

public class CvsAccess
extends java.lang.Object
implements ScmAccess

Container for access information in order to access a CVS repository

Version:
$Id: CvsAccess.java,v 1.7 2003/08/18 11:11:10 pekacki Exp $
Author:
Lukasz Pekacki

Constructor Summary
CvsAccess(RepositoryLocation aLocation, LoginDetails aLoginDetails, java.lang.String aModuleName, java.lang.String aName)
          Constructs a CvsAccess object
CvsAccess(RepositoryLocation aLocation, java.lang.String aLogFileName, java.lang.String aName)
          Constructs a CvsAccess object for accessing a local file or a sample file
CvsAccess(RepositoryLocation aLocation, java.lang.String aModuleName, java.lang.String aExternalCommand, boolean aIsExternal, java.lang.String aName)
          Constructs a CvsAccess object for a external connection
 
Method Summary
 ScmConnectionMethod getConnectionMethod()
          Returns the methodof the connection with the SCM system
 java.lang.String getCvsRoot()
          Returns the CVSROOT Representation of this Location
 java.lang.String getExternalCommand()
          Returns the externalCommand.
 java.lang.String getHost()
          Return the hostname of the SCM system
 RepositoryLocation getLocation()
          Returns the location.
 java.lang.String getLogfilePath()
          Returns the path to the logfile on the local disk
 java.lang.String getLogin()
          Returns the login of the user
 LoginDetails getLoginDetails()
          Returns the loginDetails.
 java.lang.String getModuleName()
          Returns the modulname of the software project
 java.lang.String getName()
          Returns the name of this access
 java.lang.String getPassword()
          Returns the password of the user
 java.lang.String getRepositoryRoot()
          Returns the root directory of the SCM system
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CvsAccess

public CvsAccess(RepositoryLocation aLocation,
                 LoginDetails aLoginDetails,
                 java.lang.String aModuleName,
                 java.lang.String aName)
Constructs a CvsAccess object

Parameters:
aLocation - location of the CVS repository
aLoginDetails - details of the login
aModuleName - name of the module to log
aName - name of the access

CvsAccess

public CvsAccess(RepositoryLocation aLocation,
                 java.lang.String aLogFileName,
                 java.lang.String aName)
Constructs a CvsAccess object for accessing a local file or a sample file

Parameters:
aLocation - location of the CVS repository
aLogFileName - path to the logfile
aName - name of the access

CvsAccess

public CvsAccess(RepositoryLocation aLocation,
                 java.lang.String aModuleName,
                 java.lang.String aExternalCommand,
                 boolean aIsExternal,
                 java.lang.String aName)
Constructs a CvsAccess object for a external connection

Parameters:
aLocation - location of the CVS repository
aExternalCommand - external to command to be used
aModuleName - name of the module to log
aIsExternal - flag for usage of external command constructor
aName - name of the access
Method Detail

getConnectionMethod

public ScmConnectionMethod getConnectionMethod()
Returns the methodof the connection with the SCM system

Specified by:
getConnectionMethod in interface ScmAccess
Returns:
ScmConnectionMethod

getCvsRoot

public java.lang.String getCvsRoot()
Returns the CVSROOT Representation of this Location

Returns:
CVSROOT Representation of this Location

getExternalCommand

public java.lang.String getExternalCommand()
Returns the externalCommand.

Returns:
String

getHost

public java.lang.String getHost()
Return the hostname of the SCM system

Specified by:
getHost in interface ScmAccess
Returns:
String hostname of the SCM system

getLocation

public RepositoryLocation getLocation()
Returns the location.

Returns:
RepositoryLocation

getLogfilePath

public java.lang.String getLogfilePath()
Returns the path to the logfile on the local disk

Specified by:
getLogfilePath in interface ScmAccess
Returns:
String path to the logfile on the local disk

getLogin

public java.lang.String getLogin()
Returns the login of the user

Specified by:
getLogin in interface ScmAccess
Returns:
String login of the user

getLoginDetails

public LoginDetails getLoginDetails()
Returns the loginDetails.

Returns:
LoginDetails

getModuleName

public java.lang.String getModuleName()
Returns the modulname of the software project

Specified by:
getModuleName in interface ScmAccess
Returns:
String modulname of the software project

getName

public java.lang.String getName()
Description copied from interface: ScmAccess
Returns the name of this access

Specified by:
getName in interface ScmAccess
Returns:
name of this access
See Also:
ScmAccess.getName()

getPassword

public java.lang.String getPassword()
Returns the password of the user

Specified by:
getPassword in interface ScmAccess
Returns:
String password of the user

getRepositoryRoot

public java.lang.String getRepositoryRoot()
Returns the root directory of the SCM system

Specified by:
getRepositoryRoot in interface ScmAccess
Returns:
String root directory of the SCM system

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.