Hello XWiki devs,
I was wondering if there is an Event which gets published when an
XWikiDocument first gets loaded, or a good way of adding such an event? I
have been looking for such an event, but one does not appear to exist and
to add one looks like it would require making changes to the
XWikiHibernateStore to have it fire events on load.
I am looking for a way to intercept documents when they are first being
loaded so I can populate some of their objects from an external source and
avoid the issue of having many joins when working with documents with a
large number of objects. My other thought is to use a custom hibernate
mapping to get this data for a custom table I can populate in other ways,
but I would prefer the event driven approach.
Thanks!
~Vincent