Package com.iqbon.jcms.domain

Examples of com.iqbon.jcms.domain.DocLog


   * @param doc
   * @return
   */
  public int addDoc(Doc doc) {
    int insertNum = docDAO.insertDoc(doc);
    DocLog docLog = new DocLog();
    docLog.setDocid(doc.getDocid());
    docLog.setContent(DocLog.DOC_ADD_COMMON);
    docLog.setTime(new Date());
    docLog.setUserName(doc.getLastModify());
    return insertNum;
  }
View Full Code Here


   * @param doc
   * @return
   */
  public int modifyDoc(Doc doc) {
    int modifyNum = docDAO.updateDoc(doc);
    DocLog docLog = new DocLog();
    docLog.setContent(DocLog.DOC_MODIFY_COMMON);
    docLog.setTime(new Date());
    docLog.setUserName(doc.getLastModify());
    return modifyNum;
  }
View Full Code Here

      int deletePush = pushRecordDAO.deletePushRecordByDocid(docid);
      if (deletePush <= 0) {
        logger.error("删除文章" + docid + "推送记录失败 ");
        return 0;
      } else {
        DocLog docLog = new DocLog();
        docLog.setContent(DocLog.DOC_DELETE_COMMON);
        docLog.setTime(new Date());
        docLog.setUserName(userName);
      }
    } else {
      logger.error("删除文章" + docid + "失败");
    }
      return deleteNum;
View Full Code Here

    //如果文章不是发布状态,设置文章状态
    setDocStatus(docid, Doc.docStatus.publish);

    //写日志
    DocLog docLog = new DocLog();
    docLog.setContent(DocLog.DOC_PUBLISH_COMMON);
    docLog.setTime(new Date());
    docLog.setUserName(doc.getLastModify());
    return docContent;
  }
View Full Code Here

public class DocLogMapper implements RowMapper<DocLog> {

  @Override
  public DocLog mapRow(ResultSet rs, int rowNum) throws SQLException {
    DocLog docLog = new DocLog();
    docLog.setDocid(rs.getString("docid"));
    docLog.setContent(rs.getString("content"));
    docLog.setTime(rs.getDate("time"));
    docLog.setUserName(rs.getString("user_name"));
    return docLog;
  }
View Full Code Here

TOP

Related Classes of com.iqbon.jcms.domain.DocLog

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.