com.atlassian.confluence.plugins.edgeindex
Class DefaultPopularContentQueries

java.lang.Object
  extended by com.atlassian.confluence.plugins.edgeindex.DefaultPopularContentQueries
All Implemented Interfaces:
PopularContentQueries

public class DefaultPopularContentQueries
extends Object
implements PopularContentQueries


Constructor Summary
DefaultPopularContentQueries(EdgeQueries edgeQueries, ContentEntityManager contentEntityManager)
           
 
Method Summary
 List<ContentEntityObject> getMostPopular(int maxResults, int lastTimePeriod, TimeUnit timeUnit)
           
 List<ContentEntityObject> getMostPopular(int maxResults, int lastTimePeriod, TimeUnit timeUnit, ScoreConfig scoreConfig)
          find popular content based on comments and likes that have occured in the last period of time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPopularContentQueries

public DefaultPopularContentQueries(EdgeQueries edgeQueries,
                                    ContentEntityManager contentEntityManager)
Method Detail

getMostPopular

public List<ContentEntityObject> getMostPopular(int maxResults,
                                                int lastTimePeriod,
                                                TimeUnit timeUnit)
Specified by:
getMostPopular in interface PopularContentQueries

getMostPopular

public List<ContentEntityObject> getMostPopular(int maxResults,
                                                int lastTimePeriod,
                                                TimeUnit timeUnit,
                                                ScoreConfig scoreConfig)
Description copied from interface: PopularContentQueries
find popular content based on comments and likes that have occured in the last period of time

Specified by:
getMostPopular in interface PopularContentQueries
Parameters:
maxResults - - the maximum number contentEntityObjects to return
lastTimePeriod - - the previous amount of time to examine
timeUnit - - the unit of the time period
Returns:


Copyright © 2003-2012 Atlassian. All Rights Reserved.