Example #1
0
 public boolean checkCookieExist(String nickname) {
   WeiboUser weiboUser = weiboUserRepository.findByNickname(nickname);
   if (weiboUser != null && weiboUser.getCookie() != null && !weiboUser.getCookie().equals("")) {
     return true;
   } else {
     return false;
   }
 }
Example #2
0
 public void saveWeiboUser(WeiboUser weiboUser) {
   weiboUserRepository.save(weiboUser);
 }
Example #3
0
 public WeiboUser findByUid(String uid) {
   return weiboUserRepository.findByUid(uid);
 }
Example #4
0
 public List<WeiboUser> findAllUsers() {
   return weiboUserRepository.findAll();
 }