Package com.jeecms.cms.entity.main

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


  @RequestMapping(value = "/member/myguestbook.jspx")
  public String myguestbook(Integer pageNo, Integer ctgId,
      HttpServletRequest request, HttpServletResponse response,
      ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
    }
    if (user == null) {
      return FrontUtils.showLogin(request, model, site);
    }
    Pagination pagination = guestbookMng.getPage(site.getId(), ctgId, user
        .getId(), null, null, true, false, cpn(pageNo), CookieUtils
        .getPageSize(request));
    model.addAttribute("pagination", pagination);
    return FrontUtils.getTplPath(request, site.getSolutionPath(),
        TPLDIR_GUESTBOOK, GUESTBOOK_LIST);
View Full Code Here


   */
  @RequestMapping(value = "/member/guestbook_detail.jspx")
  public String guestbook_detail(Integer id, HttpServletRequest request,
      HttpServletResponse response, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
View Full Code Here

   */
  @RequestMapping(value = "/member/guestbook_replay.jspx")
  public String guestbook_replay(Integer id, String nextUrl,HttpServletRequest request,
      HttpServletResponse response, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
View Full Code Here

  @RequestMapping(value = "/member/message_mng.jspx")
  public String message_mng(Integer box, String msg,
      HttpServletRequest request, HttpServletResponse response,
      ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
View Full Code Here

  public String message_inbox(Integer pageNo, String title,
      Date sendBeginTime, Date sendEndTime, Boolean status, Integer box,
      HttpServletRequest request, HttpServletResponse response,
      ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
    }
    if (user == null) {
      return FrontUtils.showLogin(request, model, site);
    }
    Pagination pagination = null;
    String returnPage = MESSAGE_IN_BOX_LIST;
    if (box.equals(0)) {
      // 收件箱
      pagination = receiverMessageMng.getPage(site.getId(), null, user
          .getId(), title, sendBeginTime, sendEndTime, status, box,
          false, cpn(pageNo), CookieUtils.getPageSize(request));
      returnPage = MESSAGE_IN_BOX_LIST;
    } else if (box.equals(1)) {
      // 发件箱
      pagination = messageMng.getPage(site.getId(), user.getId(), null,
          title, sendBeginTime, sendEndTime, status, box, false,
          cpn(pageNo), CookieUtils.getPageSize(request));
      returnPage = MESSAGE_SEND_LIST;
    } else if (box.equals(2)) {
      // 草稿箱
      pagination = messageMng.getPage(site.getId(), user.getId(), null,
          title, sendBeginTime, sendEndTime, status, box, false,
          cpn(pageNo), CookieUtils.getPageSize(request));
      returnPage = MESSAGE_DRAFT_LIST;
    } else if (box.equals(3)) {
      // 垃圾箱(可能从收件箱或者从发件箱转过来)
      pagination = receiverMessageMng.getPage(site.getId(), user.getId(),
          user.getId(), title, sendBeginTime, sendEndTime, status,
          box, false, cpn(pageNo), CookieUtils.getPageSize(request));
      returnPage = MESSAGE_TRASH_LIST;
    }
    model.addAttribute("msg", request.getAttribute("msg"));
    model.addAttribute("pagination", pagination);
View Full Code Here

  @RequestMapping(value = "/member/message_add.jspx")
  public String message_add(HttpServletRequest request,
      HttpServletResponse response, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
View Full Code Here

  @RequestMapping(value = "/member/message_reply.jspx")
  public String message_reply(Integer id, HttpServletRequest request,
      HttpServletResponse response, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
View Full Code Here

  @RequestMapping(value = "/member/message_send.jspx")
  public String message_send(CmsMessage message, String username,
      String captcha, String nextUrl, HttpServletRequest request,
      HttpServletResponse response, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
    }
    if (user == null) {
      return FrontUtils.showLogin(request, model, site);
    }
    WebErrors errors = validateCaptcha(captcha, request, response);
    if (errors.hasErrors()) {
      return FrontUtils.showError(request, response, model, errors);
    }
    // 发送端
    message.setMsgBox(1);
    message.setMsgSendUser(user);
    CmsUser msgReceiverUser = userMng.findByUsername(username);
    message.setMsgReceiverUser(msgReceiverUser);
    message.setMsgStatus(false);
    message.setSendTime(new Date());
    message.setSite(site);
    messageMng.save(message);
View Full Code Here

  @RequestMapping(value = "/member/message_save.jspx")
  public String message_save(CmsMessage message, String username,
      String captcha, String nextUrl, HttpServletRequest request,
      HttpServletResponse response, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
    }
    if (user == null) {
      return FrontUtils.showLogin(request, model, site);
    }
    WebErrors errors = validateCaptcha(captcha, request, response);
    if (errors.hasErrors()) {
      return FrontUtils.showError(request, response, model, errors);
    }
    message.setMsgBox(2);
    message.setMsgSendUser(user);
    CmsUser msgReceiverUser = userMng.findByUsername(username);
    message.setMsgReceiverUser(msgReceiverUser);
    message.setMsgStatus(false);
    // 作为草稿和发件箱的区别
    message.setSendTime(null);
    // message.setSendTime(new Date());
View Full Code Here

  @RequestMapping(value = "/member/message_tosend.jspx")
  public String message_tosend(Integer id, String nextUrl, String captcha,
      HttpServletRequest request, HttpServletResponse response,
      ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    CmsUser user = CmsUtils.getUser(request);
    FrontUtils.frontData(request, model, site);
    MemberConfig mcfg = site.getConfig().getMemberConfig();
    // 没有开启会员功能
    if (!mcfg.isMemberOn()) {
      return FrontUtils.showMessage(request, model, "member.memberClose");
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.