@ GET @ RolesAllowed ( { "ROLE_ADMIN" } ) public Response readPage ( @ QueryParam ( "pageSize" ) @ DefaultValue ( "10" ) int pageSize , @ QueryParam ( "cursorKey" ) String cursorKey ) { CursorPage < DUser > page = userService . readPage ( pageSize , cursorKey ) ; return Response . ok ( page ) . build ( ) ; }
Get a page of users .