@Override public void add(Entry entry) { try { Content content = entry.getContent(); Notification notificatie; notificatie = content.getJAXBObject(Notification.class); notificatie.setUpdated(new Date()); notificaties.add(notificatie); } catch (JAXBException e) { throw new RuntimeException(e); } }
@Override protected URI getEntryId(Notification notificatie) throws URISyntaxException { return new URI("tag:nordinh.github.com,2014:notification:" + notificatie.getActiviteitCode()); }
@Override protected String getEntryTitle(Notification notificatie) { return "Notificatie " + notificatie.getActiviteitCode(); }
@Override protected Date getEntryUpdated(Notification notificatie) { return notificatie.getUpdated(); }