On Tue, Sep 15, 2009 at 1:30 PM, Christophe Lombart
<[email protected]> wrote:

> It was my first idea for create a LoginModulePlugin and maybe an
> AccessManagerPlugin but I'm wondering if it is not easier in my case
> to just create a custom implementation of UserManager because my
> authentication process is the same as the Sling default one but with
> the usage of a different/external user storage.

You don't have to implement an AccessManagerPlugin unless you want
something else than an Access Control List.
In my case, I wanted to implement access control policies such as "let
this node be available only on Fridays", so I had to implement my own
AMP.
If you're happy with setting access control rights as you would in an
operating system, go with the default AccessManager.

I'm not sure, but I suspect it would be sufficient to implement a
LoginModulePlugin. The LMP will then issue Principals, consumed by the
AM. The UserManager is only used when you want to store your user data
in the Jackrabbit repository itself - which it sounds you won't do
("externalize the user/group management").

-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070

Reply via email to