public class RepositoryCachingFacadeImpl extends Object implements RepositoryCachingFacade
Modifier and Type | Method and Description |
---|---|
List<VcsBranch> |
getOpenBranches(BranchDetectionCapableRepository repository,
String context)
Retrieve open branches from the given repository.
|
List<VcsBranch> |
getOpenBranches(VcsBranchDetector branchDetector,
VcsRepositoryData repositoryData) |
List<VcsPullRequest> |
getOpenPullRequests(VcsPullRequestDetector pullRequestDetector,
VcsRepositoryData repositoryData) |
void |
invalidate(BranchDetectionCapableRepository repository,
String context)
Invalidate cache for given parameters
|
void |
invalidate(VcsBranchDetector branchDetector,
VcsRepositoryData repositoryData) |
void |
invalidate(VcsPullRequestDetector pullRequestDetector,
VcsRepositoryData repositoryData) |
@NotNull public List<VcsBranch> getOpenBranches(BranchDetectionCapableRepository repository, @Nullable String context) throws RepositoryException
RepositoryCachingFacade
Set
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).getOpenBranches
in interface RepositoryCachingFacade
repository
- to check for branchescontext
- For svn its the branchRoot, not sure what its for otherwise.List
of branch names. May be empty.RepositoryException
@NotNull public List<VcsBranch> getOpenBranches(@NotNull VcsBranchDetector branchDetector, @NotNull VcsRepositoryData repositoryData) throws RepositoryException
getOpenBranches
in interface RepositoryCachingFacade
RepositoryException
@NotNull public List<VcsPullRequest> getOpenPullRequests(@NotNull VcsPullRequestDetector pullRequestDetector, @NotNull VcsRepositoryData repositoryData) throws RepositoryException
getOpenPullRequests
in interface RepositoryCachingFacade
RepositoryException
public void invalidate(BranchDetectionCapableRepository repository, @Nullable String context)
RepositoryCachingFacade
invalidate
in interface RepositoryCachingFacade
repository
- where to check for branchescontext
- For svn its the branchRoot, not sure what its for otherwise.public void invalidate(VcsBranchDetector branchDetector, VcsRepositoryData repositoryData)
invalidate
in interface RepositoryCachingFacade
public void invalidate(VcsPullRequestDetector pullRequestDetector, VcsRepositoryData repositoryData)
invalidate
in interface RepositoryCachingFacade
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.