portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sean Taylor (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Resolved: (JS2-685) Add functionality to AJAX API to information about users
Date Thu, 10 May 2007 22:04:19 GMT

     [ 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:
> <js>
>     <status>success</status>
>     <action>userinformation</action>
>     <username>admin</username> 
>     <type>org.apache.jetspeed.security.impl.UserPrincipalImpl</type>
>     <userinfo>
>         <user.name.given>Test Dude</user.name.given>
>         <user.name.family>Dudley</user.name.family>
>     </userinfo>
> </js>
> 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:
> <js>
>     <status>success</status>
>     <action>getuserlist</action>
>     <users>
>         <user>
>             <username>admin</username>
>             <sessions>1</sessions>
>             <status>online</status>
>             <ipaddress>127.0.0.1</ipaddress>
>             <userinfo>
>                 <user.name.given>Test Dude</user.name.given>
>                 <user.name.family>Dudley</user.name.family>
>             </userinfo>
>         </user>
>         <user>
>             <username>user</username>
>             <status>offline</status>
>         </user>
>         <guests>0</guests>
>     </users>
> </js>

-- 
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


Mime
View raw message