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()?

Hi Yau,

What kind of information do you want to pass to the server. There was already a similar discussion in the news group:
news://news.eclipse.org:119/db7063306a41fc9cc2a4eb5f1a290f38$1@xxxxxxxxxxxxxxx
(I am not sure if the link works, its subject was: How how to send settings for a service call, from 20093003 )

Tschüß,
Stefan

yau wrote:
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