public class DefaultPopularContentQueries extends Object implements PopularContentQueries
Constructor and Description |
---|
DefaultPopularContentQueries(EdgeQueries edgeQueries,
ContentEntityManager contentEntityManager) |
Modifier and Type | Method and Description |
---|---|
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
|
public DefaultPopularContentQueries(EdgeQueries edgeQueries, ContentEntityManager contentEntityManager)
public List<ContentEntityObject> getMostPopular(int maxResults, EdgeQueryParameter queryParameter)
PopularContentQueries
getMostPopular
in interface PopularContentQueries
maxResults
- - the maximum number contentEntityObjects to returnqueryParameter
- - the previous amount of time to examinepublic List<ContentEntityObject> getMostPopular(int maxResults, int lastTimePeriod, TimeUnit timeUnit)
getMostPopular
in interface PopularContentQueries
public List<ContentEntityObject> getMostPopular(int maxResults, int lastTimePeriod, TimeUnit timeUnit, ScoreConfig scoreConfig)
PopularContentQueries
getMostPopular
in interface PopularContentQueries
maxResults
- - the maximum number contentEntityObjects to returnlastTimePeriod
- - the previous amount of time to examinetimeUnit
- - the unit of the time periodCopyright © 2003–2016 Atlassian. All rights reserved.