Hello,
i found that the Listener could do the job for point 1 and 3.
public class NiceEventListener implements EventListener {
@Override
public List<Event> getEvents() {
List<Event> events = new ArrayList<Event>();
events.add(new DocumentUpdatedEvent());
events.add(new DocumentCreatedEvent());
return events;
}
@Override
public String getName() {
return "niceListener";
}
@Override
public void onEvent(Event event, Object source, Object data) {
XWikiDocument doc = (XWikiDocument)source;
XWikiContext context = (XWikiContext)data;
// Add here the action
}
Regards,
Matthias
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Object-Handling-tp7587724p7587735.html
Sent from the XWiki- Dev mailing list archive at
Nabble.com.