jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "UserManagement" by gayatrimehra
Date Wed, 03 Apr 2013 19:26:08 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "UserManagement" page has been changed by gayatrimehra:
http://wiki.apache.org/jackrabbit/UserManagement?action=diff&rev1=3&rev2=4

  
  Please note this algorithm can only be used if user management is supported.
  
+ 
+ 
+ --->>create users
+ {{
+ session = (JackrabbitSession) session;
+ final UserManager userManager = session.getUserManager();
+ final User user = userManager.createUser(userName, userName);
+ session.save();
+ 		}}
+ 
+ 
+ 
+ -->> remove user
+ {{
+ 
+ session = (JackrabbitSession) session;
+ final UserManager userManager = session.getUserManager();
+ final User user = (User) userManager.getAuthorizable(userName);
+ user.remove();
+ session.save();
+ 
+ }}	
+ 
  === TODO ===
  
   * list users
-  * create/delete users
   * change password
   * etc.
  

Mime
View raw message