Package com.xpn.xwiki.notify
Class XWikiNotificationManager
- java.lang.Object
-
- com.xpn.xwiki.notify.XWikiNotificationManager
-
@Deprecated public class XWikiNotificationManager extends Object
Deprecated.Manages general and named notifications rules.- Version:
- $Id: e2def500c3dfb1cd80335dc3af38e50467fac554 $
-
-
Constructor Summary
Constructors Constructor Description XWikiNotificationManager()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddGeneralRule(XWikiNotificationRule rule)Deprecated.Add a "general" notification rule to be evaluated for any document (as opposed to a named rule)voidaddNamedRule(String name, XWikiNotificationRule rule)Deprecated.Add a "named" notification rule, to be evaluated only when the notification concerns the document with the given nameVector<XWikiNotificationRule>getNamedRules(String name)Deprecated.voidpreverify(XWikiDocument newdoc, XWikiDocument olddoc, int event, XWikiContext context)Deprecated.voidpreverify(XWikiDocument doc, String action, XWikiContext context)Deprecated.voidremoveGeneralRule(XWikiNotificationRule rule)Deprecated.Remove the given general rulevoidremoveNamedRule(String name)Deprecated.Remove all rules with the given namevoidremoveNamedRule(String name, XWikiNotificationRule rule)Deprecated.Remove the given rule (if it exists) from the rules with the given namevoidverify(XWikiDocument newdoc, XWikiDocument olddoc, int event, XWikiContext context)Deprecated.voidverify(XWikiDocument doc, String action, XWikiContext context)Deprecated.
-
-
-
Method Detail
-
addGeneralRule
public void addGeneralRule(XWikiNotificationRule rule)
Deprecated.Add a "general" notification rule to be evaluated for any document (as opposed to a named rule)- Parameters:
rule- the rule to be added
-
removeGeneralRule
public void removeGeneralRule(XWikiNotificationRule rule)
Deprecated.Remove the given general rule
-
addNamedRule
public void addNamedRule(String name, XWikiNotificationRule rule)
Deprecated.Add a "named" notification rule, to be evaluated only when the notification concerns the document with the given name- Parameters:
name- the document's name for which the notification rule should apply. For example, for the "Main.WebHome" document, the rule name should either be "Main.WebHome", or "database:Main.WebHome"rule- the rule to add for this name
-
removeNamedRule
public void removeNamedRule(String name)
Deprecated.Remove all rules with the given name
-
removeNamedRule
public void removeNamedRule(String name, XWikiNotificationRule rule)
Deprecated.Remove the given rule (if it exists) from the rules with the given name
-
getNamedRules
public Vector<XWikiNotificationRule> getNamedRules(String name)
Deprecated.- Returns:
- all named rules with the given name
-
preverify
public void preverify(XWikiDocument newdoc, XWikiDocument olddoc, int event, XWikiContext context)
Deprecated.
-
verify
public void verify(XWikiDocument newdoc, XWikiDocument olddoc, int event, XWikiContext context)
Deprecated.
-
verify
public void verify(XWikiDocument doc, String action, XWikiContext context)
Deprecated.
-
preverify
public void preverify(XWikiDocument doc, String action, XWikiContext context)
Deprecated.
-
-