[xwiki-commits] r971 - in xwiki-plugins: . task-manager task-manager/src task-manager/src/main task-manager/src/main/java task-manager/src/main/java/com task-manager/src/main/java/com/xpn task-manager/src/main/java/com/xpn/xwiki task-manager/src/main/java/com/xpn/xwiki/plugin task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager

Ludovic Dubost ludovic at xwiki.com
Mon Mar 13 08:11:46 CET 2006


Great, we should probably make a good plugin of the sendmessage function 
based on the best email library we have. This way it could be used by 
both plugins and by XWiki pages.

Ludovic

Jeremi Joslin a écrit :
> Author: jeremi
> Date: 2006-03-12 09:36:43 +0100 (Sun, 12 Mar 2006)
> New Revision: 971
>
> Added:
>    xwiki-plugins/task-manager/
>    xwiki-plugins/task-manager/src/
>    xwiki-plugins/task-manager/src/main/
>    xwiki-plugins/task-manager/src/main/java/
>    xwiki-plugins/task-manager/src/main/java/com/
>    xwiki-plugins/task-manager/src/main/java/com/xpn/
>    xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/
>    xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/
>    xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/
>    xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPlugin.java
>    xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPluginApi.java
> Log:
> Patch made by Robin Fernandes:
> * Fixes to the way subscription objects are created. Some properties were of the wrong type or were not correctly linked to their object, resulting in misc strange behaviour.
> * Fixed typo which prevented web subscriptions from working
> * Added ability to explicitly set/unset a subscription rather than just toggle it. This avoids accidentally subscribing/unsubscribing by hitting the browser's back button.
> * The original version would not notify a user if they modified a document after someone else modified it. This version notifies users of the last modification that was not carried out by theirself.
> * Use org.apache.commons.mail to send emails instead of XWiki's sendmessage method. I couldn't figure out how to set the email subject with that.
>
> Added: xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPlugin.java
> ===================================================================
> --- xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPlugin.java	2006-03-12 08:35:42 UTC (rev 970)
> +++ xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPlugin.java	2006-03-12 08:36:43 UTC (rev 971)
> @@ -0,0 +1,39 @@
> +/* ====================================================================
> + *   Copyright 2005 J�r�mi Joslin.
> + *
> + *   Licensed under the Apache License, Version 2.0 (the "License");
> + *   you may not use this file except in compliance with the License.
> + *   You may obtain a copy of the License at
> + *
> + *       http://www.apache.org/licenses/LICENSE-2.0
> + *
> + *   Unless required by applicable law or agreed to in writing, software
> + *   distributed under the License is distributed on an "AS IS" BASIS,
> + *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + *   See the License for the specific language governing permissions and
> + *   limitations under the License.
> + * ====================================================================
> + */
> +
> +package com.xpn.xwiki.plugin.taskmanager;
> +
> +import com.xpn.xwiki.plugin.XWikiDefaultPlugin;
> +import com.xpn.xwiki.plugin.XWikiPluginInterface;
> +import com.xpn.xwiki.plugin.query.QueryPluginApi;
> +import com.xpn.xwiki.XWikiContext;
> +import com.xpn.xwiki.api.Api;
> +
> +public class TaskManagerPlugin  extends XWikiDefaultPlugin implements{
> +    public TaskManagerPlugin(String name, String className, XWikiContext context) {
> +        super(name, className, context);
> +    }
> +
> +    public String getName() { return "taskManager"; }
> +
> +    TaskManagerPluginApi taskManagerApi;
> +    public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context) {
> +        if (taskManagerApi == null)
> +            taskManagerApi = new TaskManagerPluginApi(this, context);
> +        return taskManagerApi;
> +    }
> +}
>
>
> Property changes on: xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPlugin.java
> ___________________________________________________________________
> Name: svn:eol-style
>    + native
>
> Added: xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPluginApi.java
> ===================================================================
> --- xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPluginApi.java	2006-03-12 08:35:42 UTC (rev 970)
> +++ xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPluginApi.java	2006-03-12 08:36:43 UTC (rev 971)
> @@ -0,0 +1,27 @@
> +/* ====================================================================
> + *   Copyright 2005 J�r�mi Joslin.
> + *
> + *   Licensed under the Apache License, Version 2.0 (the "License");
> + *   you may not use this file except in compliance with the License.
> + *   You may obtain a copy of the License at
> + *
> + *       http://www.apache.org/licenses/LICENSE-2.0
> + *
> + *   Unless required by applicable law or agreed to in writing, software
> + *   distributed under the License is distributed on an "AS IS" BASIS,
> + *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> + *   See the License for the specific language governing permissions and
> + *   limitations under the License.
> + * ====================================================================
> + */
> +
> +package com.xpn.xwiki.plugin.taskmanager;
> +
> +import com.xpn.xwiki.api.Api;
> +import com.xpn.xwiki.XWikiContext;
> +
> +public class TaskManagerPluginApi  extends Api {
> +    public TaskManagerPluginApi(TaskManagerPlugin taskManagerPlugin, XWikiContext context) {
> +        super(context);
> +    }
> +}
>
>
> Property changes on: xwiki-plugins/task-manager/src/main/java/com/xpn/xwiki/plugin/taskmanager/TaskManagerPluginApi.java
> ___________________________________________________________________
> Name: svn:eol-style
>    + native
>
>
>   
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the xwiki-commits at objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-commits-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>   


-- 
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic





More information about the Xwiki-notifications mailing list