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, EdgeQueryParameter queryParameter)
          find popular content that have occurred in the last period of time
 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,
                                                EdgeQueryParameter queryParameter)
Description copied from interface: PopularContentQueries
find popular content that have occurred in the last period of time

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

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–2015 Atlassian. All rights reserved.