On 08/06/2010 01:37 PM, Ivan Levashew wrote:
> Hello!
>
> A very natural desire of anyone whose wiki has open spaces is
> to track IP of every edit (something like Wikipedia).
>
> But I can't figure out whether it is implemented or not. First,
> I thought it isn't (no traces in Document API).
>
> This issue: http://jira.xwiki.org/jira/browse/XWIKI-1913 makes me
> think that not only IPs, but also X-Forwarded-For are stored.

Take a look at xwikistatsvisit table ( 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/XWikiVisits ). You can 
query it like 
http://code.xwiki.org/xwiki/bin/view/Snippets/MostActiveContributorsInGroupSnippet
 
or 
http://code.xwiki.org/xwiki/bin/view/Snippets/NumberOfActiveUsersPerDayAndPerWeekSnippet
 
.

StatsService might be useful too ( 
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/com/xpn/xwiki/platform/xwiki-core/2.4/xwiki-core-2.4-javadoc.jar/!/com/xpn/xwiki/api/StatsService.html
 
).

Hope this helps,
Marius

>
> Still, I'm not sure, and I don't know how to use this.
>
> --
> If you want to get to the top, you have to start at the bottom
>
>
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to