Constants
public class NotesApi extends AbstractApi
Constants.ActionType, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenType
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Modifier and Type | Method | Description |
---|---|---|
Note |
createIssueNote(Integer projectId,
Integer issueIid,
String body) |
Create a issues's note.
|
Note |
createIssueNote(Integer projectId,
Integer issueIid,
String body,
Date createdAt) |
Create a issues's note.
|
Note |
createMergeRequestNote(Integer projectId,
Integer mergeRequestIid,
String body) |
Create a merge request's note.
|
void |
deleteIssueNote(Integer projectId,
Integer issueIid,
Integer noteId) |
Delete the specified issues's note.
|
void |
deleteMergeRequestNote(Integer projectId,
Integer mergeRequestIid,
Integer noteId) |
Delete the specified merge request's note.
|
Note |
getIssueNote(Integer projectId,
Integer issueIid,
Integer noteId) |
Get the specified issues's note.
|
List<Note> |
getIssueNotes(Integer projectId,
Integer issueIid) |
Get a list of the issues's notes.
|
Pager<Note> |
getIssueNotes(Integer projectId,
Integer issueIid,
int itemsPerPage) |
Get a Pager of issues's notes.
|
List<Note> |
getIssueNotes(Integer projectId,
Integer issueIid,
int page,
int perPage) |
Get a list of the issue's notes using the specified page and per page settings.
|
Note |
getMergeRequestNote(Integer projectId,
Integer mergeRequestIid,
Integer noteId) |
Get the specified merge request's note.
|
List<Note> |
getMergeRequestNotes(Integer projectId,
Integer mergeRequestIid) |
Gets a list of all notes for a single merge request.
|
Pager<Note> |
getMergeRequestNotes(Integer projectId,
Integer mergeRequestIid,
int itemsPerPage) |
Get a Pager of all notes for a single merge request
GET /projects/:id/merge_requests/:merge_request_iid/notes
|
List<Note> |
getMergeRequestNotes(Integer projectId,
Integer mergeRequestIid,
int page,
int perPage) |
Gets a list of all notes for a single merge request using the specified page and per page settings.
|
List<Note> |
getMergeRequestNotes(Integer projectId,
Integer mergeRequestIid,
Constants.SortOrder sortOrder,
Note.OrderBy orderBy) |
Gets a list of all notes for a single merge request.
|
Pager<Note> |
getMergeRequestNotes(Integer projectId,
Integer mergeRequestIid,
Constants.SortOrder sortOrder,
Note.OrderBy orderBy,
int itemsPerPage) |
Get a Pager of all notes for a single merge request
GET /projects/:id/merge_requests/:merge_request_iid/notes
|
List<Note> |
getMergeRequestNotes(Integer projectId,
Integer 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.
|
List<Note> |
getNotes(Integer projectId,
Integer issueIid) |
Deprecated.
As of release 4.7.0, replaced by
getIssueNotes(Integer, Integer) |
Pager<Note> |
getNotes(Integer projectId,
Integer issueIid,
int itemsPerPage) |
Deprecated.
As of release 4.7.0, replaced by
getIssueNotes(Integer, Integer, int) |
List<Note> |
getNotes(Integer projectId,
Integer issueIid,
int page,
int perPage) |
Deprecated.
As of release 4.7.0, replaced by
getIssueNotes(Integer, Integer, int, int) |
Note |
updateIssueNote(Integer projectId,
Integer issueIid,
Integer noteId,
String body) |
Update the specified issues's note.
|
Note |
updateMergeRequestNote(Integer projectId,
Integer mergeRequestIid,
Integer noteId,
String body) |
Update the specified merge request's note.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getPageQueryParams, getProjectIdOrPath, getWithAccepts, handle, isApiVersion, post, post, post, post, post, put, put, putWithFormData, upload, upload, urlEncode, validate
public NotesApi(GitLabApi gitLabApi)
public List<Note> getNotes(Integer projectId, Integer issueIid) throws GitLabApiException
getIssueNotes(Integer, Integer)
projectId
- the project ID to get the issues forissueIid
- the issue ID to get the notes forGitLabApiException
- if any exception occurspublic List<Note> getNotes(Integer projectId, Integer issueIid, int page, int perPage) throws GitLabApiException
getIssueNotes(Integer, Integer, int, int)
projectId
- the project ID to get the issues forissueIid
- the issue IID to get the notes forpage
- the page to getperPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic Pager<Note> getNotes(Integer projectId, Integer issueIid, int itemsPerPage) throws GitLabApiException
getIssueNotes(Integer, Integer, int)
projectId
- the project ID to get the issues forissueIid
- the issue IID to get the notes foritemsPerPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic List<Note> getIssueNotes(Integer projectId, Integer issueIid) throws GitLabApiException
projectId
- the project ID to get the issues forissueIid
- the issue ID to get the notes forGitLabApiException
- if any exception occurspublic List<Note> getIssueNotes(Integer projectId, Integer issueIid, int page, int perPage) throws GitLabApiException
projectId
- the project ID to get the issues forissueIid
- 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(Integer projectId, Integer issueIid, int itemsPerPage) throws GitLabApiException
projectId
- the project ID to get the issues forissueIid
- the issue IID to get the notes foritemsPerPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic Note getIssueNote(Integer projectId, Integer issueIid, Integer noteId) throws GitLabApiException
projectId
- the project ID to get the issues forissueIid
- the issue IID to get the notes fornoteId
- the ID of the Note to getGitLabApiException
- if any exception occurspublic Note createIssueNote(Integer projectId, Integer issueIid, String body) throws GitLabApiException
projectId
- 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(Integer projectId, Integer issueIid, String body, Date createdAt) throws GitLabApiException
projectId
- the project ID to create the issues forissueIid
- the issue IID to create the notes forbody
- the content of notecreatedAt
- the created time of noteGitLabApiException
- if any exception occurspublic Note updateIssueNote(Integer projectId, Integer issueIid, Integer noteId, String body) throws GitLabApiException
projectId
- the project ID to update the issues forissueIid
- 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(Integer projectId, Integer issueIid, Integer noteId) throws GitLabApiException
projectId
- the project ID to delete the issues forissueIid
- the issue IID to delete the notes fornoteId
- the ID of the node to deleteGitLabApiException
- if any exception occurspublic List<Note> getMergeRequestNotes(Integer projectId, Integer mergeRequestIid) throws GitLabApiException
projectId
- the project ID to get the issues formergeRequestIid
- the issue ID to get the notes forGitLabApiException
- if any exception occurspublic List<Note> getMergeRequestNotes(Integer projectId, Integer mergeRequestIid, Constants.SortOrder sortOrder, Note.OrderBy orderBy) throws GitLabApiException
projectId
- the project ID to get the issues formergeRequestIid
- 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(Integer projectId, Integer mergeRequestIid, int page, int perPage) throws GitLabApiException
projectId
- the project ID to get the issues formergeRequestIid
- 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(Integer projectId, Integer mergeRequestIid, Constants.SortOrder sortOrder, Note.OrderBy orderBy, int page, int perPage) throws GitLabApiException
projectId
- the project ID to get the issues formergeRequestIid
- 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(Integer projectId, Integer mergeRequestIid, int itemsPerPage) throws GitLabApiException
projectId
- the project ID to get the issues formergeRequestIid
- the merge request IID to get the notes foritemsPerPage
- the number of notes per pageGitLabApiException
- if any exception occurspublic Pager<Note> getMergeRequestNotes(Integer projectId, Integer mergeRequestIid, Constants.SortOrder sortOrder, Note.OrderBy orderBy, int itemsPerPage) throws GitLabApiException
projectId
- the project ID to get the issues formergeRequestIid
- 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 Note getMergeRequestNote(Integer projectId, Integer mergeRequestIid, Integer noteId) throws GitLabApiException
projectId
- the project ID to get the issues formergeRequestIid
- the merge request IID to get the notes fornoteId
- the ID of the Note to getGitLabApiException
- if any exception occurspublic Note createMergeRequestNote(Integer projectId, Integer mergeRequestIid, String body) throws GitLabApiException
projectId
- the project ID to create the issues formergeRequestIid
- the merge request IID to create the notes forbody
- the content of noteGitLabApiException
- if any exception occurspublic Note updateMergeRequestNote(Integer projectId, Integer mergeRequestIid, Integer noteId, String body) throws GitLabApiException
projectId
- the project ID to update the issues formergeRequestIid
- 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(Integer projectId, Integer mergeRequestIid, Integer noteId) throws GitLabApiException
projectId
- the project ID to delete the issues formergeRequestIid
- the merge request IID to delete the notes fornoteId
- the ID of the node to deleteGitLabApiException
- if any exception occursCopyright © 2018. All rights reserved.