stats:userActivityList
Retrieves a list with the level of activity for every user. This depends on the type of actions a user performed because each action has a weightfactor that will be used in the calculation for the total activity. The list is order by activity so the most active users will appear first in the list.
The objects returned in the collection are UserActivity objects with a 'userId' and an 'activity' property.
<stats:userActivityList id="userActivity" type="create,view" users="members" max="5"/> <logic:iterate id="activity" name="userActivity" type="com.ndc.statistics.api.domain.UserActivity"> <util:valueof param="activity.userId"/> <util:valueof param="activity.activity"/> <util:valueof param="activity.weightedActivity"/> </logic:iterate>
Syntax
<stats:userActivityList article="..."? articleId="..."? author="..."? authorId="..."? from="..."? id="..." includeArticleTypes="..."? max="..."? section="..."? sectionId="..."? to="..."? type="..." userIds="..."? users="..."?/>
Attributes
id
, mandatory, no runtime expressionsName of the scripting-variable.
type
, mandatoryAction type can be: view, create, update, tag, rate, comment, search, login, message, favorite
users
Name of the scripting-variable where to get the users collection from. It will calculates from this users. This can be a PresentationUser, PresentationPerson or Person object.
userIds
The id of the user to get the count from.
article
Name of the scripting-variable where to get the user information from. This must be an PresentationArticle or Article object.
articleId
The id of the article to get the count from.
includeArticleTypes
The type of the article to get the count from.
section
Name of the scripting-variable where to get the user information from. This must be an PresentationSection or Section object.
sectionId
The section id.
author
Name of the scripting-variable where to get the author information from. This can be a PresentationUser, PresentationPerson or Person object.
authorId
The id of the author to get the count from.
from
Date object or hours back from now
to
Date object or hours back from now
max
Maximum items to be returned.