public ImmutableList < RoleInfo > getRoles ( ) { TypeReference < List < RoleInfo >> typeReference = new TypeReference < List < RoleInfo > > ( ) { } ; String errorMessage = String . format ( "Failed to retrieve roles from Conqueso server: %s" , conquesoUrl . toExternalForm ( ) ) ; return ImmutableList . copyOf ( readObjectFromJson ( typeReference , "/api/roles" , errorMessage ) ) ; }
Retrieve information about the roles from the Conqueso Server .