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 booleanequals(Object obj)ExtensionScmConnectiongetConnection()Get the source control management system connection that describes the repository and how to connect to the repository.ExtensionScmConnectiongetDeveloperConnection()Same asExtensionScm.getConnection(), but for developers, i.e.StringgetUrl()Get the URL to the project's browsable SCM repository.inthashCode()
-
-
-
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:ExtensionScmGet the source control management system connection that describes the repository and how to connect to the repository. Usually read only.- Specified by:
getConnectionin interfaceExtensionScm- Returns:
- the connection
-
getDeveloperConnection
public ExtensionScmConnection getDeveloperConnection()
Description copied from interface:ExtensionScmSame asExtensionScm.getConnection(), but for developers, i.e. this scm connection will not be read only.- Specified by:
getDeveloperConnectionin interfaceExtensionScm- Returns:
- the connection
-
getUrl
public String getUrl()
Description copied from interface:ExtensionScmGet the URL to the project's browsable SCM repository.- Specified by:
getUrlin interfaceExtensionScm- Returns:
- the URL
-
-