Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 89697 invoked from network); 10 May 2007 22:04:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 May 2007 22:04:43 -0000 Received: (qmail 47792 invoked by uid 500); 10 May 2007 22:04:48 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 47773 invoked by uid 500); 10 May 2007 22:04:48 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 47762 invoked by uid 99); 10 May 2007 22:04:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 15:04:48 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 15:04:41 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8A05A714022 for ; Thu, 10 May 2007 15:04:20 -0700 (PDT) Message-ID: <4836207.1178834659545.JavaMail.jira@brutus> Date: Thu, 10 May 2007 15:04:19 -0700 (PDT) From: "David Sean Taylor (JIRA)" To: jetspeed-dev@portals.apache.org Subject: [jira] Resolved: (JS2-685) Add functionality to AJAX API to information about users In-Reply-To: <18200139.1176983355355.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JS2-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Sean Taylor resolved JS2-685. ----------------------------------- Resolution: Fixed Fix Version/s: (was: 2.2) 2.1.1 Patch applied and tested. Would be nice to have documentation (xdocs) for the new apis added to guides/guide-ajax-api.xml.... > Add functionality to AJAX API to information about users > -------------------------------------------------------- > > Key: JS2-685 > URL: https://issues.apache.org/jira/browse/JS2-685 > Project: Jetspeed 2 > Issue Type: Improvement > Components: Ajax > Affects Versions: 2.1.1 > Environment: Any > Reporter: Mikko Wuokko > Assigned To: David Sean Taylor > Priority: Minor > Fix For: 2.1.1 > > Attachments: jetspeed_userinfo_ajax_api.patch > > > In the patch there are two Jetspeed AJAX API actions; getuserinfo and getuserlist. > Action getuserinfo: > action: getuserinfo > params: none > This AJAX API action will retreave information about the currently logged in user. If user if not logged in, status failure is returned. It will return this information: > - username > - principal class > - full list of user information (names, email, etc...) > Here's an example output: > > success > userinformation > admin > org.apache.jetspeed.security.impl.UserPrincipalImpl > > Test Dude > Dudley > > > Action getuserlist: > This action will return a list of currently logged in users with username and ipaddress and optionally offline users, userinformation and number of guest sessions. > action: getuserlist > guest: true | false (default) ; return number of guest sessions > userinfo: true | false (default); return full userinformation if available > offline: true | false (default); return list of offline users > all: true | false (default); return everything > Here's an example output with all set to true: > > success > getuserlist > > > admin > 1 > online > 127.0.0.1 > > Test Dude > Dudley > > > > user > offline > > 0 > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-dev-help@portals.apache.org