Hi all,

My status about rights management: ready and working :)
There are 2 small problems:

1. currently I tested with 10.000 random generate users and it works 
slowly because I need some new methods in the RM API to count the number 
of returned rows (because I currently used something like:

 #set( $users = $rm.getAllMatchedGlobalUsers( $filterMap, $limit, $off, 
$orderList ) )
  #set( $countUsers = $rm.getAllMatchedGlobalUsers( $filterMap ).size() )

so for count I just take ALL the users from the database and then apply 
size() which is killing, I know  :P )
- so, Thomas, I will need the following methods:

  getAllMatchedLocalGroupsCount(filters) or 
countAllMatchedLocalGroups(filters) (to keep the name from the other 
methods)
  getAllMatchedGlobalGroupsCount(filters)

  getAllMatchedLocalUsersCount(filters)
  getAllMatchedGlobalUsersCount(filters)

  getAllMatchedUsersCount(filters)
  getAllMatchedGroupsCount(filters)

 getAllMembersNamesForGroup(name)
 getAllGroupsForMember(name)

(...without the nb, start parameters)

I then tested with the count put manually and it worked extremely well 
(400 ms for 10.000 users this including all: database query, transfer, 
javascript and dom processing - this on my personal laptop which has 
limited capabilities :D ; like it is right now (with .size() ) it would 
be 19 sec for 10.000! so a lot more :D ) so the count will improve the 
ajax loading very much.

2. I need the suggest patch applyed :D I  will make the patch for 1.1 (I 
already apply it on the core and is working fine ) but someone has to 
commit it ( I done it for GSOC for trunks 1.2)

I just have to put some css to make it look prettier (some images and 
some alignment, nothing complicated :) )

So the lightbox is working fine, the rights are working fine, the 
loading will be quickly if I have this methods....And that's all for now 
because my mail is already long :))

Thanks.

Evelina
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to