Author: vmassol
Date: 2008-02-03 18:14:46 +0100 (Sun, 03 Feb 2008)
New Revision: 7284
Modified:
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/XWiki.java
Log:
XWIKI-2057: Deprecate XWiki.sendMessage() since there's now a sendmail plugin
for that
Done but all xwiki code using this method must also be modified to use the mail
sender plugin which becomes a core plugin de facto.
Modified:
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
===================================================================
--- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
2008-02-03 17:05:25 UTC (rev 7283)
+++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
2008-02-03 17:14:46 UTC (rev 7284)
@@ -2912,6 +2912,11 @@
sendMessage(sender, email, content, context);
}
+ /**
+ * @deprecated replaced by the
+ * <a
href="http://code.xwiki.org/xwiki/bin/view/Plugins/MailSenderPlugin">Mail Sender
+ * Plugin</a>
+ */
public void sendMessage(String sender, String[] recipient, String message,
XWikiContext context) throws XWikiException
{
@@ -2986,6 +2991,11 @@
}
}
+ /**
+ * @deprecated replaced by the
+ * <a
href="http://code.xwiki.org/xwiki/bin/view/Plugins/MailSenderPlugin">Mail Sender
+ * Plugin</a>
+ */
public void sendMessage(String sender, String recipient, String message,
XWikiContext context)
throws XWikiException
{
Modified:
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/XWiki.java
===================================================================
---
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/XWiki.java
2008-02-03 17:05:25 UTC (rev 7283)
+++
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/XWiki.java
2008-02-03 17:14:46 UTC (rev 7284)
@@ -1222,6 +1222,9 @@
* @param recipient email of the recipient of the message
* @param message Message to send
* @throws XWikiException if the mail was not send successfully
+ * @deprecated replaced by the
+ * <a
href="http://code.xwiki.org/xwiki/bin/view/Plugins/MailSenderPlugin">Mail Sender
+ * Plugin</a>
*/
public void sendMessage(String sender, String recipient, String message)
throws XWikiException
@@ -1237,6 +1240,9 @@
* @param recipient emails of the recipients of the message
* @param message Message to send
* @throws XWikiException if the mail was not send successfully
+ * @deprecated replaced by the
+ * <a
href="http://code.xwiki.org/xwiki/bin/view/Plugins/MailSenderPlugin">Mail Sender
+ * Plugin</a>
*/
public void sendMessage(String sender, String[] recipient, String message)
throws XWikiException
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications