Examples of UserBean


Examples of com.ecyrd.jspwiki.ui.admin.beans.UserBean

        m_allBeans = new ArrayList<AdminBean>();

        try
        {
            registerAdminBean( new CoreBean(m_engine) );
            registerAdminBean( new UserBean(m_engine) );
            registerAdminBean( new SearchManagerBean(m_engine) );
            registerAdminBean( new PluginBean(m_engine) );
        }
        catch (NotCompliantMBeanException e)
        {
View Full Code Here

Examples of com.fabelist.view.bean.UserBean

  }

  protected String getResource(String key) {
    Application application = getApplication();
    Locale loc = application.getDefaultLocale();
    UserBean uBean = (UserBean) getBean("userBean");
    if (uBean != null && uBean.getLocale() != null) {
      loc = new Locale(uBean.getLocale());

      application.setDefaultLocale(loc);
    }
    return getResource(application.getMessageBundle(), key, loc);
  }
View Full Code Here

Examples of com.lichtfragmente.beans.UserBean

            } else {
                //this just delivers the normal account page (i.e. no modal dialog).
                //this view is never requested via AJAX
                HttpSession session=request.getSession();
                //get account details
                UserBean user=this.getAccountDetails((Integer)session.getAttribute("userid"));
                if (user!=null) {
                    request.setAttribute("user",user);

                    //fetch number of unread messages
View Full Code Here

Examples of com.liusoft.dlog4j.beans.UserBean

                .getAlbum())));
        break;
      }

      SiteBean site = super.getSiteBean(request);
      UserBean loginUser = super.getLoginUserAfterValidateSiteOwner(request);

      String photo_desc;
      if(StringUtils.isNotEmpty(photo1.getDesc())){
        photo_desc = StringUtils.abbreviate(super.autoFiltrate(
            site, photo1.getDesc()), MAX_PHOTO_DESC_LENGTH);
View Full Code Here

Examples of com.liusoft.dlog4j.beans.UserBean

      HttpServletResponse response) throws Exception {
    ReplyForm reply = (ReplyForm) form;
    //��֤�ͻ��˰�ȫʶ����
    validateClientId(request, reply);
    ActionMessages msgs = new ActionMessages();
    UserBean loginUser = super.getLoginUser(request, response);
    while (loginUser != null) {
      if (StringUtils.isEmpty(reply.getContent())) {
        msgs.add("reply", new ActionMessage("error.empty_not_allowed"));
        break;
      }
View Full Code Here

Examples of com.liusoft.dlog4j.beans.UserBean

      HttpServletResponse response) throws Exception {
    ReplyForm reply = (ReplyForm) form;
    //��֤�ͻ��˰�ȫʶ����
    validateClientId(request, reply);
    ActionMessages msgs = new ActionMessages();
    UserBean loginUser = super.getLoginUser(request, response);
    while (loginUser != null) {
      if (StringUtils.isEmpty(reply.getContent())) {
        msgs.add("reply", new ActionMessage("error.empty_not_allowed"));
        break;
      }
View Full Code Here

Examples of com.liusoft.dlog4j.beans.UserBean

      ActionForm form, HttpServletRequest request,
      HttpServletResponse response, String s_reply_id) throws Exception {
    String msg = null;
    ReplyForm reply = (ReplyForm) form;
    int reply_id = Integer.parseInt(s_reply_id);
    UserBean loginUser = super.getLoginUser(request, response);
    while (loginUser != null) {
      SiteBean site = super.getSiteByID(reply.getSid());
      if (site == null) {
        msg = getMessage(request, null, "error.site_not_available");
        break;
      }
      PhotoReplyBean rbean = (PhotoReplyBean) ReplyDAO.getReply(
          PhotoReplyBean.class, reply_id);
      if (rbean == null)
        break;
      if (rbean.getSite().getId() != reply.getSid()) {
        msg = getMessage(request, null, "error.param");
        break;
      }
      if (!site.isOwner(loginUser)
          && !isReplyBelongToUser(rbean, loginUser.getId())) {
        msg = getMessage(request, null, "error.access_deny");
        break;
      }
      PhotoDAO.deletePhotoReply(rbean);
      break;
View Full Code Here

Examples of com.liusoft.dlog4j.beans.UserBean

      ActionForm form, HttpServletRequest request,
      HttpServletResponse response, String s_reply_id) throws Exception {
    String msg = null;
    ReplyForm reply = (ReplyForm) form;
    int reply_id = Integer.parseInt(s_reply_id);
    UserBean loginUser = super.getLoginUser(request, response);
    while (loginUser != null) {
      SiteBean site = super.getSiteByID(reply.getSid());
      if (site == null) {
        msg = getMessage(request, null, "error.site_not_available");
        break;
      }
      DiaryReplyBean rbean = (DiaryReplyBean) ReplyDAO.getReply(
          DiaryReplyBean.class, reply_id);
      if (rbean == null)
        break;
      if (rbean.getSite().getId() != reply.getSid()) {
        msg = getMessage(request, null, "error.param");
        break;
      }
      if (!site.isOwner(loginUser)
          && !isReplyBelongToUser(rbean, loginUser.getId())) {
        msg = getMessage(request, null, "error.access_deny");
        break;
      }
      DiaryDAO.deleteDiaryReply(rbean);
      break;
View Full Code Here

Examples of com.liusoft.dlog4j.beans.UserBean

      }
      if(reply.getContent().getBytes().length >= 3000){
        msgs.add("reply", new ActionMessage("error.reply_too_long"));
        break;
      }
      UserBean loginUser = super.getLoginUser(request, response);
      SiteBean site = super.getSiteByID(reply.getSid());
      if (site == null) {
        msgs.add("reply", new ActionMessage("error.site_not_available"));
        break;
      }
View Full Code Here

Examples of com.liusoft.dlog4j.beans.UserBean

      SiteBean site = super.getSiteByID(reply.getSid());
      if (site == null) {
        msgs.add("reply", new ActionMessage("error.site_not_available"));
        break;
      }
      UserBean loginUser = super.getLoginUser(request, response);
      //��������
      if(loginUser!=null && isUserInBlackList(site, loginUser)){
        msgs.add("photo", new ActionMessage("error.user_in_blacklist"));
        break;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.