OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | August 2008 Index

<--  Date Index  --> <--  Thread Index  -->

[exoplatform] Ответ: How to get the current username and JAAS Subject?




--- Пн, 4.8.08, Rodrigue Le Gall <rodrigue.le-gall@xxxxxxxx> пишет:
От: Rodrigue Le Gall <rodrigue.le-gall@xxxxxxxx>
Тема: [exoplatform] How to get the current username and JAAS Subject?
Кому: exoplatform@xxxxxxx
Дата: Понедельник, 4 август 2008, 18:47

Hi community,
I have updated my eXo source code and I found some issues due to code
refactoring.
Before my update I get the current JAAS Subject with:
org.exoplatform.services.organization.auth.AuthenticationService.getCurrentIdentity().getSubject();
And current logged user with:
org.exoplatform.services.organization.auth.AuthenticationService.getCurrentIdentity().getUsername();

So my question is: how to get actually the current logged JAAS Subject
and username?

Hi, Rodrigue.

Subject subject = (Subject) ConversationState.getCurrent().getAttribute(ConversationState.SUBJECT);

Regards,
Andrey.

Thanks for your help

--
Rodrigue, Le Gall
Portal Technologies' Leader
BULL R&D , BPM

Bull, Architect of an Open World TM
Phone: +33(0)4 7629 7464
email: rodrigue.le-gall@xxxxxxxx
http://www.bull.com

*Orchestra*, The BPEL open source project: http://orchestra.objectweb.org
*Bonita*, The XPDL open source project: http://bonita.objectweb.org

This e-mail contains material that is confidential for the sole use of the
intended recipient. Any review, reliance or distribution by others or forwarding
without express permission is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

--
You receive this message as a subscriber of the exoplatform@xxxxxxx mailing
list.
To unsubscribe: mailto:exoplatform-unsubscribe@xxxxxxx
For general help: mailto:sympa@xxxxxxx?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws



Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту!

<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.