jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shivalika <destinee...@gmail.com>
Subject getting users
Date Wed, 30 Jun 2010 08:03:09 GMT

 Hello Users

I have created User in reposiroty by the CreateUser method defined in the
UserMnagerImpl class.

createUser method--

public User createUser(String userID,String password) throws

Mine implementation was like this:
            UserManagerImpl um = new UserManagerImpl((SessionImpl)
            JMXPrincipal prin = new JMXPrincipal("roller");
            User create_User = um.createUser("roll", "roll",prin,null);

The users are created in the following order:-
Creating an non-existing user with ID 'aSmith' without specifying an
intermediate path would result in the following structure:

 + rep:security               [nt:unstructured]
   + rep:authorizables     [rep:AuthorizableFolder]
     + rep:users              [rep:AuthorizableFolder]
       + a                        [rep:AuthorizableFolder]
         + aS                    [rep:AuthorizableFolder]
           + aSmith            [rep:User]

Now i want to retrieve the users from the repository.

I have tried the getAuthorizable method but it returns null when used in
login module during getauthentication method.

Moreover, the path i found for accessing the user shows
Though i am able to retrieve the path where the users are created but now i
want to retrieve them for authentication.

The path is as follows...

Is there any class that implements sucha method to retrieve the users?
Good suggesstions & advices are always welcomed.

Thanking You.

View this message in context: http://jackrabbit.510166.n4.nabble.com/getting-users-tp2272679p2272679.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message