Ehhh ... that's what I did, innit ?
oh, sorry, didn't read in detail
Class MemoryUsers implements RoleUsersManager,
and in order to call the method
boolean listUserRoles(String login, ListRoles processor)
you have to define and pass to it an instance of a ListRoles.
Or am I missing something fundamental here ?
No, that's ok.
In defining this ListRoles, I used some tricky syntax, which was
the reason for the "final" qualifier on the ArrayList<String>.
Yes, that's for anonymous inner classes in Java.
However, if you're just checking on the existence of a role you can
also use containsRole(String). If you want a collection with all the
roles, simply use getAttributes(String).getRoles()
--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users