[xwiki-devs] [xwiki-notifications] r35297 - platform/xwiki-plugins/trunk/activitystream/src/main/java/com/xpn/xwiki/plugin/activitystream/eventstreambridge

Vincent Massol vincent at massol.net
Tue Mar 8 06:47:27 UTC 2011


On Mar 8, 2011, at 6:23 AM, sdumitriu (SVN) wrote:

> Author: sdumitriu
> Date: 2011-03-08 06:23:16 +0100 (Tue, 08 Mar 2011)
> New Revision: 35297
> 
> Modified:
>   platform/xwiki-plugins/trunk/activitystream/src/main/java/com/xpn/xwiki/plugin/activitystream/eventstreambridge/BridgeEventStream.java
> Log:
> XPAS-38: Implement the new API method to delete an Event from the EventStream
> Done.
> 
> Modified: platform/xwiki-plugins/trunk/activitystream/src/main/java/com/xpn/xwiki/plugin/activitystream/eventstreambridge/BridgeEventStream.java
> ===================================================================
> --- platform/xwiki-plugins/trunk/activitystream/src/main/java/com/xpn/xwiki/plugin/activitystream/eventstreambridge/BridgeEventStream.java	2011-03-08 05:21:21 UTC (rev 35296)
> +++ platform/xwiki-plugins/trunk/activitystream/src/main/java/com/xpn/xwiki/plugin/activitystream/eventstreambridge/BridgeEventStream.java	2011-03-08 05:23:16 UTC (rev 35297)
> @@ -103,6 +103,22 @@
>     /**
>      * {@inheritDoc}
>      * 
> +     * @see EventStream#deleteEvent(Event)
> +     */
> +    public void deleteEvent(Event e)
> +    {
> +        try {
> +            XWikiContext context = getXWikiContext();
> +            ActivityStreamPlugin plugin = getPlugin(context);
> +            plugin.getActivityStream().deleteActivityEvent(convertEventToActivity(e), context);
> +        } catch (ActivityStreamException ex) {
> +            // Unlikely; nothing we can do

Well should log it at least as an error.

Thanks
-Vincent

> +        }
> +    }
> +
> +    /**
> +     * {@inheritDoc}
> +     * 
>      * @see EventStream#getRelatedEvents(Event)
>      */
>     public EventGroup getRelatedEvents(Event e)




More information about the devs mailing list