Package com.jeecms.cms.entity.main

Examples of com.jeecms.cms.entity.main.CmsUserExt


import com.jeecms.common.hibernate3.HibernateBaseDao;

@Repository
public class CmsUserExtDaoImpl extends HibernateBaseDao<CmsUserExt, Integer> implements CmsUserExtDao {
  public CmsUserExt findById(Integer id) {
    CmsUserExt entity = get(id);
    return entity;
  }
View Full Code Here


    WebErrors errors = validatePasswordSubmit(user.getId(), origPwd,
        newPwd, email, realname, request);
    if (errors.hasErrors()) {
      return errors.showErrorPage(model);
    }
    CmsUserExt ext = user.getUserExt();
    if (ext == null) {
      ext = new CmsUserExt();
    }
    ext.setRealname(realname);
    cmsUserExtMng.update(ext, user);
    cmsUserMng.updatePwdEmail(user.getId(), newPwd, email);
    model.addAttribute("message", "global.success");
    return profileEdit(request, model);
  }
View Full Code Here

    dao.save(ext);
    return ext;
  }

  public CmsUserExt update(CmsUserExt ext, CmsUser user) {
    CmsUserExt entity = dao.findById(user.getId());
    if (entity == null) {
      entity = save(ext, user);
      user.getUserExtSet().add(entity);
      return entity;
    } else {
View Full Code Here

TOP

Related Classes of com.jeecms.cms.entity.main.CmsUserExt

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.