Package org.xwiki.extension
Class AbstractExtensionScm
- java.lang.Object
-
- org.xwiki.extension.AbstractExtensionScm
-
- All Implemented Interfaces:
ExtensionScm
- Direct Known Subclasses:
DefaultExtensionScm
public abstract class AbstractExtensionScm extends Object implements ExtensionScm
Base class or implementations ofExtensionScm
.- Since:
- 6.3M1
- Version:
- $Id: 71e1b442cf081234b2a0ccbba986409cf49bae14 $
-
-
Constructor Summary
Constructors Constructor Description AbstractExtensionScm(String url, ExtensionScmConnection connection, ExtensionScmConnection developerConnection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
ExtensionScmConnection
getConnection()
Get the source control management system connection that describes the repository and how to connect to the repository.ExtensionScmConnection
getDeveloperConnection()
Same asExtensionScm.getConnection()
, but for developers, i.e.String
getUrl()
Get the URL to the project's browsable SCM repository.int
hashCode()
-
-
-
Constructor Detail
-
AbstractExtensionScm
public AbstractExtensionScm(String url, ExtensionScmConnection connection, ExtensionScmConnection developerConnection)
- Parameters:
url
- the browsable URLconnection
- the read connectiondeveloperConnection
- the write connection
-
-
Method Detail
-
getConnection
public ExtensionScmConnection getConnection()
Description copied from interface:ExtensionScm
Get the source control management system connection that describes the repository and how to connect to the repository. Usually read only.- Specified by:
getConnection
in interfaceExtensionScm
- Returns:
- the connection
-
getDeveloperConnection
public ExtensionScmConnection getDeveloperConnection()
Description copied from interface:ExtensionScm
Same asExtensionScm.getConnection()
, but for developers, i.e. this scm connection will not be read only.- Specified by:
getDeveloperConnection
in interfaceExtensionScm
- Returns:
- the connection
-
getUrl
public String getUrl()
Description copied from interface:ExtensionScm
Get the URL to the project's browsable SCM repository.- Specified by:
getUrl
in interfaceExtensionScm
- Returns:
- the URL
-
-