@@ -133,6 +133,7 @@ public Stream<Project> getProjectsStream() throws GitLabApiException {
133133 * @deprecated Will be removed in version 5.0, replaced by {@link #getProjects(Boolean, Visibility,
134134 * Constants.ProjectOrderBy, Constants.SortOrder, String, Boolean, Boolean, Boolean, Boolean, Boolean)}
135135 */
136+ @ Deprecated
136137 public List <Project > getProjects (Boolean archived , Visibility visibility , String orderBy ,
137138 String sort , String search , Boolean simple , Boolean owned , Boolean membership ,
138139 Boolean starred , Boolean statistics ) throws GitLabApiException {
@@ -367,51 +368,6 @@ public Stream<Project> getMemberProjectsStream() throws GitLabApiException {
367368 return (getMemberProjects (getDefaultPerPage ()).stream ());
368369 }
369370
370- /**
371- * Get a list of all GitLab projects (admin only).
372- *
373- * <pre><code>GET /projects/all</code></pre>
374- *
375- * @return a list of all GitLab projects
376- * @throws GitLabApiException if any exception occurs
377- * @deprecated Will be removed, no longer supported by the GitLab API
378- */
379- public List <Project > getAllProjects () throws GitLabApiException {
380- return (getAllProjects (getDefaultPerPage ()).all ());
381- }
382-
383- /**
384- * Get a Pager of all GitLab projects (admin only).
385- *
386- * <pre><code>GET /projects/all</code></pre>
387- *
388- * @param itemsPerPage the number of Project instances that will be fetched per page
389- * @return a Pager of all GitLab projects
390- * @throws GitLabApiException if any exception occurs
391- * @deprecated Will be removed, no longer supported by the GitLab API
392- */
393- public Pager <Project > getAllProjects (int itemsPerPage ) throws GitLabApiException {
394-
395- if (!isApiVersion (ApiVersion .V3 )) {
396- throw new GitLabApiException ("Not supported by GitLab API version " + this .getApiVersion ());
397- }
398-
399- return (new Pager <Project >(this , Project .class , itemsPerPage , null , "projects" , "all" ));
400- }
401-
402- /**
403- * Get a Stream of all GitLab projects (admin only).
404- *
405- * <pre><code>GET /projects/all</code></pre>
406- *
407- * @return a Stream of all GitLab projects
408- * @throws GitLabApiException if any exception occurs
409- * @deprecated Will be removed, no longer supported by the GitLab API
410- */
411- public Stream <Project > getAllProjectsStream () throws GitLabApiException {
412- return (getAllProjects (getDefaultPerPage ()).stream ());
413- }
414-
415371 /**
416372 * Get a list of projects owned by the authenticated user.
417373 *
@@ -1840,6 +1796,7 @@ public ProjectHook modifyHook(ProjectHook hook) throws GitLabApiException {
18401796 * @throws GitLabApiException if any exception occurs
18411797 * @deprecated Will be removed in version 5.0, replaced by {@link IssuesApi#getIssues(Integer)}
18421798 */
1799+ @ Deprecated
18431800 public List <Issue > getIssues (Object projectIdOrPath ) throws GitLabApiException {
18441801 return (getIssues (projectIdOrPath , getDefaultPerPage ()).all ());
18451802 }
@@ -1856,6 +1813,7 @@ public List<Issue> getIssues(Object projectIdOrPath) throws GitLabApiException {
18561813 * @throws GitLabApiException if any exception occurs
18571814 * @deprecated Will be removed in version 5.0, replaced by {@link IssuesApi#getIssues(Integer, int, int)}
18581815 */
1816+ @ Deprecated
18591817 public List <Issue > getIssues (Object projectIdOrPath , int page , int perPage ) throws GitLabApiException {
18601818 Response response = get (Response .Status .OK , getPageQueryParams (page , perPage ), "projects" , getProjectIdOrPath (projectIdOrPath ), "issues" );
18611819 return (response .readEntity (new GenericType <List <Issue >>() {}));
@@ -1872,6 +1830,7 @@ public List<Issue> getIssues(Object projectIdOrPath, int page, int perPage) thro
18721830 * @throws GitLabApiException if any exception occurs
18731831 * @deprecated Will be removed in version 5.0, replaced by {@link IssuesApi#getIssues(Integer, int)}
18741832 */
1833+ @ Deprecated
18751834 public Pager <Issue > getIssues (Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException {
18761835 return (new Pager <Issue >(this , Issue .class , itemsPerPage , null , "projects" , getProjectIdOrPath (projectIdOrPath ), "issues" ));
18771836 }
@@ -1886,6 +1845,7 @@ public Pager<Issue> getIssues(Object projectIdOrPath, int itemsPerPage) throws G
18861845 * @throws GitLabApiException if any exception occurs
18871846 * @deprecated Will be removed in version 5.0, replaced by {@link IssuesApi#getIssues(Integer)}
18881847 */
1848+ @ Deprecated
18891849 public Stream <Issue > getIssuesStream (Object projectIdOrPath ) throws GitLabApiException {
18901850 return (getIssues (projectIdOrPath , getDefaultPerPage ()).stream ());
18911851 }
@@ -1917,6 +1877,7 @@ public Issue getIssue(Object projectIdOrPath, Integer issueId) throws GitLabApiE
19171877 * @throws GitLabApiException if any exception occurs
19181878 * @deprecated Will be removed in version 5.0, replaced by {@link IssuesApi#deleteIssue(Integer, Integer)}
19191879 */
1880+ @ Deprecated
19201881 public void deleteIssue (Object projectIdOrPath , Integer issueId ) throws GitLabApiException {
19211882 Response .Status expectedStatus = (isApiVersion (ApiVersion .V3 ) ? Response .Status .OK : Response .Status .NO_CONTENT );
19221883 delete (expectedStatus , getDefaultPerPageParam (), "projects" , getProjectIdOrPath (projectIdOrPath ), "issues" , issueId );
0 commit comments