com.atlassian.confluence.plugins.dailysummary.content.popular
Class DefaultPopularContentManager

java.lang.Object
  extended by com.atlassian.confluence.plugins.dailysummary.content.popular.DefaultPopularContentManager
All Implemented Interfaces:
PopularContentManager

public class DefaultPopularContentManager
extends Object
implements PopularContentManager


Constructor Summary
DefaultPopularContentManager(PageManager pageManager, FollowManager followManager, FavouriteManager favouritesManager, LikeDao likeDao, PopularContentDtoFactory popularContentDtoFactory, net.sf.hibernate.SessionFactory sf, PopularContentQueries contentQueries, PermissionManager permissionManager)
           
 
Method Summary
 List<PopularContentExcerptDto> getPopularContent(com.atlassian.user.User user, Date date, int maxResults, int numDays)
           
protected  int score(ContentEntityObject content, com.atlassian.user.User user, Set<String> followingSet, Date since)
           
protected  List<ContentStat> sortByRelevance(List<ContentEntityObject> ceos, com.atlassian.user.User user, Date since)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPopularContentManager

public DefaultPopularContentManager(PageManager pageManager,
                                    FollowManager followManager,
                                    FavouriteManager favouritesManager,
                                    LikeDao likeDao,
                                    PopularContentDtoFactory popularContentDtoFactory,
                                    net.sf.hibernate.SessionFactory sf,
                                    PopularContentQueries contentQueries,
                                    PermissionManager permissionManager)
Method Detail

getPopularContent

public List<PopularContentExcerptDto> getPopularContent(com.atlassian.user.User user,
                                                        Date date,
                                                        int maxResults,
                                                        int numDays)
Specified by:
getPopularContent in interface PopularContentManager

sortByRelevance

protected List<ContentStat> sortByRelevance(List<ContentEntityObject> ceos,
                                            com.atlassian.user.User user,
                                            Date since)

score

protected int score(ContentEntityObject content,
                    com.atlassian.user.User user,
                    Set<String> followingSet,
                    Date since)


Copyright © 2003-2012 Atlassian. All Rights Reserved.