Package com.atlassian.bamboo.repository
Interface RepositoryCachingFacade
- All Known Implementing Classes:
RepositoryCachingFacadeImpl
public interface RepositoryCachingFacade
A wrapper around calls to Repository methods that provides caching of method results. Cache is generally very short lived
- Since:
- v5.1
-
Method Summary
Modifier and TypeMethodDescriptiongetOpenBranches
(@NotNull VcsBranchDetector branchDetector, @NotNull VcsRepositoryData repositoryData) Retrieve open branches from the given repository.@NotNull List<VcsPullRequest>
getOpenPullRequests
(@NotNull VcsPullRequestDetector pullRequestDetector, @NotNull VcsRepositoryData repositoryData)
-
Method Details
-
getOpenBranches
@NotNull @NotNull List<VcsBranch> getOpenBranches(@NotNull @NotNull VcsBranchDetector branchDetector, @NotNull @NotNull VcsRepositoryData repositoryData) throws RepositoryException Retrieve open branches from the given repository.List
of open branches that are discovered in the repository. Returns empty collection if no branches at all (can that happen?). An open branch is a branch that is considered 'open' by underlying VCS - it has nothing to do with the actual development on that branch (recent commits or so).- Returns:
List
of branch names. May be empty.- Throws:
RepositoryException
-
getOpenPullRequests
@NotNull @NotNull List<VcsPullRequest> getOpenPullRequests(@NotNull @NotNull VcsPullRequestDetector pullRequestDetector, @NotNull @NotNull VcsRepositoryData repositoryData) throws RepositoryException - Throws:
RepositoryException
-