public List < GitlabProject > getProjectsViaSudoWithPagination ( GitlabUser user , Pagination pagination ) throws IOException { StringBuilder tailUrl = new StringBuilder ( GitlabProject . URL ) ; Query query = new Query ( ) . appendIf ( PARAM_SUDO , user . getId ( ) ) ; if ( pagination != null ) { query . mergeWith ( pagination . asQuery ( ) ) ; } tailUrl . append ( query . toString ( ) ) ; return Arrays . asList ( retrieve ( ) . method ( GET ) . to ( tailUrl . toString ( ) , GitlabProject [ ] . class ) ) ; }
Get a list of projects of with Pagination .