Package com.liusoft.dlog4j.base

Examples of com.liusoft.dlog4j.base.ClientInfo


  public void setUser(UserBean user) {
    this.user = user;
  }
  public synchronized ClientInfo getClient() {
    if(client==null)
      client = new ClientInfo();
    return client;
  }
View Full Code Here


      rbean.setAuthor(super.autoFiltrate(site,reply.getAuthor()));
      if (StringUtils.isNotEmpty(reply.getAuthorURL()))
        rbean.setAuthorURL(reply.getAuthorURL());
      if (StringUtils.isNotEmpty(reply.getAuthorEmail()))
        rbean.setAuthorEmail(reply.getAuthorEmail());
      rbean.setClient(new ClientInfo(request, reply
          .getClientType()));
      String content = StringUtils.abbreviate(super.autoFiltrate(null,
          reply.getContent()), MAX_REPLY_LENGTH);
      rbean.setContent(super.filterScriptAndStyle(content));
      rbean.setDiary(diary);
View Full Code Here

      rbean.setAuthor(super.autoFiltrate(site,reply.getAuthor()));
      if (StringUtils.isNotEmpty(reply.getAuthorURL()))
        rbean.setAuthorURL(reply.getAuthorURL());
      if (StringUtils.isNotEmpty(reply.getAuthorEmail()))
        rbean.setAuthorEmail(reply.getAuthorEmail());
      rbean.setClient(new ClientInfo(request, reply
          .getClientType()));
      String content = StringUtils.abbreviate(super.autoFiltrate(null,
          reply.getContent()), MAX_REPLY_LENGTH);
      rbean.setContent(super.filterScriptAndStyle(content));
      rbean.setPhoto(photo);
View Full Code Here

      journal.setOwner(loginUser);
      journal.setSite(site);
      journal.setAuthor(super.autoFiltrate(site, log.getAuthor()));
      journal.setAuthorUrl(log.getAuthorUrl());
      journal.setCatalog(catalog);
      journal.setClient(new ClientInfo(request, log.getClientType()));
      // ������վ�İ�ȫ��־�����Ƿ�����ݽ��������ִʹ���

      String ssn_id = RequestUtils.getDlogSessionId(request);
      boolean wml = WML_IDENTITY.equalsIgnoreCase(identity);
      String content = autoCompileContent(request, site, log.getContent(), loginUser.getId(), ssn_id, wml);
View Full Code Here

        msgs.add("log", new ActionMessage("error.catalog_deny",
            new Integer(log.getCatalogId())));
        break;
      }
      // ��ȡ�����²ݸ����Ȼ���״̬��Ϊ����
      journal.setClient(new ClientInfo(request, log.getClientType()));
      journal.setViewCount(0);
      journal.setStatus(DiaryBean.STATUS_NORMAL);
      journal.setWriteTime(new Date());
      DiaryDAO.flush();
      break;
View Full Code Here

        journal.setRefUrl(null);
      else
        journal.setRefUrl(log.getRefUrl());
      // ��ȡ�����²ݸ����Ȼ���״̬��Ϊ����
      journal.setCatalog(catalog);
      journal.setClient(new ClientInfo(request, log.getClientType()));
      String ssn_id = RequestUtils.getDlogSessionId(request);
      boolean wml = WML_IDENTITY.equalsIgnoreCase(identity);
      String content = autoCompileContent(request, site, log.getContent(), loginUser.getId(), ssn_id, wml);
      journal.setContent(content);
      journal.setSize(content.getBytes().length);
View Full Code Here

      journal.setOwner(loginUser);
      journal.setSite(site);
      journal.setAuthor(super.autoFiltrate(site,log.getAuthor()));
      journal.setAuthorUrl(log.getAuthorUrl());
      journal.setCatalog(catalog);
      journal.setClient(new ClientInfo(request, log
          .getClientType()));
      journal.setContent(super.autoFiltrate(site,log.getContent()));
      journal.setMoodLevel(log.getMoodLevel());
      journal.setRefUrl(log.getRefUrl());
      journal.setReplyNotify(log.getNotify());
View Full Code Here

public class TopicBean extends _TopicBeanBase implements SearchEnabled{
 
  public TopicBean(){}
 
  public TopicBean(HttpServletRequest req, int client_type){
    super.client = new ClientInfo(req, client_type);
    super.setCreateTime(new Date());
  }
View Full Code Here

  protected String title;

  public TopicReplyBean(){}
 
  public TopicReplyBean(HttpServletRequest req, int client_type){
    super.client = new ClientInfo(req, client_type);
    super.replyTime = new Date();
  }
View Full Code Here

            new Integer(rform.getTid())));
        break;
      }
      // ����TopicBean
      TopicReplyBean reply = new TopicReplyBean();
      reply.setClient(new ClientInfo(request, rform.getClientType()));
      String content = StringUtils.abbreviate(super.autoFiltrate(null,
          rform.getContent()), MAX_REPLY_LENGTH);
      reply.setContent(super.filterScriptAndStyle(content));
      reply.setReplyTime(new Date());
      reply.setSite(site);
View Full Code Here

TOP

Related Classes of com.liusoft.dlog4j.base.ClientInfo

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.