Exemple #1
0
 /**
  * 添加监控接收者
  *
  * @param po
  */
 public boolean addLoginUserPo(LoginUserPo po) {
   boolean result = dao.addLoginUserPo(po);
   if (result) {
     UserService.get().register(UserService.get().createUserDefine(po));
   }
   return result;
 }
Exemple #2
0
  /**
   * 删除一个用户
   *
   * @param id
   * @return
   */
  public boolean deleteLoginUserPo(Integer id) {
    boolean result = dao.deleteLoginUserPo(id);
    if (result) {
      UserDefine define = new UserDefine();
      define.setUserId(id);
      UserService.get().register(define);
    }

    return result;
  }
Exemple #3
0
 /**
  * @param name
  * @param pwd
  * @return
  */
 public LoginUserPo getLoginUserPo(String name, String pwd) {
   return dao.getLoginUserPo(name, pwd);
 }
Exemple #4
0
 /**
  * 获取应用对于key的接收的额外配置
  *
  * @param userId
  * @return
  */
 public List<ExtraUserAppKeyDefine> getExtraUserAppKeyDefine(int userId) {
   return dao.getExtraUserAppKeyDefine(userId);
 }
Exemple #5
0
 /**
  * 通过邮件地址获取信息
  *
  * @param mail
  * @return
  */
 public LoginUserPo getUserByMail(String mail) {
   return dao.getUserByMail(mail);
 }
Exemple #6
0
 /** @return */
 public List<LoginUserPo> findAllUser() {
   return dao.findAllUser();
 }
Exemple #7
0
 /**
  * 根据id 获取用户
  *
  * @param id
  * @return
  */
 public LoginUserPo getLoginUserPo(Integer id) {
   return dao.getLoginUserPo(id);
 }
Exemple #8
0
  /**
   * 根据用户名获取账号
   *
   * @param name
   * @return
   */
  public LoginUserPo getLoginUserPo(String name) {

    return dao.getLoginUserPo(name);
  }