package edu.cityu.bboogle;
import blackboard.data.user.User;
import blackboard.persist.user.UserDbLoader;
import blackboard.persist.user.UserDbLoader.Default;
import edu.northwestern.at.bboogle.bb.servlets.data.IdentityManagerBase;
import edu.northwestern.at.logging.LogManager;
public class CityUBboogleIdentityManager extends IdentityManagerBase
{
public String getCorrespondingUserId(String userid)
{
String userName = null;
try {
User user = UserDbLoader.Default.getInstance().loadByBatchUid(userid);
userName = user.getUserName();
LogManager.log(getClass().getName(), "Calling 'CityUBboogleIdentityManager' class 'getCorrespondingUserId' method, input is batchUid='" + userid + "', output is corresponding user name '" + userName + "'");
} catch (Exception e) {
userName = null;
LogManager.logError(getClass().getName(), "Call 'CityUBboogleIdentityManager' class 'getCorrespondingUserId' method error", e);
}
return userName;
}
}
Bboogle: my old custom identity corresponder
最新推荐文章于 2022-08-25 22:20:33 发布