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 java.lang.Object
implements PopularContentQueries


Constructor Summary
DefaultPopularContentQueries(EdgeQueries edgeQueries, ContentEntityManager contentEntityManager)
           
 
Method Summary
 java.util.List<ContentEntityObject> getMostPopular(int maxResults, EdgeQueryParameter queryParameter)
          find popular content that have occurred in the last period of time
 java.util.List<ContentEntityObject> getMostPopular(int maxResults, int lastTimePeriod, java.util.concurrent.TimeUnit timeUnit)
           
 java.util.List<ContentEntityObject> getMostPopular(int maxResults, int lastTimePeriod, java.util.concurrent.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 java.util.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 java.util.List<ContentEntityObject> getMostPopular(int maxResults,
                                                          int lastTimePeriod,
                                                          java.util.concurrent.TimeUnit timeUnit)
Specified by:
getMostPopular in interface PopularContentQueries

getMostPopular

public java.util.List<ContentEntityObject> getMostPopular(int maxResults,
                                                          int lastTimePeriod,
                                                          java.util.concurrent.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-2014 Atlassian. All Rights Reserved.