You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@abdera.apache.org by Thomas Koch <th...@koch.ro> on 2012/03/14 19:17:43 UTC
How to use tombstones extension?
Hi,
I'm trying to add tombstones (one of the extensions) to an abdera feed, but
I'm totally lost how to do this. Could you help, please?
Regards,
Thomas Koch, http://www.koch.ro
Re: How to use tombstones extension?
Posted by Thomas Koch <th...@koch.ro>.
Thomas Koch:
> Hi,
>
> I'm trying to add tombstones (one of the extensions) to an abdera feed, but
> I'm totally lost how to do this. Could you help, please?
Figured it out:
Tombstone tombstone =
abdera.getFactory().newExtensionElement(DELETED_ENTRY);
tombstone.setWhen(updated);
tombstone.setRef(id);
tombstone.addExtension(buildEditLink(resource));
feed.addExtension(tombstone);
more here:
https://github.com/thkoch2001/kolab-rest-
api/blob/master/src/main/java/ro/koch/kolabrestapi/resources/ResourceAbderaAdapter.java
Thomas Koch, http://www.koch.ro