Package com.liusoft.dlog4j.beans

Examples of com.liusoft.dlog4j.beans.FriendBean


      if(friend==null)
        msg = getMessage(request,null,"error.user_not_found", new Integer(friendId));
      else if(friendId == loginUser.getId())
        msg = getMessage(request,null,"error.cannot_add_myself");
      else{
        FriendBean fb = new FriendBean();
        fb.setAddTime(new Date());
        fb.setFriend(friend);
        fb.setOwner(loginUser.getId());
        fb.setType(FriendBean.TYPE_GENERAL);
        fb.setRole(FriendBean.ROLE_GENERAL);
        UserDAO.addFriend(fb);
        msg = getMessage(request,null,"error.friend_added", new Integer(friendId));
      }
    }
    else
View Full Code Here

TOP

Related Classes of com.liusoft.dlog4j.beans.FriendBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.