@Override public List<JiveActivity> getActivites() { String jsonString = jiveRestClient.getActivities(); ObjectMapper mapper = new ObjectMapper(); List<JiveActivity> activities = null; try { activities = mapper.readValue(jsonString, new TypeReference<List<JiveActivity>>() {}); } catch (JsonParseException e) { log.error(e.getMessage()); } catch (JsonMappingException e) { log.error(e.getMessage()); } catch (IOException e) { log.error(e.getMessage()); } return activities; }
@Override public JivePeople getPeople(long id) { return jivePeopleMapper.mapEntityToDomain(jiveRestClient.getPeople(id)); }