|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.oscelot.webct.dao.UserService
The UserService is a singleton utility that allows user data to be retrieved from within the Vista authentication module framework given a user Id and the learning context Id (typically the section Id). A user value object (UserVO) is returned.
This service also returns a list of all the users (UserVOs) for a given learning context Id.
Based on com.webct.platform.sdkext.authmoduledata.UserService
Method Summary | |
java.util.Map |
getChildMembers(java.lang.Long lcId)
Get all members of the given learning context Id |
static UserService |
getInstance()
Returns an instance of this service |
java.util.List |
getLearningContexts(java.lang.String userId,
int typeLevel)
Deprecated. This method has been deprecated because it is fundamentally flawed; the userId
parameter is not sufficient to uniquely identify a user when multiple institutions exist. Use the
method instead. |
java.util.List |
getMembers(java.lang.Long lcId)
Get all members of the given learning context Id. |
UserVO |
getUser(java.lang.String userId,
java.lang.Long currentLCId)
Retrieve a User definition for the user identified by userId in the given learning context ID. |
java.lang.String |
getUserId(java.lang.Long personId)
Retrieve the User Id for the user identified by person Id. |
java.lang.String |
getUserId(java.lang.String sourceName,
java.lang.String sourceId)
Retrieve the User Id for the user identified by person Id. |
java.lang.Long |
getUserRoleId(java.lang.String role)
Get the Id of a user role |
java.util.List |
getUserRoles(java.lang.String userId,
java.lang.Long lcId)
Deprecated. This method is duplicated by the UserVO.getUserRoles() method so, given the
deprecation of the class, this method has been deprecated and replaced by
. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static UserService getInstance()
public UserVO getUser(java.lang.String userId, java.lang.Long currentLCId) throws VistaDataException
userId
- user IdcurrentLCId
- current learning context Id (typically the section lcId)
VistaDataException
public java.lang.String getUserId(java.lang.Long personId) throws VistaDataException
personId
- person Id
VistaDataException
public java.lang.String getUserId(java.lang.String sourceName, java.lang.String sourceId) throws VistaDataException
VistaDataException
public java.util.List getMembers(java.lang.Long lcId) throws VistaDataException
Note that this method will not return institutional user accounts for domain
or server level learning contexts. Use the
to find all the roles held by an institutional user account.
UserVO.getRoles(Boolean)
lcId
- the learning context Id
VistaDataException
public java.util.Map getChildMembers(java.lang.Long lcId) throws VistaDataException
lcId
- the learning context Id
Map<UserVO, Long>
)
VistaDataException
public java.util.List getLearningContexts(java.lang.String userId, int typeLevel) throws VistaDataException
userId
parameter is not sufficient to uniquely identify a user when multiple institutions exist. Use the
UserVO.getLearningContexts(int)
method instead.
userId
- the user idtypeLevel
- the learning context type level
VistaDataException
public java.util.List getUserRoles(java.lang.String userId, java.lang.Long lcId) throws VistaDataException
UserVO.getUserRoles()
method so, given the
deprecation of the UserRole
class, this method has been deprecated and replaced by
UserVO.getRoles()
.
userId
- the user IdlcId
- the learning context Id
VistaDataException
public java.lang.Long getUserRoleId(java.lang.String role)
role
- the role name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |