AnsweredAssumed Answered

How to create User via JCR API ?

Question asked by edo.v on Jul 27, 2006
Latest reply on Sep 27, 2006 by davidc
Hi to all!
This is my first post!  :D

To create a Folder I use:

//Session Login    
Session session = repository.login(new SimpleCredentials(userId, password.toCharArray()));
//Retrieve parameters
String id, foldername;
//Retrieve root
Node parentNode = session.getNodeByUUID(id);
//Add new Node to Parent
Node contentNode = parentNode.addNode("cm:"+foldername, "cm:folder");
//Set Property File's name
contentNode.setProperty("cm:name", foldername);
//Commit the session;

My actual problem is to create an User!
Must I use the "cm:" string similarly in the first example?
Can you help me?  :)

Sorry for my bad English!  :(