OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | August 2008 Index

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

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


Cool,
it's working and it's a smarter code. I will explore the ConversationState code.

Rodrigue

Andrey Parfonov a e'crit :


--- *Пн, 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! Почту <http://ru.mail.yahoo.com>!

--
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.

begin:vcard
fn:Rodrigue Le Gall
n:Le Gall;Rodrigue
org:BULL SAS;BULL R&D - BPM
adr;quoted-printable:1 RUE DE PROVENCE B.P.208 CENTRE UNIX;;Boite courier: B1/397;Echirolles CEDEX ;Is=C3=A8re;38432 ;France
email;internet:rodrigue.le-gall@xxxxxxxx
title:Portal Technologies' Leader
tel;work:+33(0)4 7629 7464
tel;fax:+33(0)4 7629 7777
note;quoted-printable:*Orchestra*, The BPEL open source project: http://orchestra.objectweb.org=
	=0D=0A=
	*Bonita*, The XPDL open source project: http://bonita.objectweb.org
x-mozilla-html:FALSE
url:http://www.bull.com
version:2.1
end:vcard



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

Reply via email to:

Powered by MHonArc.

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