public interface GitCommandFactory
extends com.atlassian.bitbucket.scm.PluginCommandFactory
PluginCommandFactory 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.
| Modifier and Type | Method and Description |
|---|---|
GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.content.Blame>> |
blame(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.BlameCommandParameters parameters,
com.atlassian.bitbucket.util.PageRequest pageRequest) |
GitCommand<Void> |
branches(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.BranchesCommandParameters parameters,
com.atlassian.bitbucket.repository.BranchCallback callback) |
GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.repository.Branch>> |
branches(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.BranchesCommandParameters parameters,
com.atlassian.bitbucket.util.PageRequest pageRequest) |
GitCommand<Void> |
changes(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.ChangesCommandParameters parameters,
com.atlassian.bitbucket.content.ChangeCallback callback) |
GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.content.Change>> |
changes(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.ChangesCommandParameters parameters,
com.atlassian.bitbucket.util.PageRequest pageRequest) |
GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.commit.Changeset>> |
changesets(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.ChangesetsCommandParameters parameters,
com.atlassian.bitbucket.util.PageRequest pageRequest) |
GitCommand<com.atlassian.bitbucket.commit.Commit> |
commit(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.CommitCommandParameters parameters) |
GitCommand<Void> |
commits(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.CommitsCommandParameters parameters,
com.atlassian.bitbucket.commit.CommitCallback callback) |
GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.commit.Commit>> |
commits(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.CommitsCommandParameters parameters,
com.atlassian.bitbucket.util.PageRequest pageRequest) |
GitCommand<com.atlassian.bitbucket.commit.MinimalCommit> |
commonAncestor(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.CommonAncestorCommandParameters parameters) |
GitCommand<Void> |
create(com.atlassian.bitbucket.repository.Repository repository) |
GitCommand<com.atlassian.bitbucket.repository.Branch> |
defaultBranch(com.atlassian.bitbucket.repository.Repository repository) |
GitCommand<Void> |
delete(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.DeleteCommandParameters parameters) |
GitCommand<Void> |
diff(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.DiffCommandParameters parameters,
com.atlassian.bitbucket.content.DiffContentCallback callback) |
GitCommand<Void> |
directory(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.DirectoryCommandParameters parameters,
com.atlassian.bitbucket.content.ContentTreeCallback callback,
com.atlassian.bitbucket.util.PageRequest pageRequest) |
GitCommand<Void> |
file(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.FileCommandParameters parameters,
com.atlassian.bitbucket.content.FileContentCallback callback,
com.atlassian.bitbucket.util.PageRequest pageRequest) |
GitCommand<Void> |
heads(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.repository.RefCallback callback) |
GitCommand<Void> |
rawFile(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.RawFileCommandParameters parameters,
com.atlassian.bitbucket.io.TypeAwareOutputSupplier outputSupplier) |
GitCommand<Void> |
refs(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.RefsCommandParameters parameters,
com.atlassian.bitbucket.repository.RefCallback callback) |
GitCommand<com.atlassian.bitbucket.repository.Ref> |
resolveRef(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.ResolveRefCommandParameters parameters) |
GitCommand<Map<String,com.atlassian.bitbucket.repository.Ref>> |
resolveRefs(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.ResolveRefsCommandParameters parameters) |
GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.repository.Tag>> |
tags(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.TagsCommandParameters parameters,
com.atlassian.bitbucket.util.PageRequest pageRequest) |
GitCommand<Void> |
tags(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.TagsCommandParameters parameters,
com.atlassian.bitbucket.repository.TagCallback callback) |
GitCommand<Void> |
traverseCommits(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.commit.graph.TraversalCallback callback) |
GitCommand<com.atlassian.bitbucket.content.ContentTreeNode.Type> |
type(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.TypeCommandParameters parameters) |
@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.content.Blame>> blame(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.BlameCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest)
blame in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> branches(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.BranchesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.repository.BranchCallback callback)
branches in interface com.atlassian.bitbucket.scm.PluginCommandFactoryrepository - the repository to stream branches fromparameters - parameters describing any filter to apply, and the order to stream branches incallback - a callback to receive the streamed branches@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.repository.Branch>> branches(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.BranchesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest)
branches in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> changes(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ChangesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.ChangeCallback callback)
changes in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.content.Change>> changes(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ChangesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest)
changes in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.commit.Changeset>> changesets(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ChangesetsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest)
changesets in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<com.atlassian.bitbucket.commit.Commit> commit(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.CommitCommandParameters parameters)
commit in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.commit.Commit>> commits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.CommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest)
commits in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> commits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.CommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.commit.CommitCallback callback)
commits in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<com.atlassian.bitbucket.commit.MinimalCommit> commonAncestor(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.CommonAncestorCommandParameters parameters)
commonAncestor in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> create(@Nonnull com.atlassian.bitbucket.repository.Repository repository)
create in interface com.atlassian.bitbucket.scm.PluginCommandFactoryrepository - the repository to create@Nonnull GitCommand<com.atlassian.bitbucket.repository.Branch> defaultBranch(@Nonnull com.atlassian.bitbucket.repository.Repository repository)
defaultBranch in interface com.atlassian.bitbucket.scm.PluginCommandFactoryrepository - the repository to retrieve the default branch for@Nonnull GitCommand<Void> delete(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.DeleteCommandParameters parameters)
delete in interface com.atlassian.bitbucket.scm.PluginCommandFactoryrepository - the repository to delete@Nonnull GitCommand<Void> diff(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.DiffCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.DiffContentCallback callback)
diff in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> directory(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.DirectoryCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.ContentTreeCallback callback, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest)
directory in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> file(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.FileCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.FileContentCallback callback, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest)
file in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> heads(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.repository.RefCallback callback)
heads in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> rawFile(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.RawFileCommandParameters parameters, @Nonnull com.atlassian.bitbucket.io.TypeAwareOutputSupplier outputSupplier)
rawFile in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> refs(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.RefsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.repository.RefCallback callback)
refs in interface com.atlassian.bitbucket.scm.PluginCommandFactoryrepository - the repository to stream refs forparameters - parameters to allow evolving the SPI over timecallback - a callback to receive the streamed refs@Nonnull GitCommand<com.atlassian.bitbucket.repository.Ref> resolveRef(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ResolveRefCommandParameters parameters)
resolveRef in interface com.atlassian.bitbucket.scm.PluginCommandFactoryrepository - the repository to resolve the ref inparameters - parameters describing the ref to resolve, optionally including a type hintBranch or
Tag@Nonnull GitCommand<Map<String,com.atlassian.bitbucket.repository.Ref>> resolveRefs(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.ResolveRefsCommandParameters parameters)
resolveRefs in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<com.atlassian.bitbucket.util.Page<com.atlassian.bitbucket.repository.Tag>> tags(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.TagsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest)
tags in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> tags(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.TagsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.repository.TagCallback callback)
tags in interface com.atlassian.bitbucket.scm.PluginCommandFactory@Nonnull GitCommand<Void> traverseCommits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.commit.graph.TraversalCallback callback)
traverseCommits in interface com.atlassian.bitbucket.scm.PluginCommandFactoryrepository - the repository to traverse commits forcallback - the callback to receive the streamed commits@Nonnull GitCommand<com.atlassian.bitbucket.content.ContentTreeNode.Type> type(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.TypeCommandParameters parameters)
type in interface com.atlassian.bitbucket.scm.PluginCommandFactoryCopyright © 2019 Atlassian. All rights reserved.