abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Koch <tho...@koch.ro>
Subject Re: How to use tombstones extension?
Date Thu, 15 Mar 2012 18:49:58 GMT
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

Mime
View raw message