Jetspeed 2
  1. Jetspeed 2
  2. JS2-685

Add functionality to AJAX API to information about users


    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.2
    • Component/s: Ajax
    • Labels:
    • Environment:


      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:

      <>Test Dude</>

      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:

      <>Test Dude</>


        Ate Douma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mikko Wuokko made changes -
        David Sean Taylor made changes -
        Fix Version/s 2.2 [ 12312318 ]
        Fix Version/s 2.1.1 [ 12312462 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        David Sean Taylor made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        David Sean Taylor made changes -
        Assignee David Sean Taylor [ taylor ]
        Mikko Wuokko made changes -
        Field Original Value New Value
        Attachment jetspeed_userinfo_ajax_api.patch [ 12355826 ]
        Mikko Wuokko created issue -


          • Assignee:
            David Sean Taylor
            Mikko Wuokko
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: