关闭

Bboogle: my old custom identity corresponder

603人阅读 评论(0) 收藏 举报
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;
  }
}


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1238611次
    • 积分:15047
    • 等级:
    • 排名:第775名
    • 原创:273篇
    • 转载:151篇
    • 译文:6篇
    • 评论:123条
    文章分类