Event Listener always catching Event.PROPERTY_ before Event.NODE_ Events
Hi All,
When ever event is getting triggered -
EX -
If i am doing operation Page move.
EventType is coming as = Event.PROPERTY_ADDED but it should check for as Event.NODE_MOVED. even though i am checking as a conditional statement it is always going to Event.PROPERTY (Event.PROPERTY_ADDED | Event.PROPERTY_CHANGED | Event.PROPERTY_REMOVED) listener instead of Event.NODE (Event.NODE_MOVED | Event.NODE_ADDED | Event.NODE_REMOVED listener.
Again, This is happing for Page Delete also.
Req - to Implement custom logic on each and every event Listener.
As we know whenever we trigger event on NODE AEM itself call's PROPERY events :::
Is there any way to identify the correct event or give precedence to NODE events instead of PROPERTY???
Using Event like this -
private static final int EVENT_TYPES = Event.NODE_MOVED | Event.NODE_ADDED | Event.NODE_REMOVED |
Event.PROPERTY_ADDED | Event.PROPERTY_CHANGED | Event.PROPERTY_REMOVED;
Thanks in advance.