org.sakaiproject.component.section.sakai.facade
Class SakaiUtil

java.lang.Object
  extended by org.sakaiproject.component.section.sakai.facade.SakaiUtil

public class SakaiUtil
extends Object


Constructor Summary
SakaiUtil()
           
 
Method Summary
static User convertUser(org.sakaiproject.user.api.User sakaiUser)
          Converts a sakai user object into a user object suitable for use in the section manager tool and in section awareness.
static String getSiteReference()
           
static User getUserFromSakai(String userUid)
          Gets a User from Sakai's UserDirectory (legacy) service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SakaiUtil

public SakaiUtil()
Method Detail

getUserFromSakai

public static final User getUserFromSakai(String userUid)
Gets a User from Sakai's UserDirectory (legacy) service.

Parameters:
userUid - The user uuid
Returns:

convertUser

public static final User convertUser(org.sakaiproject.user.api.User sakaiUser)
Converts a sakai user object into a user object suitable for use in the section manager tool and in section awareness.

Parameters:
sakaiUser - The sakai user, as returned by Sakai's legacy SecurityService.
Returns:

getSiteReference

public static final String getSiteReference()
Returns:
The current sakai authz reference


Copyright © 2011 Sakai Project. All Rights Reserved.