Guest User

Debug XWiki Activity Stream

a guest
Apr 8th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. {{velocity}}
  2. #set ($filterClause = "1=1 and act.wiki in (?) and not (act.version not like '%.1' and act.type = 'update') and (act.application <> 'MessageStream' or (act.application = 'MessageStream' and (act.type = 'publicMessage' or act.user = ? or (act.type = 'directMessage' and act.param2 = ?) or (act.type = 'groupMessage' and act.param2 in (?,?)))))")
  3. #set ($filterParameters = ['xwiki', 'xwiki:XWiki.Admin', 'xwiki:XWiki.Admin^XWiki.XWikiUsers', 'xwiki:XWiki.XWikiAdminGroup^XWiki.XWikiGroups', 'xwiki:XWiki.XWikiAllGroup^XWiki.XWikiGroups'])
  4. #set ($aEntries = 20)
  5. #set ($results = $xwiki.activitystream.searchDailyPages("$!filterClause", $filterParameters, $aEntries, 0))
  6. #foreach ($result in $results)
  7. * (((
  8. #foreach ($item in $result)
  9. $item, ##
  10. #end
  11. )))
  12. #end
  13. {{/velocity}}
Add Comment
Please, Sign In to add comment