Luca Zago a �crit:
> Hi,
> I would like to know if there is some class that represent a user. I
> am trying to understand in what way slide unserstands 'who I am'
> during my navigation and if there is some object in the session that
> can permit to get user info.
>
> Thank you in advance for some help or suggestions.
>
> Luca
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
Slide identifies yourself by a SlideToken object which can be retrieve
from an
HttpServletRequest by the following code :
Principal principal = request.getUserPrincipal();
CredentialsToken credentials;
if (principal != null) credentials = new CredentialsToken(principal);
else credentials = new CredentialsToken("");
SlideToken token = new SlideTokenImpl(credentials);
As you may see there is no use of the session but user's identity is
retrieved from
servlet container authentication.
Later, all namespace accesses are done by using this token so all
slide's code is executed
using the identity (and permissions) of who is executing it.
Jp
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>