@Override
  public boolean AddOneFriend(String sourceUserName, String targetUserName) {
    // TODO Auto-generated method stub

    ScholarUser targetUser = scholarUserDao.getScholarUserByName(targetUserName);
    if (targetUser == null) return false;
    ScholarUser sourceUser = scholarUserDao.getScholarUserByName(sourceUserName);
    return scholarUserDao.addOneUserForUser(sourceUser, targetUser);
  }
  @Override
  public int ChangeSinaFriendsToScholarFriends(String userName) {
    // TODO Auto-generated method stub

    ScholarUser scholarUser = scholarUserDao.getScholarUserByName(userName);
    List friendList = scholarUserDao.getScholarFriendsForSina(scholarUser);
    boolean flag = false;
    if (friendList != null) {
      flag = scholarUserDao.addSeveralFriendsForUser(scholarUser, friendList);
    }
    if (flag) return friendList.size();
    else return 0;
  }