| com.atlassian.bitbucket.scm.git.command.GitPullRequestCommandFactory |
Class Overview
Overrides methods from the standard PluginPullRequestCommandFactory interface and returns GitCommand
instances instead of simple Command or AsyncCommand instances. This allows commands created by this
factory to be used synchronously or asynchronously at the caller's discretion, rather than fixing execution to one
approach or the other.
This interface does not add any commands to the standard interface. It only covariantly adjusts their return
types.
Summary
| Public Methods |
|
@Nonnull
GitCommand<Void>
|
bulkRescope(BulkRescopeCommandParameters parameters)
|
|
@Deprecated
@Nonnull
GitCommand<Void>
|
changes(PullRequest pullRequest, PullRequestChangeCommandParameters parameters, ChangeCallback callback)
|
|
@Nonnull
GitCommand<Void>
|
changes(PullRequest pullRequest, PullRequestChangesCommandParameters parameters, ChangeCallback callback)
|
|
@Nonnull
GitCommand<Void>
|
commits(PullRequest pullRequest, PullRequestCommitsCommandParameters parameters, CommitCallback callback)
|
|
@Deprecated
@Nonnull
GitCommand<Void>
|
commits(PullRequest pullRequest, CommitCallback callback)
|
|
@Nonnull
GitCommand<Void>
|
delete(PullRequest pullRequest, PullRequestDeleteCommandParameters parameters)
|
|
@Nonnull
GitCommand<Void>
|
diff(PullRequest pullRequest, PullRequestDiffCommandParameters parameters, DiffContentCallback callback)
|
|
@Nonnull
GitCommand<PullRequestEffectiveDiff>
|
effectiveDiff(PullRequest pullRequest)
|
|
@Nonnull
GitCommand<Branch>
|
merge(PullRequest pullRequest, PullRequestMergeCommandParameters parameters)
|
|
@Nonnull
GitCommand<PullRequestMergeResult>
|
tryMerge(PullRequest pullRequest)
Attempt to merge the pull request to determine what the expected result of actually merging it would be.
|
|
[Expand]
Inherited Methods |
From interface
com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
|
@Nonnull
Command<Void>
|
bulkRescope(BulkRescopeCommandParameters arg0)
|
|
@Deprecated
@Nonnull
Command<Void>
|
changes(PullRequest arg0, PullRequestChangeCommandParameters arg1, ChangeCallback arg2)
|
|
@Nonnull
Command<Void>
|
changes(PullRequest arg0, PullRequestChangesCommandParameters arg1, ChangeCallback arg2)
|
|
@Nonnull
Command<Void>
|
commits(PullRequest arg0, PullRequestCommitsCommandParameters arg1, CommitCallback arg2)
|
|
@Deprecated
@Nonnull
Command<Void>
|
commits(PullRequest arg0, CommitCallback arg1)
|
|
@Nonnull
Command<Void>
|
delete(PullRequest arg0, PullRequestDeleteCommandParameters arg1)
|
|
@Nonnull
Command<Void>
|
diff(PullRequest arg0, PullRequestDiffCommandParameters arg1, DiffContentCallback arg2)
|
|
@Nonnull
Command<PullRequestEffectiveDiff>
|
effectiveDiff(PullRequest arg0)
|
|
@Nonnull
Command<Branch>
|
merge(PullRequest arg0, PullRequestMergeCommandParameters arg1)
|
|
@Nonnull
Command<PullRequestMergeResult>
|
tryMerge(PullRequest arg0)
|
|
Public Methods
Parameters
| parameters
| describes the repository and provides a context for the command to use to retrieve
the rescopes and apply updates |
Returns
- a command which can be used to calculate pull request rescopes synchronously or asynchronously
This method is deprecated.
in 6.0 for removal in 7.0. Use
changes(PullRequest, PullRequestChangesCommandParameters, ChangeCallback) instead.
Parameters
| pullRequest
| the pull request to retrieve the change tree for |
| parameters
| parameters controlling which changes are returned |
| callback
| a callback to receive the changes |
Returns
- a command which can retrieve changes synchronously or asynchronously
Parameters
| pullRequest
| the pull request to retrieve the change tree for |
| parameters
| parameters controlling which changes are returned |
| callback
| a callback to receive the changes |
Returns
- a command which can retrieve changes synchronously or asynchronously
Parameters
| pullRequest
| the pull request to retrieve commits for |
| parameters
| parameters controlling how commits are streamed |
| callback
| a callback to receive the commits |
Returns
- a command which can retrieve commits synchronously or asynchronously
Parameters
| pullRequest
| the pull request to delete |
| parameters
| parameters providing context for the deleted pull request |
Returns
- a command which, when executed, will delete the specified pull request, releasing any artifacts,
such as refs or objects, that are associated with it
Parameters
| pullRequest
| the pull request to retrieve diffs for |
| parameters
| parameters controlling which diffs are returned, and how much |
| callback
| a callback to receive the diff output |
Returns
- a command which can retrieve diffs synchronously or asynchronously
Parameters
| pullRequest
| the pull request to resolve the effective diff for |
Returns
- a command which can resolve the effective diff for the pull request synchronously or asynchronously
Parameters
| pullRequest
| the pull request to merge |
| parameters
| parameters controlling how the pull request is merged |
Returns
- a command which can be used to merge the pull request synchronously or asynchronously
Attempt to merge the pull request to determine what the expected result of actually merging it would be.
Parameters
| pullRequest
| the pull request to test for merge-ability |
Returns
- the result of trying to merge the pull request