com.atlassian.confluence.plugins.dailysummary.content.popular
Interface PopularContentManager

All Known Implementing Classes:
DefaultPopularContentManager

public interface PopularContentManager


Method Summary
 List<PopularContentExcerptDto> getPopularContent(com.atlassian.user.User user, Date date, int maxResults, int numberOfDays)
          Creates a list with popular content excerpt DTOs that have been active in the last number of days.
 

Method Detail

getPopularContent

List<PopularContentExcerptDto> getPopularContent(com.atlassian.user.User user,
                                                 Date date,
                                                 int maxResults,
                                                 int numberOfDays)
Creates a list with popular content excerpt DTOs that have been active in the last number of days. A piece of content is only considered popular if it has at least one like or one comment.

Parameters:
user - - the user who will view the results, this is used both to filter for permissions and as a context to rank the results.
date - - the date to evaluate the numberOfDays prior to, to determine whether the content was active
maxResults - - the maximum number of results to return
numberOfDays - - the number of days to evaluate the content score over.
Returns:
- a list of excerpt that were active in the previous numberOfDays ranked by relevance for the user.


Copyright © 2003-2013 Atlassian. All Rights Reserved.