public List < User > getUserList ( boolean concise , int start , int amount ) { ClientResource resource = new ClientResource ( Route . ALL_USER . url ( ) ) ; Reference ref = resource . getReference ( ) ; Map < String , Object > param = new HashMap <> ( ) ; param . put ( "concise" , concise ) ; param . put ( "start" , start ) ; param . put ( "amount" , amount ) ; Route . addParameters ( ref , param ) ; resource . setChallengeResponse ( this . auth . toChallenge ( ) ) ; try { Representation repr = resource . get ( ) ; return mapper . readValue ( repr . getText ( ) , new TypeReference < List < User > > ( ) { } ) ; } catch ( IOException ex ) { LEX4JLogger . log ( Level . WARNING , "Could not retrieve user list correctly!" ) ; return null ; } }
Returns all users