Stefan Haubold wrote:
> 
> Annik Schoenmann wrote:
> >
> > Actually I'm working on jyve2 trying to adapt it with turbine-2.0
> > In one jyve2 packages, I use a variable 'UserFactory'.
> >
> > I wandering to now what is the new name of this variable is it
> > 'TurbineSecurity' ?
> > Annik
> 
> You got it. Calls to UserFactory.getUser() should now read 
>TurbineSecurity.getAnonymousUser() if I'm
> not missing something profound.
> 
> Stefan

Actualy, now it's now working a little bit different :)

org.apache.turbine.services.security.TurbineSecurity  is the wrapper
class for SecurityService.
It has a lot of functions that allow you to do security related actions. 
To get an user object (without autentication) you call
User getUser( String name )
you can get a set of users that meet a specific criteria, call
User[] getUsers( Criteria criteria )
To get an anonymous user object call
User getAnonymousUser()
And to auhthenticate an user call
User getAuthenticatedUser( String name, String pass )

There are also functions for adding/removing accounts, changing
passwords
granting and revoking roles and permissions, adding/removing
groups/roles/permissions.

Give ma a week or so for weeding out the bugs...

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to