コード例 #1
0
 @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);
   }
 }
コード例 #2
0
 @Override
 protected URI getEntryId(Notification notificatie) throws URISyntaxException {
   return new URI("tag:nordinh.github.com,2014:notification:" + notificatie.getActiviteitCode());
 }
コード例 #3
0
 @Override
 protected String getEntryTitle(Notification notificatie) {
   return "Notificatie " + notificatie.getActiviteitCode();
 }
コード例 #4
0
 @Override
 protected Date getEntryUpdated(Notification notificatie) {
   return notificatie.getUpdated();
 }