Package com.dianping.cat.home.dal.report

Examples of com.dianping.cat.home.dal.report.Alteration


    String group = payload.getGroup();
    String content = payload.getContent();
    String url = payload.getUrl();

    Date date = payload.getAlterationDate();
    Alteration alt = new Alteration();

    alt.setType(type);
    alt.setDomain(domain);
    alt.setTitle(title);
    alt.setIp(ip);
    alt.setUser(user);
    alt.setAltGroup(group);
    alt.setContent(content);
    alt.setHostname(hostname);
    alt.setDate(date);
    try {
      alt.setUrl(URLDecoder.decode(url, "UTF-8"));
      } catch (UnsupportedEncodingException e) {
        Cat.logError(e);
        alt.setUrl("");
      }

    return alt;
  }
View Full Code Here


    switch (action) {
    case INSERT:
      if (!isArguComplete(payload)) {
        setInsertResult(model, 2);
      } else {
        Alteration alt = buildAlteration(payload);
        try {
          int count = m_alterationDao.insert(alt);

          if (count == 0) {
            setInsertResult(model, 1);
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.dal.report.Alteration

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.