public class ListBranches extends Object implements com.google.gerrit.extensions.restapi.RestReadView<ProjectResource>
Constructor and Description |
---|
ListBranches(GitRepositoryManager repoManager,
com.google.gerrit.extensions.registration.DynamicMap<com.google.gerrit.extensions.restapi.RestView<BranchResource>> branchViews,
WebLinks webLinks) |
Modifier and Type | Method and Description |
---|---|
List<com.google.gerrit.extensions.api.projects.BranchInfo> |
apply(ProjectResource rsrc) |
void |
setLimit(int limit) |
void |
setMatchRegex(String matchRegex) |
void |
setMatchSubstring(String matchSubstring) |
void |
setStart(int start) |
@Inject public ListBranches(GitRepositoryManager repoManager, com.google.gerrit.extensions.registration.DynamicMap<com.google.gerrit.extensions.restapi.RestView<BranchResource>> branchViews, WebLinks webLinks)
public void setLimit(int limit)
public void setStart(int start)
public void setMatchSubstring(String matchSubstring)
public void setMatchRegex(String matchRegex)
public List<com.google.gerrit.extensions.api.projects.BranchInfo> apply(ProjectResource rsrc) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException, IOException, com.google.gerrit.extensions.restapi.BadRequestException
apply
in interface com.google.gerrit.extensions.restapi.RestReadView<ProjectResource>
com.google.gerrit.extensions.restapi.ResourceNotFoundException
IOException
com.google.gerrit.extensions.restapi.BadRequestException