Exemplo n.º 1
0
 @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;
 }
Exemplo n.º 2
0
 @Override
 public JivePeople getPeople(long id) {
   return jivePeopleMapper.mapEntityToDomain(jiveRestClient.getPeople(id));
 }