|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XWikiStatsService
Store and retrieve statistics.
Method Summary | |
---|---|
Map<?,?> |
getActionStatistics(String action,
Scope scope,
Period period,
Duration step,
XWikiContext context)
Shows how the statistics for the specified action have evolved over the specified period of time. |
List<?> |
getBackLinkStatistics(String domain,
Scope scope,
Period period,
Range range,
XWikiContext context)
Retrieves back-link statistics. |
DocumentStats |
getDocDayStats(String docname,
String action,
Date day,
XWikiContext context)
Deprecated. use getDocumentStatistics(String, Scope, Period, Range , XWikiContext) instead. |
DocumentStats |
getDocMonthStats(String docname,
String action,
Date month,
XWikiContext context)
Deprecated. use getDocumentStatistics(String, Scope, Period, Range , XWikiContext) instead. |
DocumentStats |
getDocTotalStats(String docname,
String action,
XWikiContext context)
Deprecated. use getDocumentStatistics(String, Scope, Period, Range , XWikiContext) instead. |
List<DocumentStats> |
getDocumentStatistics(String action,
Scope scope,
Period period,
Range range,
XWikiContext context)
Retrieves document statistics. |
Collection<?> |
getRecentActions(String action,
int size,
XWikiContext context)
Return the statistics action stored. |
List<RefererStats> |
getRefererStatistics(String domain,
Scope scope,
Period period,
Range range,
XWikiContext context)
Retrieves referrer statistics. |
List |
getRefMonthStats(String docName,
Date month,
XWikiContext context)
Deprecated. use getRefererStatistics(String, Scope, Period, Range, XWikiContext) instead. |
List<VisitStats> |
getVisitStatistics(String action,
Period period,
Range range,
XWikiContext context)
Retrieves visit statistics. |
void |
init(XWikiContext context)
Methods called just one time at XWiki initialization. |
Method Detail |
---|
void init(XWikiContext context)
context
- the XWiki context.Collection<?> getRecentActions(String action, int size, XWikiContext context)
action
- the action.size
- the maximum size of the list to return.context
- the XWiki context.
List<DocumentStats> getDocumentStatistics(String action, Scope scope, Period period, Range range, XWikiContext context)
action
- the action the results should be ordered by. It can be one of: "view", "save" or "download". If the
action is "view" then the documents are ordered by the number of times they have been viewed so far.scope
- the set of documents for which to retrieve statistics.period
- the period of time.range
- the sub-range to return from the entire result set. Use this parameter for pagination.context
- the XWiki context.
List<VisitStats> getVisitStatistics(String action, Period period, Range range, XWikiContext context)
action
- the action the results should be ordered by. It can be one of: "view", "save" or "download". If the
action is "view" then the visitors are ordered by the number of pages they have viewed so far.period
- the period of time.range
- the sub-range to return from the entire result set. Use this parameter for pagination.context
- the XWiki context.
List<RefererStats> getRefererStatistics(String domain, Scope scope, Period period, Range range, XWikiContext context)
domain
- the domain for which to retrieve statistics. To retrieve statistics for all domains use the empty
string.scope
- the scope of referred documents to use for filtering the results.period
- the period of time.range
- the sub-range to return from the entire result set. Use this parameter for pagination.context
- the XWiki context.
List<?> getBackLinkStatistics(String domain, Scope scope, Period period, Range range, XWikiContext context)
domain
- the domain used for filtering the results.scope
- the scope of referred documents for which to retrieve statistics.period
- the period of time.range
- the sub-range to return from the entire result set. Use this parameter for pagination.context
- the XWiki context.
Map<?,?> getActionStatistics(String action, Scope scope, Period period, Duration step, XWikiContext context)
action
- the action for which to retrieve statistics.scope
- the set of documents to consider.period
- the period of time.step
- the step used for sampling the period.context
- the XWiki context.
@Deprecated DocumentStats getDocTotalStats(String docname, String action, XWikiContext context)
getDocumentStatistics(String, Scope, Period, Range , XWikiContext)
instead.
docname
- fully qualified document name.action
- can be "view", "edit", "save", etc..context
- the XWiki context.
@Deprecated DocumentStats getDocMonthStats(String docname, String action, Date month, XWikiContext context)
getDocumentStatistics(String, Scope, Period, Range , XWikiContext)
instead.
docname
- fully qualified document name.action
- can be "view", "edit", "save", etc..month
- the month.context
- the XWiki context.
@Deprecated DocumentStats getDocDayStats(String docname, String action, Date day, XWikiContext context)
getDocumentStatistics(String, Scope, Period, Range , XWikiContext)
instead.
docname
- fully qualified document name.action
- can be "view", "edit", "save", etc..day
- the day.context
- the XWiki context.
@Deprecated List getRefMonthStats(String docName, Date month, XWikiContext context) throws XWikiException
getRefererStatistics(String, Scope, Period, Range, XWikiContext)
instead.
docName
- fully qualified document name.month
- the month.context
- the XWiki context.
XWikiException
- error when searching for referer statistics.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |