stats:actionList

Returns a list of actions based on the given arguments.

  <stats:actionList
      id="actions"
      type="create,login,comment"
      user="userProfile"/>
  <logic:iterate
      id="action"
      name="actions"
      type="com.ndc.statistics.api.domain.ActionHistory">
    <logic:equal
        name="action"
        property="actionType.name"
        value="Login">
      Logged in at <util:valueof param="action.dateTime"/>
    </logic:equal>
    <logic:equal
        name="action"
        property="actionType.name"
        value="Create">
      <logic:equal
          name="action"
          property="articleType"
          value="blog">
        Created a new article:
        <article:use articleId="<%= action.getArticleId().intValue() %>" >
          <a href="<util:valueof param="article.url"/>">go to article</a>
        </article:use>
      </logic:equal>
    </logic:equal>
    <logic:equal
        name="action"
        property="actionType.name"
        value="Comment">
      Commented in at <util:valueof param="action.dateTime"/>
    </logic:equal>
  </logic:iterate>
Syntax
<stats:actionList
   article="..."?
   articleId="..."?
   author="..."?
   authorId="..."?
   from="..."?
   id="..."
   includeArticleTypes="..."?
   max="..."?
   section="..."?
   sectionId="..."?
   to="..."?
   type="..."
   user="..."?
   userId="..."?/>
Attributes
id, mandatory, no runtime expressions

Name of the scripting-variable.

type, mandatory

Action type can be:

user

Name of the scripting-variable where to get the user l information from. This can be a PresentationUser, PresentationPerson or Person object.

userId

The id(s) of the user(s) 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.