@Deprecated public class XWikiNotificationManager extends Object
Constructor and Description |
---|
XWikiNotificationManager()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addGeneralRule(XWikiNotificationRule rule)
Deprecated.
Add a "general" notification rule to be evaluated for any document (as opposed to a named rule)
|
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
|
Vector<XWikiNotificationRule> |
getNamedRules(String name)
Deprecated.
|
void |
preverify(XWikiDocument doc,
String action,
XWikiContext context)
Deprecated.
|
void |
preverify(XWikiDocument newdoc,
XWikiDocument olddoc,
int event,
XWikiContext context)
Deprecated.
|
void |
removeGeneralRule(XWikiNotificationRule rule)
Deprecated.
Remove the given general rule
|
void |
removeNamedRule(String name)
Deprecated.
Remove all rules with the given name
|
void |
removeNamedRule(String name,
XWikiNotificationRule rule)
Deprecated.
Remove the given rule (if it exists) from the rules with the given name
|
void |
verify(XWikiDocument doc,
String action,
XWikiContext context)
Deprecated.
|
void |
verify(XWikiDocument newdoc,
XWikiDocument olddoc,
int event,
XWikiContext context)
Deprecated.
|
public void addGeneralRule(XWikiNotificationRule rule)
rule
- the rule to be addedpublic void removeGeneralRule(XWikiNotificationRule rule)
public void addNamedRule(String name, XWikiNotificationRule rule)
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 namepublic void removeNamedRule(String name)
public void removeNamedRule(String name, XWikiNotificationRule rule)
public Vector<XWikiNotificationRule> getNamedRules(String name)
public void preverify(XWikiDocument newdoc, XWikiDocument olddoc, int event, XWikiContext context)
public void verify(XWikiDocument newdoc, XWikiDocument olddoc, int event, XWikiContext context)
public void verify(XWikiDocument doc, String action, XWikiContext context)
public void preverify(XWikiDocument doc, String action, XWikiContext context)
Copyright © 2004–2021 XWiki. All rights reserved.