Re: [xwiki-users] Display currently logged in users
Hi, Thanks for the hints. I'll try them out. Greetings Reto Sergiu Dumitriu wrote: > If statistics are enabled, we can filter the requests in the last X minutes. > > Vincent Massol wrote: >> But it should be easy to add by modifying code. For example by >> implementing a Servlet Session listener or intercepting XWiki's >> authentication. Might even be possible somehow using groovy in a page >> but haven't thought more about it. >> >> Thanks >> -Vincent >> >> On Oct 6, 2008, at 3:54 PM, Jean-Vincent Drean wrote: >> >>> Hi, >>> >>> AFAIK there's no easy way to retrieve the list of users currently >>> logged in. >>> You can list the users currently editing pages with (need >>> programming rights) : >>> >>> 8 >>> < >>> #foreach ($user in $xwiki.search("select distinct lock.userName from >>> XWikiLock lock")) >>> * $user >>> #end >>> 8 >>> < >>> >>> I've added it to : >>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples >>> >>> JV. >>> >>> On Fri, Sep 26, 2008 at 8:47 AM, Reto Hotz <[EMAIL PROTECTED]> wrote: Hi, Is there a way to get a list of currently logged in users? (Or users that are editing a page) For example when I have to restart XWiki I could ask these users to logout. So that they don't loose any text, they may are editing at this moment. Thanks. Greetings Reto > > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Display currently logged in users
If statistics are enabled, we can filter the requests in the last X minutes. Vincent Massol wrote: > But it should be easy to add by modifying code. For example by > implementing a Servlet Session listener or intercepting XWiki's > authentication. Might even be possible somehow using groovy in a page > but haven't thought more about it. > > Thanks > -Vincent > > On Oct 6, 2008, at 3:54 PM, Jean-Vincent Drean wrote: > >> Hi, >> >> AFAIK there's no easy way to retrieve the list of users currently >> logged in. >> You can list the users currently editing pages with (need >> programming rights) : >> >> 8 >> < >> #foreach ($user in $xwiki.search("select distinct lock.userName from >> XWikiLock lock")) >> * $user >> #end >> 8 >> < >> >> I've added it to : >> http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples >> >> JV. >> >> On Fri, Sep 26, 2008 at 8:47 AM, Reto Hotz <[EMAIL PROTECTED]> wrote: >>> Hi, >>> >>> Is there a way to get a list of currently logged in users? (Or users >>> that are editing a page) >>> For example when I have to restart XWiki I could ask these users to >>> logout. So that they don't loose any text, they may are editing at >>> this >>> moment. >>> >>> Thanks. >>> >>> Greetings >>> Reto -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Display currently logged in users
But it should be easy to add by modifying code. For example by implementing a Servlet Session listener or intercepting XWiki's authentication. Might even be possible somehow using groovy in a page but haven't thought more about it. Thanks -Vincent On Oct 6, 2008, at 3:54 PM, Jean-Vincent Drean wrote: > Hi, > > AFAIK there's no easy way to retrieve the list of users currently > logged in. > You can list the users currently editing pages with (need > programming rights) : > > 8 > < > #foreach ($user in $xwiki.search("select distinct lock.userName from > XWikiLock lock")) > * $user > #end > 8 > < > > I've added it to : > http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples > > JV. > > On Fri, Sep 26, 2008 at 8:47 AM, Reto Hotz <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Is there a way to get a list of currently logged in users? (Or users >> that are editing a page) >> For example when I have to restart XWiki I could ask these users to >> logout. So that they don't loose any text, they may are editing at >> this >> moment. >> >> Thanks. >> >> Greetings >> Reto ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Display currently logged in users
Hi, AFAIK there's no easy way to retrieve the list of users currently logged in. You can list the users currently editing pages with (need programming rights) : 8< #foreach ($user in $xwiki.search("select distinct lock.userName from XWikiLock lock")) * $user #end 8< I've added it to : http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples JV. On Fri, Sep 26, 2008 at 8:47 AM, Reto Hotz <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to get a list of currently logged in users? (Or users > that are editing a page) > For example when I have to restart XWiki I could ask these users to > logout. So that they don't loose any text, they may are editing at this > moment. > > Thanks. > > Greetings > Reto > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Jean-Vincent Drean ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Display currently logged in users
Hi, Is there a way to get a list of currently logged in users? (Or users that are editing a page) For example when I have to restart XWiki I could ask these users to logout. So that they don't loose any text, they may are editing at this moment. Thanks. Greetings Reto ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users