RE: EventListener

"Marc Cardle" <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Nicolas,

 

Jahia currently does not fire a specific event for page deletions. All the
supported events are listed in
org.jahia.data.events.JahiaEventListenerInterface. You could try instead to
capture the event fired when any content is deleted i.e.

 

public void contentObjectDelete (ContentObjectDeleteEvent theEvent);

 

if the deleted event comes from a JahiaPage deletion, then you could email
your customer there. You would do this by checking that
theEvent.getObjectKey().getType().equals("ContentPage") and you’d know the
pid by doing theEvent.getObjectKey().getIDInType().

 

Another way would be to declare a new event pageDeleted in Jahia which is
fired from the page engine when a page is deleted.

 

Hope this helps,

 

Marc

 

 

  _____  

From: Nicolas Lafaury [mailto:[email protected]] 
Sent: 15 December 2005 15:53
To: [email protected]
Subject: EventListener

 

Hello

 

I tried to catch an event when a page is deleted and send an email to
customer.

 

But I don't find the Event.

 

Do you know how I can know when this page is deleted?

 

thanks for your help

 

Nicolas

 

Nicolas LAFAURY

Ingénieur étude et dévelopement.

Smile- Motoriste Internet

01-41-40-11-05

[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.