public class BoardsApi extends AbstractApi
Constants.ActionType, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, 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 and Description |
---|---|
Board |
createBoard(Object projectIdOrPath,
String name)
Creates a new Issue Board.
|
BoardList |
createBoardList(Object projectIdOrPath,
Integer boardId,
Integer labelId)
Creates a new Issue Board list.
|
void |
deleteBoard(Object projectIdOrPath,
Integer boardId)
Soft deletes an existing Issue Board.
|
void |
deleteBoardList(Object projectIdOrPath,
Integer boardId,
Integer listId)
Soft deletes an existing Issue Board list.
|
Board |
getBoard(Object projectIdOrPath,
Integer boardId)
Get a single issue board.
|
BoardList |
getBoardList(Object projectIdOrPath,
Integer boardId,
Integer listId)
Get a single issue board list.
|
List<BoardList> |
getBoardLists(Object projectIdOrPath,
Integer boardId)
Get a list of the board’s lists.
|
Pager<BoardList> |
getBoardLists(Object projectIdOrPath,
Integer boardId,
int itemsPerPage)
Get a Pager of the board’s lists.
|
List<BoardList> |
getBoardLists(Object projectIdOrPath,
Integer boardId,
int page,
int perPage)
Get a list of the board’s lists for the specified project to using the specified page and per page setting.
|
List<Board> |
getBoards(Object projectIdOrPath)
Lists Issue Boards in the given project.
|
Pager<Board> |
getBoards(Object projectIdOrPath,
int itemsPerPage)
Get a Pager of all issue boards for the specified project.
|
List<Board> |
getBoards(Object projectIdOrPath,
int page,
int perPage)
Get all issue boards for the specified project using the specified page and per page setting
|
Stream<BoardList> |
getBoardsListsStream(Object projectIdOrPath,
Integer boardId)
Get a Stream of the board’s lists.
|
Stream<Board> |
getBoardsStream(Object projectIdOrPath)
Get a Stream of all issue boards for the specified project.
|
Optional<Board> |
getOptionalBoard(Object projectIdOrPath,
Integer boardId)
Get an issue board as an Optional instance.
|
Optional<BoardList> |
getOptionalBoardList(Object projectIdOrPath,
Integer boardId,
Integer listId)
Get a single issue board list as an Optional instance.
|
BoardList |
updateBoard(Object projectIdOrPath,
Integer boardId,
String name,
Integer assigneeId,
Integer milestoneId,
String labels,
Integer weight)
Updates an existing Issue Board.
|
BoardList |
updateBoardList(Object projectIdOrPath,
Integer boardId,
Integer listId,
Integer position)
Updates an existing Issue Board list.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validate
public BoardsApi(GitLabApi gitLabApi)
public List<Board> getBoards(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic List<Board> getBoards(Object projectIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancepage
- the page to getperPage
- the number of items per pageGitLabApiException
- if any exception occurspublic Pager<Board> getBoards(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceitemsPerPage
- the number of items per pageGitLabApiException
- if any exception occurspublic Stream<Board> getBoardsStream(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceGitLabApiException
- if any exception occurspublic Board getBoard(Object projectIdOrPath, Integer boardId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards/:board_id
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardGitLabApiException
- if any exception occurspublic Optional<Board> getOptionalBoard(Object projectIdOrPath, Integer boardId)
GitLab Endpoint: GET /projects/:id/boards/:board_id
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardpublic Board createBoard(Object projectIdOrPath, String name) throws GitLabApiException
NOTE: This is only available in GitLab EE
GitLab Endpoint: POST /projects/:id/boards
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancename
- the name for the new boardGitLabApiException
- if any exception occurspublic BoardList updateBoard(Object projectIdOrPath, Integer boardId, String name, Integer assigneeId, Integer milestoneId, String labels, Integer weight) throws GitLabApiException
NOTE: This is only available in GitLab EE
GitLab Endpoint: PUT /projects/:id/boards/:board_id
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredboardId
- the ID of the board, requiredname
- the new name of the board, optional (can be null)assigneeId
- the assignee the board should be scoped to, optional (can be null)milestoneId
- the milestone the board should be scoped to, optional (can be null)labels
- a comma-separated list of label names which the board should be scoped to, optional (can be null)weight
- the weight range from 0 to 9, to which the board should be scoped to, optional (can be null)GitLabApiException
- if any exception occurspublic void deleteBoard(Object projectIdOrPath, Integer boardId) throws GitLabApiException
NOTE: This is only available in GitLab EE
GitLab Endpoint: DELETE /projects/:id/boards/:board_id
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardGitLabApiException
- if any exception occurspublic List<BoardList> getBoardLists(Object projectIdOrPath, Integer boardId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards/:board_id/lists
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardGitLabApiException
- if any exception occurspublic List<BoardList> getBoardLists(Object projectIdOrPath, Integer boardId, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards/:board_id/lists
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardpage
- the page to getperPage
- the number of Boards per pageGitLabApiException
- if any exception occurspublic Pager<BoardList> getBoardLists(Object projectIdOrPath, Integer boardId, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards/:board_id/lists
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boarditemsPerPage
- the number of Board instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<BoardList> getBoardsListsStream(Object projectIdOrPath, Integer boardId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards/:board_id/lists
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardGitLabApiException
- if any exception occurspublic BoardList getBoardList(Object projectIdOrPath, Integer boardId, Integer listId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/boards/:board_id/lists/:list_id
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardlistId
- the ID of the board lists to getGitLabApiException
- if any exception occurspublic Optional<BoardList> getOptionalBoardList(Object projectIdOrPath, Integer boardId, Integer listId)
GitLab Endpoint: GET /projects/:id/boards/:board_id/lists/:list_id
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardlistId
- the ID of the board lists to getpublic BoardList createBoardList(Object projectIdOrPath, Integer boardId, Integer labelId) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/boards/:board_id/lists
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardlabelId
- the ID of the labelGitLabApiException
- if any exception occurspublic BoardList updateBoardList(Object projectIdOrPath, Integer boardId, Integer listId, Integer position) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/boards/:board_id/lists/:list_id
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardlistId
- the ID of the listposition
- the new position for the listGitLabApiException
- if any exception occurspublic void deleteBoardList(Object projectIdOrPath, Integer boardId, Integer listId) throws GitLabApiException
GitLab Endpoint: DELETE /projects/:id/boards/:board_id/lists/:list_id
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceboardId
- the ID of the boardlistId
- the ID of the listGitLabApiException
- if any exception occursCopyright © 2019. All rights reserved.