| java.lang.Object | |
| ↳ | com.atlassian.stash.scm.AbstractScm |
Convenience implementation of Scm (and, until 4.0, Scm2) that returns null for all of
the optional contract members. Required members have no default implementation.
Scm implementation.
As new features are added SCMs built on this base class will better retain cross-version support because it
will provide null implementations of new optional members.
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves a
PluginCommandBuilderFactory, used to create ScmCommandBuilder command builders for
custom SCM commands. | |||||||||||
Retrieves a
PluginCompareCommandFactory, used to create Command commands tailored for comparing
refs. | |||||||||||
Retrieves the ScmFeature features that are supported by this SCM.
| |||||||||||
Retrieves a
PluginHookHandlerFactory, used to create com.atlassian.stash.hook.HookHandler | |||||||||||
Retrieves a
PluginPullRequestCommandFactory, used to create Command commands tailored for use
supporting pull requests. | |||||||||||
Retrieves a
PluginRefCommandFactory, used to create Command commands tailored for creating
com.atlassian.stash.repository.Branch branches and com.atlassian.stash.repository.Tag tags. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.stash.scm.Scm
| |||||||||||
From interface
com.atlassian.stash.scm.Scm2
| |||||||||||
Retrieves a PluginCommandBuilderFactory, used to create ScmCommandBuilder command builders for
custom SCM commands.
null.null if the SCM does not support command buildersRetrieves a PluginCompareCommandFactory, used to create Command commands tailored for comparing
refs.
null.null if the SCM does not support itRetrieves the ScmFeature features that are supported by this SCM.
Since the system relies on optional features to provide some functionality, like branch compare and pull requests, it relies on this set to disable functionality that requires features the SCM doesn't provide. Similarly, plugin developers can use the returned features to control which optional features they try to use, rather than checking fornull or handling UnsupportedOperationExceptions.null
Retrieves a PluginHookHandlerFactory, used to create com.atlassian.stash.hook.HookHandler
null if the SCM does not support hooksRetrieves a PluginPullRequestCommandFactory, used to create Command commands tailored for use
supporting pull requests. Repository Repositories using an SCM which implements this method will have
the ability to create, view and merge pull requests.
null. Repository Repositories using such SCMs will not be able to create pull requests.null if the SCM does not support pull requestsRetrieves a PluginRefCommandFactory, used to create Command commands tailored for creating
com.atlassian.stash.repository.Branch branches and com.atlassian.stash.repository.Tag tags.
null. Repository Repositories using such SCMs will not be able create
com.atlassian.stash.repository.Branch branches and com.atlassian.stash.repository.Tag tags.