Package com.atlassian.bamboo.repository
Class RepositoryCachingFacadeImpl
- java.lang.Object
-
- com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl
-
- All Implemented Interfaces:
RepositoryCachingFacade
public class RepositoryCachingFacadeImpl extends Object implements RepositoryCachingFacade
A wrapper around calls to Repository methods that provides caching of method results.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull List<VcsBranch>
getOpenBranches(@NotNull VcsBranchDetector branchDetector, @NotNull VcsRepositoryData repositoryData)
Retrieve open branches from the given repository.@NotNull List<VcsPullRequest>
getOpenPullRequests(@NotNull VcsPullRequestDetector pullRequestDetector, @NotNull VcsRepositoryData repositoryData)
-
-
-
Method Detail
-
getOpenBranches
@NotNull public @NotNull List<VcsBranch> getOpenBranches(@NotNull @NotNull VcsBranchDetector branchDetector, @NotNull @NotNull VcsRepositoryData repositoryData) throws RepositoryException
Description copied from interface:RepositoryCachingFacade
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).- Specified by:
getOpenBranches
in interfaceRepositoryCachingFacade
- Returns:
List
of branch names. May be empty.- Throws:
RepositoryException
-
getOpenPullRequests
@NotNull public @NotNull List<VcsPullRequest> getOpenPullRequests(@NotNull @NotNull VcsPullRequestDetector pullRequestDetector, @NotNull @NotNull VcsRepositoryData repositoryData) throws RepositoryException
- Specified by:
getOpenPullRequests
in interfaceRepositoryCachingFacade
- Throws:
RepositoryException
-
-