コード例 #1
0
 public List<BaseUser> getHottestBlogers() {
   for (BaseUser user : hottestBlogers) {
     user.setUserFocused(false);
     if (this.getSessionUserId() != null
         && userFansDao.findByUserAndFans(user.getId(), this.getSessionUserId()) != null) {
       user.setUserFocused(true);
     }
   }
   return hottestBlogers;
 }
コード例 #2
0
 public void initWithHostData(PersonalOnlive personalOnlive, BaseUser user) {
   this.setUserName(Utils.getEmptyString(user.getNickName()));
   this.setUserID(Utils.getEmptyString(user.getId().toString()));
   this.setOnliveID(personalOnlive.getId().toString());
 }