Package com.xpn.xwiki.notify
Class PropertyChangedRule
- java.lang.Object
-
- com.xpn.xwiki.notify.DocChangeRule
-
- com.xpn.xwiki.notify.PropertyChangedRule
-
- All Implemented Interfaces:
XWikiNotificationRule
@Deprecated public class PropertyChangedRule extends DocChangeRule
Deprecated.XWikiNotificationRule to check weather an object property has changed.
The rules are as follows:- if an object of the specified class is added or deleted a notification is sent
- if the objects list is the same then the values of the specified property in
newdoc
andolddoc
are checked on corresponding objects - the correspondence is done based on the index of the objects in the list of objects of typeclassname
. - if
classname
orpropertyName
are not specified upon instantiation (null
or empty string), thisPropertyChangedRule
will never notify.
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.notify.DocChangeRule
LOGGER
-
-
Constructor Summary
Constructors Constructor Description PropertyChangedRule(XWikiDocChangeNotificationInterface target, String classname, String propertyName)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getClassName()
Deprecated.String
getPropertyName()
Deprecated.boolean
hasEqualProperty(XWikiDocument newdoc, XWikiDocument olddoc, String className, String propertyName)
Deprecated.void
setClassName(String className)
Deprecated.void
setPropertyName(String propertyName)
Deprecated.void
verify(XWikiDocument newdoc, XWikiDocument olddoc, XWikiContext context)
Deprecated.Note: olddoc is null when the document is new and has never been saved-
Methods inherited from class com.xpn.xwiki.notify.DocChangeRule
getTarget, isPostverify, isPreverify, preverify, preverify, setPostverify, setPreverify, setTarget, verify
-
-
-
-
Constructor Detail
-
PropertyChangedRule
public PropertyChangedRule(XWikiDocChangeNotificationInterface target, String classname, String propertyName)
Deprecated.
-
-
Method Detail
-
getClassName
public String getClassName()
Deprecated.
-
setClassName
public void setClassName(String className)
Deprecated.
-
getPropertyName
public String getPropertyName()
Deprecated.
-
setPropertyName
public void setPropertyName(String propertyName)
Deprecated.
-
hasEqualProperty
public boolean hasEqualProperty(XWikiDocument newdoc, XWikiDocument olddoc, String className, String propertyName)
Deprecated.
-
verify
public void verify(XWikiDocument newdoc, XWikiDocument olddoc, XWikiContext context)
Deprecated.Description copied from interface:XWikiNotificationRule
Note: olddoc is null when the document is new and has never been saved- Specified by:
verify
in interfaceXWikiNotificationRule
- Overrides:
verify
in classDocChangeRule
-
-