Search in sources :

Example 1 with PostRepository

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);
}
Also used : Collection(java.util.Collection) PostRepository(net.jforum.repository.PostRepository)

Example 2 with PostRepository

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());
}
Also used : ForumRepository(net.jforum.repository.ForumRepository) SmiliesRepository(net.jforum.repository.SmiliesRepository) SessionFacade(net.jforum.SessionFacade) BBCodeRepository(net.jforum.repository.BBCodeRepository) RankingRepository(net.jforum.repository.RankingRepository) SecurityRepository(net.jforum.repository.SecurityRepository) ModulesRepository(net.jforum.repository.ModulesRepository) TopicRepository(net.jforum.repository.TopicRepository) PostRepository(net.jforum.repository.PostRepository)

Aggregations

PostRepository (net.jforum.repository.PostRepository)2 Collection (java.util.Collection)1 SessionFacade (net.jforum.SessionFacade)1 BBCodeRepository (net.jforum.repository.BBCodeRepository)1 ForumRepository (net.jforum.repository.ForumRepository)1 ModulesRepository (net.jforum.repository.ModulesRepository)1 RankingRepository (net.jforum.repository.RankingRepository)1 SecurityRepository (net.jforum.repository.SecurityRepository)1 SmiliesRepository (net.jforum.repository.SmiliesRepository)1 TopicRepository (net.jforum.repository.TopicRepository)1