Class XWikiNotificationManager


  • @Deprecated
    public class XWikiNotificationManager
    extends Object
    Deprecated.
    Manages general and named notifications rules.
    Version:
    $Id: e2def500c3dfb1cd80335dc3af38e50467fac554 $
    • Constructor Detail

      • XWikiNotificationManager

        public XWikiNotificationManager()
        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