Ejemplo n.º 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;
   }
 }
Ejemplo n.º 2
0
 public void saveWeiboUser(WeiboUser weiboUser) {
   weiboUserRepository.save(weiboUser);
 }
Ejemplo n.º 3
0
 public WeiboUser findByUid(String uid) {
   return weiboUserRepository.findByUid(uid);
 }
Ejemplo n.º 4
0
 public List<WeiboUser> findAllUsers() {
   return weiboUserRepository.findAll();
 }