You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by shivalika <de...@gmail.com> on 2010/06/30 08:49:12 UTC
Retrieving Users
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
RepositoryException
Mine implementation was like this:
UserManagerImpl um = new UserManagerImpl((SessionImpl)
session,"root");
JMXPrincipal prin = new JMXPrincipal("roller");
User create_User = um.createUser("roll", "roll",prin,null);
System.out.println(create_User);
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
PathNotFoundException....
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...
/rep:security/rep:authorizable/rep:users/
Is there any class that implements sucha method to retrieve the users?
Good suggesstions & advices are always welcomed.
Thanking You.
Regards...
Shivalika.
--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Retrieving-Users-tp2272676p2272676.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.