“Now when you login” is an
Authentication on J2EE server. When a users get authenticated I load my
UserInfo Object.
Shahn
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas Knudsen
Sent: Wednesday, September 21,
2005 6:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: User
Infor in Flex Architecture
curious as to what you
may mean by
"Now when you login"
I know your using J2EE and all, but curious as
to how you might be implementing this part as it appears you are using Flex to
call a method in your biz delgate.
DK
On 9/21/05, shahnavaz
Alware <[EMAIL PROTECTED]>
wrote:
Hi Rishi,
I am assuming you have a fair knowledge of Cairngorm 0.99. In
your ModelLocator you will have a "public static var userInfo :
UserInfoVO;". Now when you login you might need to have a method on
backend ( BusinessDelegate.java) which will return you a object of type
UserInfoVO. In your command.as
you will have following
public function onResult( event : Object ) : Void {
ModelLocator.userInfo = event.result;
}
From this point on you can use ModelLocator.userInfo at any
point in your application.
eg. You will render some buttons based on user role.
If ( ModelLocator.userInfo.role == "Manager" ) {
button.visible="true";
}
I hope this helps.
Thank you,
Shahnavaz
Hi,
First of all thanks for your reply.
What i want to know how have used
remote object for session
managemant , acttual what i want is manage the
state on the client it
self. could you please bit elaborate little more .
Thanks & Regards
Rishi Shukla
--- In flexcoders@yahoogroups.com, "shahnavaz Alware"
<[EMAIL PROTECTED]>
wrote:
> Hi Rishi,
>
>
>
> I use Cairngorm 0.99 in my Flex App. When my
user authentication on
the J2EE
> AppServer is successful I return UserInfoVO
and set it to
> ModelLocator.UserInfoVO=event.result. Now
from this point on I have the
> whole userInfo object on the client side so
no worries about
setting/getting
> it to/from HttpSession.
>
>
>
> Thanks,
>
>
>
> Shahnavaz
>
>
>
> _____
>
> From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> Behalf Of RISHI_SHUKLA
> Sent: Thursday, September 15, 2005 4:10 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: User Infor in Flex
Architecture
>
>
>
> Hi ,
>
> I am want know this , if have done it , then
please let me know , it
> would be very nice on your part.
>
> Thanks & Regards
> Rishi Shukla
>
> --- In flexcoders@yahoogroups.com,
"Shahnavaz Alware" <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > I am new programmer in Flex (RIA) using
Cairngrom 0.9 Framework. I
> am using
> > Flex with full fledge J2EE Application.
> > My question is How to handle User
Management (User Object as Session
> > Variable) in Flex to reap the best
performance possible as my User
> Info is
> > massive. Is there any documentation?
Thanks in advance for reply.
> >
> > Thank you,
> >
> > Shahnavaz
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
> _____
>
> YAHOO! GROUPS LINKS
>
>
>
> * Visit your
group "flexcoders
> <http://groups.yahoo.com/group/flexcoders>
" on the web.
>
> * To
unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]?subject=Unsubscribe>
>
> * Your use of
Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>
Terms of Service.
>
>
>
> _____
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO!
GROUPS LINKS
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|