public class SearchApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.DeploymentStatus, Constants.DeployTokenScope, Constants.Encoding, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.GroupSearchScope, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestSearchIn, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.StateEvent, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
gitLabApi
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Modifier and Type | Method and Description |
---|---|
List<?> |
globalSearch(Constants.SearchScope scope,
String search)
Search globally across the GitLab instance.
|
Pager<?> |
globalSearch(Constants.SearchScope scope,
String search,
int itemsPerPage)
Search globally across the GitLab instance.
|
Stream<?> |
globalSearchStream(Constants.SearchScope scope,
String search)
Search globally across the GitLab instance.
|
List<?> |
groupSearch(Object groupIdOrPath,
Constants.GroupSearchScope scope,
String search)
Search within the specified group.
|
Pager<?> |
groupSearch(Object groupIdOrPath,
Constants.GroupSearchScope scope,
String search,
int itemsPerPage)
Search within the specified group.
|
Stream<?> |
groupSearchStream(Object groupIdOrPath,
Constants.GroupSearchScope scope,
String search)
Search within the specified group.
|
List<?> |
projectSearch(Object projectIdOrPath,
Constants.ProjectSearchScope scope,
String search)
Search within the specified project.
|
Pager<?> |
projectSearch(Object projectIdOrPath,
Constants.ProjectSearchScope scope,
String search,
int itemsPerPage)
Search within the specified project.
|
List<?> |
projectSearch(Object projectIdOrPath,
Constants.ProjectSearchScope scope,
String search,
String ref)
Search within the specified project.
|
Pager<?> |
projectSearch(Object projectIdOrPath,
Constants.ProjectSearchScope scope,
String search,
String ref,
int itemsPerPage)
Search within the specified project.
|
Stream<?> |
projectSearchStream(Object projectIdOrPath,
Constants.ProjectSearchScope scope,
String search)
Search within the specified project.
|
Stream<?> |
projectSearchStream(Object projectIdOrPath,
Constants.ProjectSearchScope scope,
String search,
String ref)
Search within the specified project.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getLabelIdOrName, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validate
public SearchApi(GitLabApi gitLabApi)
public List<?> globalSearch(Constants.SearchScope scope, String search) throws GitLabApiException
GitLab Endpoint: POST /search?scope=:scope&search=:search-query
scope
- search the expression within the specified scope. Currently these scopes are supported:
projects, issues, merge_requests, milestones, snippet_titles, snippet_blobs, userssearch
- the search queryGitLabApiException
- if any exception occurspublic Stream<?> globalSearchStream(Constants.SearchScope scope, String search) throws GitLabApiException
GitLab Endpoint: POST /search?scope=:scope&search=:search-query
scope
- search the expression within the specified scope. Currently these scopes are supported:
projects, issues, merge_requests, milestones, snippet_titles, snippet_blobs, userssearch
- the search queryGitLabApiException
- if any exception occurspublic Pager<?> globalSearch(Constants.SearchScope scope, String search, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: POST /search?scope=:scope&search=:search-query
scope
- search the expression within the specified scope. Currently these scopes are supported:
projects, issues, merge_requests, milestones, snippet_titles, snippet_blobs, userssearch
- the search queryitemsPerPage
- the number of items that will be fetched per pageGitLabApiException
- if any exception occurspublic List<?> groupSearch(Object groupIdOrPath, Constants.GroupSearchScope scope, String search) throws GitLabApiException
GitLab Endpoint: POST /groups/:groupId/search?scope=:scope&search=:search-query
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredscope
- search the expression within the specified scope. Currently these scopes are supported:
projects, issues, merge_requests, milestones, userssearch
- the search queryGitLabApiException
- if any exception occurspublic Stream<?> groupSearchStream(Object groupIdOrPath, Constants.GroupSearchScope scope, String search) throws GitLabApiException
GitLab Endpoint: POST /groups/:groupId/search?scope=:scope&search=:search-query
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredscope
- search the expression within the specified scope. Currently these scopes are supported:
projects, issues, merge_requests, milestones, userssearch
- the search queryGitLabApiException
- if any exception occurspublic Pager<?> groupSearch(Object groupIdOrPath, Constants.GroupSearchScope scope, String search, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: POST /groups/:groupId/search?scope=:scope&search=:search-query
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path, requiredscope
- search the expression within the specified scope. Currently these scopes are supported:
projects, issues, merge_requests, milestones, userssearch
- the search queryitemsPerPage
- the number of items that will be fetched per pageGitLabApiException
- if any exception occurspublic List<?> projectSearch(Object projectIdOrPath, Constants.ProjectSearchScope scope, String search) throws GitLabApiException
GitLab Endpoint: POST /projects/:projectId/search?scope=:scope&search=:search-query
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredscope
- search the expression within the specified scope. Currently these scopes are supported:
issues, merge_requests, milestones, notes, wiki_blobs, commits, blobs, userssearch
- the search queryGitLabApiException
- if any exception occurspublic List<?> projectSearch(Object projectIdOrPath, Constants.ProjectSearchScope scope, String search, String ref) throws GitLabApiException
GitLab Endpoint: POST /projects/:projectId/search?scope=:scope&search=:search-query&ref=ref
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredscope
- search the expression within the specified scope. Currently these scopes are supported:
issues, merge_requests, milestones, notes, wiki_blobs, commits, blobs, userssearch
- the search queryref
- the name of a repository branch or tag to search on. The project’s default branch is used by
default. This is only applicable for scopes: commits, blobs, and wiki_blobs.GitLabApiException
- if any exception occurspublic Stream<?> projectSearchStream(Object projectIdOrPath, Constants.ProjectSearchScope scope, String search) throws GitLabApiException
GitLab Endpoint: POST /projects/:projectId/search?scope=:scope&search=:search-query
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredscope
- search the expression within the specified scope. Currently these scopes are supported:
issues, merge_requests, milestones, notes, wiki_blobs, commits, blobs, userssearch
- the search queryGitLabApiException
- if any exception occurspublic Stream<?> projectSearchStream(Object projectIdOrPath, Constants.ProjectSearchScope scope, String search, String ref) throws GitLabApiException
GitLab Endpoint: POST /projects/:projectId/search?scope=:scope&search=:search-query&ref=ref
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredscope
- search the expression within the specified scope. Currently these scopes are supported:
issues, merge_requests, milestones, notes, wiki_blobs, commits, blobs, userssearch
- the search queryref
- the name of a repository branch or tag to search on. The project’s default branch is used by
default. This is only applicable for scopes: commits, blobs, and wiki_blobs.GitLabApiException
- if any exception occurspublic Pager<?> projectSearch(Object projectIdOrPath, Constants.ProjectSearchScope scope, String search, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: POST /project/:projectId/search?scope=:scope&search=:search-query
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredscope
- search the expression within the specified scope. Currently these scopes are supported:
issues, merge_requests, milestones, notes, wiki_blobs, commits, blobs, userssearch
- the search queryitemsPerPage
- the number of items that will be fetched per pageGitLabApiException
- if any exception occurspublic Pager<?> projectSearch(Object projectIdOrPath, Constants.ProjectSearchScope scope, String search, String ref, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: POST /project/:projectId/search?scope=:scope&search=:search-query&ref=ref
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredscope
- search the expression within the specified scope. Currently these scopes are supported:
issues, merge_requests, milestones, notes, wiki_blobs, commits, blobs, userssearch
- the search queryref
- the name of a repository branch or tag to search on. The project’s default branch is used by
default. This is only applicable for scopes: commits, blobs, and wiki_blobs.itemsPerPage
- the number of items that will be fetched per pageGitLabApiException
- if any exception occursCopyright © 2020. All rights reserved.