Skip to content

Commit fc32b80

Browse files
committed
Remove not-existing methods
1 parent 6ce1402 commit fc32b80

File tree

1 file changed

+3
-161
lines changed

1 file changed

+3
-161
lines changed

gitlab4j-api/src/main/java/org/gitlab4j/api/BoardsApi.java

Lines changed: 3 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,83 +1213,7 @@ public Optional<Board> getOptionalGroupEpicBoard(Object groupIdOrPath, Long boar
12131213
}
12141214

12151215
/**
1216-
* Creates a new epic board.
1217-
*
1218-
* <pre><code>GitLab Endpoint: POST /groups/:id/epic_boards</code></pre>
1219-
*
1220-
* @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
1221-
* @param name the name for the new board
1222-
* @return the created Board instance
1223-
* @throws GitLabApiException if any exception occurs
1224-
*/
1225-
public Board createGroupEpicBoard(Object groupIdOrPath, String name) throws GitLabApiException {
1226-
GitLabApiForm formData = new GitLabApiForm().withParam("name", name, true);
1227-
Response response = post(
1228-
Response.Status.CREATED, formData.asMap(), "groups", getGroupIdOrPath(groupIdOrPath), "epic_boards");
1229-
return (response.readEntity(Board.class));
1230-
}
1231-
1232-
/**
1233-
* Updates an existing epic board.
1234-
*
1235-
* <pre><code>GitLab Endpoint: PUT /groups/:id/epic_boards/:board_id</code></pre>
1236-
*
1237-
* @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance, required
1238-
* @param boardId the ID of the board, required
1239-
* @param name the new name of the board, optional (can be null)
1240-
* @param hideBacklogList hide the Open list, optional (can be null)
1241-
* @param hideClosedList hide the Closed list, optional (can be null)
1242-
* @param assigneeId the assignee the board should be scoped to, optional (can be null)
1243-
* @param milestoneId the milestone the board should be scoped to, optional (can be null)
1244-
* @param labels a comma-separated list of label names which the board should be scoped to, optional (can be null)
1245-
* @param weight the weight range from 0 to 9, to which the board should be scoped to, optional (can be null)
1246-
* @return the updated Board instance
1247-
* @throws GitLabApiException if any exception occurs
1248-
*/
1249-
public Board updateGroupEpicBoard(
1250-
Object groupIdOrPath,
1251-
Long boardId,
1252-
String name,
1253-
Boolean hideBacklogList,
1254-
Boolean hideClosedList,
1255-
Long assigneeId,
1256-
Long milestoneId,
1257-
String labels,
1258-
Integer weight)
1259-
throws GitLabApiException {
1260-
GitLabApiForm formData = new GitLabApiForm()
1261-
.withParam("name", name)
1262-
.withParam("hide_backlog_list", hideBacklogList)
1263-
.withParam("hide_closed_list", hideClosedList)
1264-
.withParam("assignee_id", assigneeId)
1265-
.withParam("milestone_id", milestoneId)
1266-
.withParam("labels", labels)
1267-
.withParam("weight", weight);
1268-
Response response = put(
1269-
Response.Status.OK,
1270-
formData.asMap(),
1271-
"groups",
1272-
getGroupIdOrPath(groupIdOrPath),
1273-
"epic_boards",
1274-
boardId);
1275-
return (response.readEntity(Board.class));
1276-
}
1277-
1278-
/**
1279-
* Soft deletes an existing epic board.
1280-
*
1281-
* <pre><code>GitLab Endpoint: DELETE /groups/:id/epic_boards/:board_id</code></pre>
1282-
*
1283-
* @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
1284-
* @param boardId the ID of the board
1285-
* @throws GitLabApiException if any exception occurs
1286-
*/
1287-
public void deleteGroupEpicBoard(Object groupIdOrPath, Long boardId) throws GitLabApiException {
1288-
delete(Response.Status.NO_CONTENT, null, "groups", getGroupIdOrPath(groupIdOrPath), "epic_boards", boardId);
1289-
}
1290-
1291-
/**
1292-
* Get a list of the board’s lists. Does not include open and closed lists.
1216+
* Get a list of the board’s lists.
12931217
*
12941218
* <pre><code>GitLab Endpoint: GET /groups/:id/epic_boards/:board_id/lists</code></pre>
12951219
*
@@ -1305,7 +1229,6 @@ public List<BoardList> getGroupEpicBoardLists(Object groupIdOrPath, Long boardId
13051229

13061230
/**
13071231
* Get a list of the board’s lists for the specified group to using the specified page and per page setting.
1308-
* Does not include open and closed lists.
13091232
*
13101233
* <pre><code>GitLab Endpoint: GET /groups/:id/epic_boards/:board_id/lists</code></pre>
13111234
*
@@ -1330,7 +1253,7 @@ public List<BoardList> getGroupEpicBoardLists(Object groupIdOrPath, Long boardId
13301253
}
13311254

13321255
/**
1333-
* Get a Pager of the board’s lists. Does not include open and closed lists.
1256+
* Get a Pager of the board’s lists.
13341257
*
13351258
* <pre><code>GitLab Endpoint: GET /groups/:id/epic_boards/:board_id/lists</code></pre>
13361259
*
@@ -1355,7 +1278,7 @@ public Pager<BoardList> getGroupEpicBoardLists(Object groupIdOrPath, Long boardI
13551278
}
13561279

13571280
/**
1358-
* Get a Stream of the board’s lists. Does not include open and closed lists.
1281+
* Get a Stream of the board’s lists.
13591282
*
13601283
* <pre><code>GitLab Endpoint: GET /groups/:id/epic_boards/:board_id/lists</code></pre>
13611284
*
@@ -1411,85 +1334,4 @@ public Optional<BoardList> getOptionalGroupEpicBoardList(Object groupIdOrPath, L
14111334
}
14121335
}
14131336

1414-
/**
1415-
* Creates a new epic board list.
1416-
*
1417-
* <pre><code>GitLab Endpoint: POST /groups/:id/epic_boards/:board_id/lists</code></pre>
1418-
*
1419-
* @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
1420-
* @param boardId the ID of the board
1421-
* @param labelId the ID of the label
1422-
* @param assigneeId The ID of a user. Premium and Ultimate only, optional (can be null)
1423-
* @param milestoneId The ID of a milestone. Premium and Ultimate only, optional (can be null)
1424-
* @param iterationId The ID of a milestone. Premium and Ultimate only, optional (can be null)
1425-
* @return the created BoardList instance
1426-
* @throws GitLabApiException if any exception occurs
1427-
*/
1428-
public BoardList createGroupEpicBoardList(
1429-
Object groupIdOrPath, Long boardId, Long labelId, Long assigneeId, Long milestoneId, Long iterationId)
1430-
throws GitLabApiException {
1431-
GitLabApiForm formData = new GitLabApiForm()
1432-
.withParam("label_id", labelId)
1433-
.withParam("assignee_id", assigneeId)
1434-
.withParam("milestone_id", milestoneId)
1435-
.withParam("iteration_id", iterationId);
1436-
Response response = post(
1437-
Response.Status.CREATED,
1438-
formData,
1439-
"groups",
1440-
getGroupIdOrPath(groupIdOrPath),
1441-
"epic_boards",
1442-
boardId,
1443-
"lists");
1444-
return (response.readEntity(BoardList.class));
1445-
}
1446-
1447-
/**
1448-
* Updates an existing epic board list. This call is used to change list position.
1449-
*
1450-
* <pre><code>GitLab Endpoint: PUT /groups/:id/epic_boards/:board_id/lists/:list_id</code></pre>
1451-
*
1452-
* @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
1453-
* @param boardId the ID of the board
1454-
* @param listId the ID of the list
1455-
* @param position the new position for the list
1456-
* @return the updated BoardList instance
1457-
* @throws GitLabApiException if any exception occurs
1458-
*/
1459-
public BoardList updateGroupEpicBoardList(Object groupIdOrPath, Long boardId, Long listId, Integer position)
1460-
throws GitLabApiException {
1461-
GitLabApiForm formData = new GitLabApiForm().withParam("position", position, true);
1462-
Response response = putWithFormData(
1463-
Response.Status.OK,
1464-
formData,
1465-
"groups",
1466-
getGroupIdOrPath(groupIdOrPath),
1467-
"epic_boards",
1468-
boardId,
1469-
"lists",
1470-
listId);
1471-
return (response.readEntity(BoardList.class));
1472-
}
1473-
1474-
/**
1475-
* Soft deletes an existing epic board list. Only for admins and group owners.
1476-
*
1477-
* <pre><code>GitLab Endpoint: DELETE /groups/:id/epic_boards/:board_id/lists/:list_id</code></pre>
1478-
*
1479-
* @param groupIdOrPath the group in the form of an Long(ID), String(path), or Group instance
1480-
* @param boardId the ID of the board
1481-
* @param listId the ID of the list
1482-
* @throws GitLabApiException if any exception occurs
1483-
*/
1484-
public void deleteGroupEpicBoardList(Object groupIdOrPath, Long boardId, Long listId) throws GitLabApiException {
1485-
delete(
1486-
Response.Status.NO_CONTENT,
1487-
null,
1488-
"groups",
1489-
getGroupIdOrPath(groupIdOrPath),
1490-
"epic_boards",
1491-
boardId,
1492-
"lists",
1493-
listId);
1494-
}
14951337
}

0 commit comments

Comments
 (0)