3 Replies Latest reply on Apr 2, 2007 6:04 AM by tinico

    Get user loggin

      Hi,

      I've make my own DecorationRenderer class, but, I want to make something depending of the role of the connected user !!

      How can I make that ??

      The function prototype which one I want to work is :

      renderModeAndStateLinks(RenderContext ctx, WindowResult result, String selector);

      Thank you for your helps !!

        • 1. Re: Get user loggin

          In my research, I've see the org.hibernate.Session classe !!
          Can it help me for solve my problem ?

          • 2. Re: Get user loggin
            antoine_h

            don't understand exactly what you want to do...

            If you can't do it a more simple way :
            - get the Principal of the user
            - then use the JMX user module and role module to get all the user information (portal user informations).

            to get the Pricipal :
            - starting from the context of invocation, you may find a way to retrieve it
            - from the ctx, or from the session etc...

            just ideas...


            • 3. Re: Get user loggin

              Thank you,

              But, it seem not possible to get the Pricipal from ctx, and it's my probleme / question ?

              I know how to use the JMX from the principal of the user, but, my probleme is to get this Principal.