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 21:45:59 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=7&rev2=8

  	}
  
  }}}
+ 
+ {{{
+ 
+ final UserManager userManager = ((JackrabbitSession) session)
+ 					.getUserManager();
+ Iterator<Authorizable> iter = userManager.findAuthorizables(
+ 	"jcr:primaryType", "rep:User");
+ while (iter.hasNext()) {
+ Authorizable auth = iter.next();
+ if (!auth.isGroup()) {
+ 		users.add(auth.getID());
+ 	}
+ }
+ if (!userManager.isAutoSave()) {
+ 	session.save();
+ 	}
+ 
+ }}}
  === TODO ===
  
   * list users

Mime
View raw message