public class NotesApi extends AbstractApi
Constants.ActionType, Constants.ImpersonationState, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, 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 and Description |
---|---|
Note |
createIssueNote(Integer projectId,
Integer issueIid,
String body) |
Note |
createIssueNote(Integer projectId,
Integer issueIid,
String body,
Date createdAt) |
void |
deleteIssueNote(Integer projectId,
Integer issueIid,
Integer noteId) |
Note |
getIssueNote(Integer projectId,
Integer issueIid,
Integer noteId) |
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.
|
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,
String body) |
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getPageQueryParams, getWithAccepts, handle, isApiVersion, post, post, post, put, put, putWithFormData, 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
GitLabApiException
public Note createIssueNote(Integer projectId, Integer issueIid, String body) throws GitLabApiException
GitLabApiException
public Note createIssueNote(Integer projectId, Integer issueIid, String body, Date createdAt) throws GitLabApiException
GitLabApiException
public Note updateIssueNote(Integer projectId, Integer issueIid, String body) throws GitLabApiException
GitLabApiException
public void deleteIssueNote(Integer projectId, Integer issueIid, Integer noteId) throws GitLabApiException
GitLabApiException
Copyright © 2017. All rights reserved.