jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Short <...@benshort.co.uk>
Subject Re: Derby
Date Thu, 10 Dec 2009 10:35:39 GMT
Jackrabbit 2 has all this done for you already.

configure your repository to use the following classes

org.apache.jackrabbit.core.security.DefaultAccessManager
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule
org.apache.jackrabbit.core.DefaultSecurityManager

Then

UserManager um = ((JackrabbitSession)session).getUserManager();
		
User user = um.createUser("user", "password");

I hope this helps

Ben

2009/12/10 anand <simer.anand88@gmail.com>:
>
>
> Hi,
>>
>> On Tue, Dec 8, 2009 at 10:55 AM, anand <[hidden
>> email]<http://n4.nabble.com/user/SendEmail.jtp?type=node&node=955128&i=0>>
>> wrote:
>> > RepositoryImpl rp = ...;
>> > ...;
>> > SessionImpl impl = rp.createSession(sb, "default");
>>
>> Is there a reason why you are using internal Jackrabbit method
>> signatures instead of the standard JCR interfaces?
>>
>
>>
> Yeah i was taking help out of 'UserManagerImpl' class to use its
> "createUser" method in order to add new users.
>
>
> Thanks,
> simer
>
>
>
> --
> View this message in context: http://n4.nabble.com/Derby-tp955014p956684.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>

Mime
View raw message