[rm-users] RE: (rm-users) Logged in Users

Hurt, Richard Richard.Hurt@Tricon-Yum.Com
Thu, 15 Mar 2001 09:30:00 -0600


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C0AD5D.85BB7996
Content-Type: text/plain;
	charset="iso-8859-1"

Hey all,

I worked on this a little bit and cleaned it up.  Attached is a compileable 
snippet that will print:

  "User name - Description - What they are doing - Host they connected from"


One thing I would like to do with this is create a new Portal module that
will 
show all the currently logged in users and email address.  But, I don't know
how
to extract the email address.  Does anyone have any ideas?

Later...
  Richard

______________________________ Reply Separator
_________________________________
Subject: Re: (rm-users) Logged in Users
Author:  "cschnepf@nautilus-ins.com" <SMTP:cschnepf@nautilus-ins.com> at
Dallas
Date:    2/27/2001 9:11 AM


The following code will show you who is currently logged into the portal. 
A few issues with this however.  One this doesn't seem to work correctly 
with any administrators.  The admin on our system is logged in several
times (probably rightly so because of the services) and myself (admin also) 
logged in several times (shouldn't be).    Also users that log off without 
using the log off command (closing browser window) will not go away until 
the timeout has been reached.
     
Hope this is what you are looking for.
     
     
import com.sqribe.transformer.*;
import java.util.Vector;
     
ResultVector resultVector = (ResultVector)m_session.submit(new 
ListThreadsCommand());
               for (int i = 0; i < resultVector.size(); i++) 
               {
                   ThreadState threadState
= (ThreadState)resultVector.elementAt(i);
                   System.out.println(threadState.getUser().getName());
               }
     
Christian Schnepf
Nautilus Insurance
Programmer Analyst II
480-951-0905 x1253
     
     
     
     
                    Alison_Purnell@moorest
     
                    ephens.com                    To:     rm-users@sqrug.com
     
                    Sent by:                      cc:
     
                    rm-users-admin@sqrug.c        Subject:     [rm-users]
Logged
in Users
                    om
     
     
     
     
     
                    02/16/01 04:54 AM
     
                    Please respond to
     
                    rm-users
     
     
     
     
     
     
     
     
     
     
Does any one know if there is a way of finding out whether any users are 
logged
into the Brio Portal system?
     
Do any of the log files show this sort of info.? I have had a look at the 
log
files but can't find any
details on successful logins - only details on errors.
     
Any help would be much appreciated.
     
Alison Purnell
     
     
     
     
================================================================
                  MOORE STEPHENS
               Chartered Accountants
   St Paul's House, Warwick Lane, London EC4P 4BN, UK
      Tel: +44 (0)20 7334 9191, Fax: +44 (0)20 7248 3408
          Web: http://www.moorestephens.co.uk
       Also at Enfield, Guildford and other offices
A member firm of Moore Stephens International Limited - members
        in principal cities throughout the world
A full list of the Partners of the firm is open to inspection 
at the above address
     
Registered to carry on audit work and authorised to carry on investment 
business by the Institute of Chartered Accountants in England and Wales. 
================================================================
     
     
     
_______________________________________________ 
rm-users maillist  -  rm-users@sqrug.com 
http://www.sqrug.com/mailman/listinfo/rm-users
     
     
     
     
     
     
_______________________________________________ 
rm-users maillist  -  rm-users@sqrug.com 
http://www.sqrug.com/mailman/listinfo/rm-users


---------------------------- 
This communication is confidential and may be legally privileged.  If you
are not the intended recipient, (i) please do not read or disclose to
others, (ii) please notify the sender by reply mail, and (iii) please delete
this communication from your system.  Failure to follow this process may be
unlawful.  Thank you for your cooperation. 
---------------------------- 
  


------_=_NextPart_000_01C0AD5D.85BB7996
Content-Type: application/octet-stream;
	name="LAUsers.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="LAUsers.zip"

UEsDBBQAAAAIAJxLbyoLnu7K3wMAAK0LAAAUAAAATGlzdEFjdGl2ZVVzZXJzLmphdmG1Vt9v2zYQ
fnaA/A8HP2xS6shu97a6RpNsQw2sC9ZkfQmCgaZOEheKVEkqjjb0f9+R+hG7cbCh04Q4onjHj8eP
5Hc3Pzk5PgI4gQtdNUbkhYPoIoZXi8UCzhs4N0LDNfJCaanzZgZrxbWptGEO0wTOpIQwyIJBi+ae
OgNci/lepyITmMKmgQ+CF8yk8K42Dpam/UoK+nrr6Eur06YuE67LVRg7Pz46PhIlzeSAOhP7yYgN
JqZMTl4fMjjDlM20KdEEj8HnD3bPktoJuTswdAqdrC9/fOBYOaFVGDPv2cAHVlYSgUtmLTgNUlgH
jJZb0zIt8NoYVE42QLTktEKhyMkVCB6fycc1VPVGCt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