use of net.jforum.repository.PostRepository in project jforum2 by rafaelsteil.
the class CacheAction method postsMoreInfo.
public void postsMoreInfo() {
if (!SystemGlobals.getBoolValue(ConfigKeys.POSTS_CACHE_ENABLED)) {
this.list();
return;
}
Collection topics = PostRepository.cachedTopics();
this.context.put("topics", DataAccessDriver.getInstance().newTopicDAO().selectTopicTitlesByIds(topics));
this.context.put("repository", new PostRepository());
this.setTemplateName(TemplateKeys.CACHE_POST_MOREINFO);
}
use of net.jforum.repository.PostRepository in project jforum2 by rafaelsteil.
the class CacheAction method list.
/**
* @see net.jforum.Command#list()
*/
public void list() {
this.setTemplateName(TemplateKeys.CACHE_LIST);
this.context.put("bb", new BBCodeRepository());
this.context.put("modules", new ModulesRepository());
this.context.put("ranking", new RankingRepository());
this.context.put("smilies", new SmiliesRepository());
this.context.put("security", new SecurityRepository());
this.context.put("forum", new ForumRepository());
this.context.put("topic", new TopicRepository());
this.context.put("session", new SessionFacade());
this.context.put("posts", new PostRepository());
}
Aggregations