public class ListBranches extends java.lang.Object implements RestReadView<ProjectResource>
Constructor and Description |
---|
ListBranches(GitRepositoryManager repoManager,
PermissionBackend permissionBackend,
DynamicMap<RestView<BranchResource>> branchViews,
UiActions uiActions,
WebLinks webLinks) |
Modifier and Type | Method and Description |
---|---|
java.util.List<BranchInfo> |
apply(ProjectResource rsrc)
Process the view operation by reading from the resource.
|
ListBranches |
request(ProjectApi.ListRefsRequest<BranchInfo> request) |
void |
setLimit(int limit) |
void |
setMatchRegex(java.lang.String matchRegex) |
void |
setMatchSubstring(java.lang.String matchSubstring) |
void |
setStart(int start) |
@Inject public ListBranches(GitRepositoryManager repoManager, PermissionBackend permissionBackend, DynamicMap<RestView<BranchResource>> branchViews, UiActions uiActions, WebLinks webLinks)
public void setLimit(int limit)
public void setStart(int start)
public void setMatchSubstring(java.lang.String matchSubstring)
public void setMatchRegex(java.lang.String matchRegex)
public ListBranches request(ProjectApi.ListRefsRequest<BranchInfo> request)
public java.util.List<BranchInfo> apply(ProjectResource rsrc) throws RestApiException, java.io.IOException, PermissionBackendException
RestReadView
apply
in interface RestReadView<ProjectResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.AuthException
- the client is not permitted to access this view.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.ResourceConflictException
- the resource state does not permit this view to make the
changes at this time.RestApiException
java.io.IOException
PermissionBackendException