Package com.jeecms.cms.entity.main

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


  @RequestMapping(value = "/member/message_edit.jspx")
  public String message_edit(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_update.jspx")
  public String message_update(CmsMessage message, 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

  @RequestMapping(value = "/member/message_read.jspx")
  public String message_read(Integer id, 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");
View Full Code Here

  // 转发
  @RequestMapping(value = "/member/message_forward.jspx")
  public String message_forward(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_trash.jspx")
  public void message_trash(Integer ids[], HttpServletRequest request,
      HttpServletResponse response, ModelMap model) throws JSONException {
    CmsUser user = CmsUtils.getUser(request);
    JSONObject object = new JSONObject();
    CmsMessage message;
    CmsReceiverMessage receiverMessage;
    if (user == null) {
      object.put("result", false);
View Full Code Here

  // 还原垃圾箱信息
  @RequestMapping(value = "/member/message_revert.jspx")
  public void message_revert(Integer ids[], HttpServletRequest request,
      HttpServletResponse response, ModelMap model) throws JSONException {
    CmsUser user = CmsUtils.getUser(request);
    JSONObject object = new JSONObject();
    CmsReceiverMessage receiverMessage;
    if (user == null) {
      object.put("result", false);
    } else {
View Full Code Here

  // 清空垃圾箱信息
  @RequestMapping(value = "/member/message_empty.jspx")
  public void message_empty(Integer ids[], HttpServletRequest request,
      HttpServletResponse response, ModelMap model) throws JSONException {
    CmsUser user = CmsUtils.getUser(request);
    JSONObject object = new JSONObject();
    CmsMessage message;
    CmsReceiverMessage receiverMessage;
    if (user == null) {
      object.put("result", false);
View Full Code Here

  // 查找是否存在该用户
  @RequestMapping(value = "/member/message_findUser")
  public void findUserByUserName(String username, HttpServletRequest request,
      HttpServletResponse response, ModelMap model) throws JSONException {
    CmsUser user = CmsUtils.getUser(request);
    JSONObject object = new JSONObject();
    if (user == null) {
      object.put("result", false);
    } else {
      // 会员只能在会员之间发送站内信
View Full Code Here

  // 查找未读信息条数
  @RequestMapping(value = "/member/message_countUnreadMsg.jspx")
  public void findUnreadMessagesByUser(HttpServletRequest request,
      HttpServletResponse response, ModelMap model) throws JSONException {
    CmsUser user = CmsUtils.getUser(request);
    CmsSite site = CmsUtils.getSite(request);
    JSONObject object = new JSONObject();
    if (user == null) {
      object.put("result", false);
    } else {
      List<CmsReceiverMessage> receiverMessages = receiverMessageMng
          .getList(site.getId(), null, user.getId(), null, null,
              null, false, 0, false);
      object.put("result", true);
      if (receiverMessages != null && receiverMessages.size() > 0) {
        object.put("count", receiverMessages.size());
      } else {
View Full Code Here

  @RequestMapping(value = "/member/message_delete.jspx")
  public String message_delete(Integer[] ids, 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

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.