On Fri, Jan 28, 2011 at 11:08 AM, Markus Joschko
<[email protected]> wrote:
>> Maybe you could post the code of your EventListener, and of
>> ObservationManager.addEventListener call?
>
> It's pretty similar to the event listener in the slingbucks examle. As
> I constantly try different paths and workspaces there isn't the ONE
> configuration. But registering looks like:
>
> final String[] types = null;
> final boolean isDeep = true;
> final boolean noLocal = true;
> String path = "/system/userManager/";
This will most certainly NOT work. The /system/userManager path does
not refer to a JCR node, but only the userManager servlets in the
Sling resource tree. So registering a JCR event listener for that path
will have no effect.
> //also tried "/rep:security/rep:authorizables/" and
> "/rep:system/rep:userManager/"
>
> session.getWorkspace().getObservationManager().addEventListener(userMgmtListener,
> listenOnEvents, path, isDeep, null, types, noLocal);
> log.info("Observing property changes to {} nodes under {}",
> types==null?"All":Arrays.asList(types), path);
>
> In addition I use the same session to add a second eventListener that
> listens to events int the "/content" branch. But that shouldn't be a
> problem, or?
I don't think so, as long as you are not re-registering the same
eventListener twice.
> The event listener itself is just dumping a log message without any checks.
I'm not sure how users are stored in Jackrabbit 2 (which you are
probably running), but you should see if you can find the nodes
describing user accounts, by using some JCR explorer.
--
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00
Quando omni flunkus moritatus!