public class NotesApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.AutoDevopsDeployStrategy, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.ContributorOrderBy, Constants.DeploymentOrderBy, Constants.DeploymentStatus, Constants.DeployTokenScope, Constants.Encoding, Constants.EpicOrderBy, Constants.EventScope, 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.PackageOrderBy, Constants.PackageStatus, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.SquashOption, 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 |
---|---|
Note |
createIssueNote(Object projectIdOrPath,
Long issueIid,
String body)
Create a issues's note.
|
Note |
createIssueNote(Object projectIdOrPath,
Long issueIid,
String body,
Date createdAt)
Create a issues's note.
|
Note |
createMergeRequestNote(Object projectIdOrPath,
Long mergeRequestIid,
String body)
Create a merge request's note.
|
void |
deleteIssueNote(Object projectIdOrPath,
Long issueIid,
Long noteId)
Delete the specified issues's note.
|
void |
deleteMergeRequestNote(Object projectIdOrPath,
Long mergeRequestIid,
Long noteId)
Delete the specified merge request's note.
|
Note |
getIssueNote(Object projectIdOrPath,
Long issueIid,
Long noteId)
Get the specified issues's note.
|
List<Note> |
getIssueNotes(Object projectIdOrPath,
Long issueIid)
Get a list of the issues's notes.
|
Pager<Note> |
getIssueNotes(Object projectIdOrPath,
Long issueIid,
int itemsPerPage)
Get a Pager of issues's notes.
|
List<Note> |
getIssueNotes(Object projectIdOrPath,
Long issueIid,
int page,
int perPage)
Get a list of the issue's notes using the specified page and per page settings.
|
Stream<Note> |
getIssueNotesStream(Object projectIdOrPath,
Long issueIid)
Get a Stream of the issues's notes.
|
Note |
getMergeRequestNote(Object projectIdOrPath,
Long mergeRequestIid,
Long noteId)
Get the specified merge request's note.
|
List<Note> |
getMergeRequestNotes(Object projectIdOrPath,
Long mergeRequestIid)
Gets a list of all notes for a single merge request
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes |
List<Note> |
getMergeRequestNotes(Object projectIdOrPath,
Long mergeRequestIid,
Constants.SortOrder sortOrder,
Note.OrderBy orderBy)
Gets a list of all notes for a single merge request.
|
Pager<Note> |
getMergeRequestNotes(Object projectIdOrPath,
Long mergeRequestIid,
Constants.SortOrder sortOrder,
Note.OrderBy orderBy,
int itemsPerPage)
Get a Pager of all notes for a single merge request
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes |
List<Note> |
getMergeRequestNotes(Object projectIdOrPath,
Long mergeRequestIid,
Constants.SortOrder sortOrder,
Note.OrderBy orderBy,
int page,
int perPage)
Gets a list of all notes for a single merge request using the specified page and per page settings.
|
Pager<Note> |
getMergeRequestNotes(Object projectIdOrPath,
Long mergeRequestIid,
int itemsPerPage)
Get a Pager of all notes for a single merge request
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes |
List<Note> |
getMergeRequestNotes(Object projectIdOrPath,
Long mergeRequestIid,
int page,
int perPage)
Gets a list of all notes for a single merge request using the specified page and per page settings.
|
Stream<Note> |
getMergeRequestNotesStream(Object projectIdOrPath,
Long mergeRequestIid)
Gets a Stream of all notes for a single merge request
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes |
Stream<Note> |
getMergeRequestNotesStream(Object projectIdOrPath,
Long mergeRequestIid,
Constants.SortOrder sortOrder,
Note.OrderBy orderBy)
Gets a Stream of all notes for a single merge request.
|
List<Note> |
getNotes(Object projectIdOrPath,
Long issueIid)
Deprecated.
As of release 4.7.0, replaced by
getIssueNotes(Object, Long) |
Pager<Note> |
getNotes(Object projectIdOrPath,
Long issueIid,
int itemsPerPage)
Deprecated.
As of release 4.7.0, replaced by
getIssueNotes(Object, Long, int) |
List<Note> |
getNotes(Object projectIdOrPath,
Long issueIid,
int page,
int perPage)
Deprecated.
As of release 4.7.0, replaced by
getIssueNotes(Object, Long, int, int) |
Note |
updateIssueNote(Object projectIdOrPath,
Long issueIid,
Long noteId,
String body)
Update the specified issues's note.
|
Note |
updateMergeRequestNote(Object projectIdOrPath,
Long mergeRequestIid,
Long noteId,
String body)
Update the specified merge request's note.
|
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, upload, urlEncode, validate
public NotesApi(GitLabApi gitLabApi)
@Deprecated public List<Note> getNotes(Object projectIdOrPath, Long issueIid) throws GitLabApiException
getIssueNotes(Object, Long)
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue ID to get the notes forGitLabApiException
- if any exception occurs@Deprecated public List<Note> getNotes(Object projectIdOrPath, Long issueIid, int page, int perPage) throws GitLabApiException
getIssueNotes(Object, Long, int, int)
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue IID to get the notes forpage
- the page to getperPage
- the number of notes per pageGitLabApiException
- if any exception occurs@Deprecated public Pager<Note> getNotes(Object projectIdOrPath, Long issueIid, int itemsPerPage) throws GitLabApiException
getIssueNotes(Object, Long, int)
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue IID to get the notes foritemsPerPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic List<Note> getIssueNotes(Object projectIdOrPath, Long issueIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue ID to get the notes forGitLabApiException
- if any exception occurspublic List<Note> getIssueNotes(Object projectIdOrPath, Long issueIid, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue IID to get the notes forpage
- the page to getperPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic Pager<Note> getIssueNotes(Object projectIdOrPath, Long issueIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue IID to get the notes foritemsPerPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic Stream<Note> getIssueNotesStream(Object projectIdOrPath, Long issueIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue ID to get the notes forGitLabApiException
- if any exception occurspublic Note getIssueNote(Object projectIdOrPath, Long issueIid, Long noteId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue IID to get the notes fornoteId
- the ID of the Note to getGitLabApiException
- if any exception occurspublic Note createIssueNote(Object projectIdOrPath, Long issueIid, String body) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instance @param projectIdOrPath the project ID to create the issues forissueIid
- the issue IID to create the notes forbody
- the content of noteGitLabApiException
- if any exception occurspublic Note createIssueNote(Object projectIdOrPath, Long issueIid, String body, Date createdAt) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue IID to create the notes forbody
- the content of notecreatedAt
- the created time of noteGitLabApiException
- if any exception occurspublic Note updateIssueNote(Object projectIdOrPath, Long issueIid, Long noteId, String body) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue IID to update the notes fornoteId
- the ID of the node to updatebody
- the update content for the NoteGitLabApiException
- if any exception occurspublic void deleteIssueNote(Object projectIdOrPath, Long issueIid, Long noteId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceissueIid
- the issue IID to delete the notes fornoteId
- the ID of the node to deleteGitLabApiException
- if any exception occurspublic List<Note> getMergeRequestNotes(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the issue ID to get the notes forGitLabApiException
- if any exception occurspublic List<Note> getMergeRequestNotes(Object projectIdOrPath, Long mergeRequestIid, Constants.SortOrder sortOrder, Note.OrderBy orderBy) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the issue ID to get the notes forsortOrder
- return merge request notes sorted in the specified sort order, default is DESCorderBy
- return merge request notes ordered by CREATED_AT or UPDATED_AT, default is CREATED_ATGitLabApiException
- if any exception occurspublic List<Note> getMergeRequestNotes(Object projectIdOrPath, Long mergeRequestIid, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the merge request IID to get the notes forpage
- the page to getperPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic List<Note> getMergeRequestNotes(Object projectIdOrPath, Long mergeRequestIid, Constants.SortOrder sortOrder, Note.OrderBy orderBy, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the merge request IID to get the notes forsortOrder
- return merge request notes sorted in the specified sort order, default is DESCorderBy
- return merge request notes ordered by CREATED_AT or UPDATED_AT, default is CREATED_ATpage
- the page to getperPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic Pager<Note> getMergeRequestNotes(Object projectIdOrPath, Long mergeRequestIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the merge request IID to get the notes foritemsPerPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic Stream<Note> getMergeRequestNotesStream(Object projectIdOrPath, Long mergeRequestIid) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the issue ID to get the notes forGitLabApiException
- if any exception occurspublic Pager<Note> getMergeRequestNotes(Object projectIdOrPath, Long mergeRequestIid, Constants.SortOrder sortOrder, Note.OrderBy orderBy, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the merge request IID to get the notes forsortOrder
- return merge request notes sorted in the specified sort order, default is DESCorderBy
- return merge request notes ordered by CREATED_AT or UPDATED_AT, default is CREATED_ATitemsPerPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic Stream<Note> getMergeRequestNotesStream(Object projectIdOrPath, Long mergeRequestIid, Constants.SortOrder sortOrder, Note.OrderBy orderBy) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_iid/notes
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the issue ID to get the notes forsortOrder
- return merge request notes sorted in the specified sort order, default is DESCorderBy
- return merge request notes ordered by CREATED_AT or UPDATED_AT, default is CREATED_ATGitLabApiException
- if any exception occurspublic Note getMergeRequestNote(Object projectIdOrPath, Long mergeRequestIid, Long noteId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the merge request IID to get the notes fornoteId
- the ID of the Note to getGitLabApiException
- if any exception occurspublic Note createMergeRequestNote(Object projectIdOrPath, Long mergeRequestIid, String body) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the merge request IID to create the notes forbody
- the content of noteGitLabApiException
- if any exception occurspublic Note updateMergeRequestNote(Object projectIdOrPath, Long mergeRequestIid, Long noteId, String body) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the merge request IID to update the notes fornoteId
- the ID of the node to updatebody
- the update content for the NoteGitLabApiException
- if any exception occurspublic void deleteMergeRequestNote(Object projectIdOrPath, Long mergeRequestIid, Long noteId) throws GitLabApiException
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancemergeRequestIid
- the merge request IID to delete the notes fornoteId
- the ID of the node to deleteGitLabApiException
- if any exception occursCopyright © 2022. All rights reserved.