Hello,

why doesn't this work:

   TurbineUserManagement tm = new TurbineUserManagement();
    JetspeedRunData jd = (JetspeedRunData)rundata;
    try{
      tm.init(jd);
      Iterator it = tm.getUsers();
      while(it.hasNext())
      {
        BaseJetspeedUser bju = (BaseJetspeedUser)it.next();
        System.out.println("User " + bju.getFirstName() + " on: " +
bju.hasLoggedIn());
      }
    }    

hasLoggedIn() ist allways false.

If I get the user from the session (rundata.getUserFromSession()),
hasLoggedIn() ist true for the current user, but not the others... how can I
get this managed?

Thank you and best regards



-----Ursprüngliche Nachricht-----
Von: Frank Villarreal [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 8. Juli 2005 15:40
An: Jetspeed Users List
Betreff: RE: getting information about which role/user is logged in ?


I believe so ... it fires triggers off of session-based events (ie: new
session, timed out session, etc ...).   You can learn more about this from
any book on J2EE Servlets that speaks of Session Listeners.  There are many.

- Frank

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 08, 2005 08:24 AM
> To: 'Jetspeed Users List'
> Subject: AW: getting information about which role/user is logged in ?
>
>
> Thanks. We're running a single server application.
>
> will the session-listener recignize if a session has been closed due of a
> timeout?
>
>
> thanks
>
> -----Ursprüngliche Nachricht-----
> Von: Frank Villarreal [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 8. Juli 2005 15:10
> An: Jetspeed Users List
> Betreff: RE: getting information about which role/user is logged in ?
>
>
> Create a Session Listenser that tracks your user sessions.  You can
> accomplish it that way ... "the catch" is that this type of solution only
> works on a single server application.
>
>
> >
> > Yes, but how can you see who is currently logged in?
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to