org.apache.maven.scm.manager
Interface ScmManager

All Known Implementing Classes:
AbstractScmManager

public interface ScmManager

Version:
$Id: ScmManager.java 390025 2006-03-30 07:56:55Z carlos $
Author:
Trygve Laugstøl, Brett Porter, Emmanuel Venisse

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 ScmProvider getProviderByRepository(ScmRepository repository)
           
 ScmProvider getProviderByType(java.lang.String providerType)
           
 ScmProvider getProviderByUrl(java.lang.String scmUrl)
           
 ScmRepository makeProviderScmRepository(java.lang.String providerType, java.io.File path)
           
 ScmRepository makeScmRepository(java.lang.String scmUrl)
           
 java.util.List validateScmRepository(java.lang.String scmUrl)
          Validate a SCM URL
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

makeScmRepository

public ScmRepository makeScmRepository(java.lang.String scmUrl)
                                throws ScmRepositoryException,
                                       NoSuchScmProviderException
Throws:
ScmRepositoryException
NoSuchScmProviderException

makeProviderScmRepository

public ScmRepository makeProviderScmRepository(java.lang.String providerType,
                                               java.io.File path)
                                        throws ScmRepositoryException,
                                               UnknownRepositoryStructure,
                                               NoSuchScmProviderException
Throws:
ScmRepositoryException
UnknownRepositoryStructure
NoSuchScmProviderException

validateScmRepository

public java.util.List validateScmRepository(java.lang.String scmUrl)
Validate a SCM URL

Parameters:
scmUrl - the SCM URL to validate
Returns:
List of String objects with the messages returned by the SCM provider

getProviderByUrl

public ScmProvider getProviderByUrl(java.lang.String scmUrl)
                             throws ScmRepositoryException,
                                    NoSuchScmProviderException
Throws:
ScmRepositoryException
NoSuchScmProviderException

getProviderByType

public ScmProvider getProviderByType(java.lang.String providerType)
                              throws NoSuchScmProviderException
Throws:
NoSuchScmProviderException

getProviderByRepository

public ScmProvider getProviderByRepository(ScmRepository repository)
                                    throws NoSuchScmProviderException
Throws:
NoSuchScmProviderException


Copyright © 2003-2006 Apache Software Foundation. All Rights Reserved.