Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [riena-dev] How to retrieve current user accountinfo inIPermissionStore.loadPermissions()?

Thanks, Stefan,

I have noticed that the ISessionHolder just hold a session object and a cookie value, so if I want to hold other information about the current session, I should use a global hash table to associates the information object with the session object? Or riena had provided other mechanism to achieve this purpose?

PS: I am not familiar with http servlet stuff(and speak english), I making tranditional socket server application before, I always use a thread or peer specified object  in the service call context.

----- Original Message ----- 
From: "Stefan Liebig" <Stefan.Liebig@xxxxxxxxxxxx>
To: "Riena Developers list" <riena-dev@xxxxxxxxxxx>
Sent: Thursday, April 16, 2009 4:46 PM
Subject: Re: [riena-dev] How to retrieve current user accountinfo inIPermissionStore.loadPermissions()?


Hi Yau,

There are two services:
- ISubjectHolderService
- ISessionHolderService

which let you access the required information.

For the ISubjectHolderService there is a helper class SubjectAccessor. 
For the ISessionHolderService you need to do the usual OSGi stuff to get 
the service or use service injection.

HTH

Tschüß,
Stefan

Back to the top