Package org.jamwiki.model

Examples of org.jamwiki.model.RecentChange


  // topicVersion.setAuthorDisplay(rs.getString("wiki_user_display"));
  // return topicVersion;
  // }

  private RecentChange initRecentChange(RecentChangeEntity rs) {
    RecentChange change = new RecentChange();

    change.setTopicVersionId(rs.getTopicVersionId());
    change.setPreviousTopicVersionId(rs.getPreviousTopicVersionId());
    Key<Topic> topicId = rs.getTopicKey();
    change.setTopicOKey(topicId);

    Topic topic = rs.getTopicId();
    change.setTopicName(topic.getName());
    change.setCharactersChanged(rs.getCharactersChanged());
    change.setChangeDate(rs.getChangeDate());
    change.setChangeComment(rs.getChangeComment());

    change.setAuthorId(rs.getAuthorId());

    change.setAuthorName(rs.getAuthorName());
    int editType = rs.getEditType();
    if (editType > 0) {
      change.setEditType(editType);
      // change.initChangeWikiMessageForVersion(editType,
      // .getString("log_params"));
    }
    // int logType = rs.getInt("log_type");
    // if (logType > 0) {
    // change.setLogType(logType);
    // change.initChangeWikiMessageForLog(logType, rs.getString("log_params"));
    // }
    change.setVirtualWiki(topic.getVirtualWiki());
    return change;
  }
View Full Code Here


    change.setVirtualWiki(topic.getVirtualWiki());
    return change;
  }

  private RecentChange initRecentChange(TopicVersion rs) {
    RecentChange change = new RecentChange();

    change.setTopicVersionId(rs.getTopicVersionId());
    change.setPreviousTopicVersionId(rs.getPreviousTopicVersionId());
    Key<Topic> topicId = rs.getTopicOKey();
    change.setTopicOKey(topicId);

    Topic topic = rs.getTopicId();
    change.setTopicName(topic.getName());
    change.setCharactersChanged(rs.getCharactersChanged());
    change.setChangeDate(rs.getEditDate());
    change.setChangeComment(rs.getEditComment());

    change.setAuthorId(rs.getAuthorId());

    change.setAuthorName(rs.getAuthorDisplay());
    int editType = rs.getEditType();
    if (editType > 0) {
      change.setEditType(editType);
      // change.initChangeWikiMessageForVersion(editType,
      // .getString("log_params"));
    }
    // int logType = rs.getInt("log_type");
    // if (logType > 0) {
    // change.setLogType(logType);
    // change.initChangeWikiMessageForLog(logType, rs.getString("log_params"));
    // }
    change.setVirtualWiki(topic.getVirtualWiki());
    return change;
  }
View Full Code Here

TOP

Related Classes of org.jamwiki.model.RecentChange

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.