au.edu.anu.portal.portlets.sakaiconnector.logic
Class SakaiWebServiceLogic

java.lang.Object
  extended by au.edu.anu.portal.portlets.sakaiconnector.logic.SakaiWebServiceLogic

public class SakaiWebServiceLogic
extends Object

This class is a simple logic class that makes the required web service calls for the Basic LTI portlet to get its information. It users the WebServiceSupport class for the actual web service calls. A remote sessionid is stored in the cache, and checked however if any service calls fail, it is invalidated to force a new one. One point to remember here is that all sessions created are for the admin user, which then gets the data on behalf of the user. Sessions are cached.

Author:
Steve Swinsburg (steve.swinsburg@anu.edu.au)

Constructor Summary
SakaiWebServiceLogic()
           
 
Method Summary
 List<Site> getAllSitesForUser(String eid)
          Get the XML for a list of all sites for a user, transformed to a List of Sites
 String getRemoteUserIdForUser(String eid)
          Get the userId for a user.
 List<Tool> getToolsForSite(String siteId, String eid)
          Get the list of tools in a site.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SakaiWebServiceLogic

public SakaiWebServiceLogic()
Method Detail

getRemoteUserIdForUser

public String getRemoteUserIdForUser(String eid)
Get the userId for a user.

Returns:
id or null if no response

getAllSitesForUser

public List<Site> getAllSitesForUser(String eid)
Get the XML for a list of all sites for a user, transformed to a List of Sites

Returns:

getToolsForSite

public List<Tool> getToolsForSite(String siteId,
                                  String eid)
Get the list of tools in a site.

Parameters:
siteId - siteId
Returns:


Copyright © 2009-2012 Division of Information, Australian National University. All Rights Reserved.