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

All Known Implementing Classes:
DefaultPopularContentManager

public interface PopularContentManager


Method Summary
 java.util.List<PopularContentExcerptDto> getPopularContent(ConfluenceUser user, java.util.Date date, Space space, int maxResults, int numberOfDays)
          Creates a list with popular content excerpt DTOs that have been active in the last number of days.
 java.util.List<PopularContentExcerptDto> getPopularContent(com.atlassian.user.User user, java.util.Date date, Space space, int maxResults, int numberOfDays)
          Deprecated. since 5.2. Use getPopularContent(com.atlassian.confluence.user.ConfluenceUser, java.util.Date, com.atlassian.confluence.spaces.Space, int, int) instead.
 

Method Detail

getPopularContent

java.util.List<PopularContentExcerptDto> getPopularContent(ConfluenceUser user,
                                                           java.util.Date date,
                                                           @Nullable
                                                           Space space,
                                                           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
space - the space this content will be constrained to, may be null
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.
Since:
5.2

getPopularContent

@Deprecated
java.util.List<PopularContentExcerptDto> getPopularContent(com.atlassian.user.User user,
                                                                      java.util.Date date,
                                                                      @Nullable
                                                                      Space space,
                                                                      int maxResults,
                                                                      int numberOfDays)
Deprecated. since 5.2. Use getPopularContent(com.atlassian.confluence.user.ConfluenceUser, java.util.Date, com.atlassian.confluence.spaces.Space, int, int) instead.



Copyright © 2003-2014 Atlassian. All Rights Reserved.