Package com.jeecms.cms.entity.main

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


  }

  @Transactional(readOnly = true)
  public List<Channel> getTopListByRigth(Integer userId, Integer siteId,
      boolean hasContentOnly) {
    CmsUser user = cmsUserMng.findById(userId);
    CmsUserSite us = user.getUserSite(siteId);
    if (us.getAllChannel()) {
      return getTopList(siteId, hasContentOnly);
    } else {
      return dao.getTopListByRigth(userId, siteId, hasContentOnly);
    }
View Full Code Here


  }

  @Transactional(readOnly = true)
  public List<Channel> getChildListByRight(Integer userId, Integer siteId,
      Integer parentId, boolean hasContentOnly) {
    CmsUser user = cmsUserMng.findById(userId);
    CmsUserSite us = user.getUserSite(siteId);
    if (us.getAllChannel()) {
      return getChildList(parentId, hasContentOnly);
    } else {
      return dao.getChildListByRight(userId, parentId, hasContentOnly);
    }
View Full Code Here

      for (Integer gid : contriGroupIds) {
        g = cmsGroupMng.findById(gid);
        bean.addToContriGroups(g);
      }
    }
    CmsUser u;
    if (userIds != null && userIds.length > 0) {
      for (Integer uid : userIds) {
        u = cmsUserMng.findById(uid);
        bean.addToUsers(u);
      }
View Full Code Here

    for (CmsUser u : bean.getUsers()) {
      u.getChannels().remove(bean);
    }
    bean.getUsers().clear();
    if (userIds != null && userIds.length > 0) {
      CmsUser u;
      for (Integer uid : userIds) {
        u = cmsUserMng.findById(uid);
        bean.addToUsers(u);
      }
    }
View Full Code Here

  protected String channelsEditJson(Integer userId, Integer siteId,
      HttpServletRequest request, HttpServletResponse response,
      ModelMap model) {
    List<Channel> channelList = channelMng.getTopList(siteId, false);
    CmsUser user = manager.findById(userId);
    model.addAttribute("channelList", channelList);
    model.addAttribute("channelIds", user.getChannelIds(siteId));
    response.setHeader("Cache-Control", "no-cache");
    response.setContentType("text/json;charset=UTF-8");
    return "admin/channels_edit";
  }
View Full Code Here

@Controller
public class PersonalAct {
  @RequestMapping("/personal/v_profile.do")
  public String profileEdit(HttpServletRequest request, ModelMap model) {
    CmsUser user = CmsUtils.getUser(request);
    model.addAttribute("user", user);
    return "personal/profile";
  }
View Full Code Here

  }

  @RequestMapping("/personal/o_profile.do")
  public String profileUpdate(String origPwd, String newPwd, String email,
      String realname, HttpServletRequest request, ModelMap model) {
    CmsUser user = CmsUtils.getUser(request);
    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

   * @param response
   */
  @RequestMapping("/personal/v_checkPwd.do")
  public void checkPwd(String origPwd, HttpServletRequest request,
      HttpServletResponse response) {
    CmsUser user = CmsUtils.getUser(request);
    boolean pass = cmsUserMng.isPasswordValid(user.getId(), origPwd);
    ResponseUtils.renderJson(response, pass ? "true" : "false");
  }
View Full Code Here

    return dao.getAdminList(siteId, allChannel, disabled, rank);
  }

  @Transactional(readOnly = true)
  public CmsUser findById(Integer id) {
    CmsUser entity = dao.findById(id);
    return entity;
  }
View Full Code Here

    return entity;
  }

  @Transactional(readOnly = true)
  public CmsUser findByUsername(String username) {
    CmsUser entity = dao.findByUsername(username);
    return entity;
  }
View Full Code Here

TOP

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

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.