Package com.xwiki.analytics
Interface AnalyticsManager
@Role
@Unstable
public interface AnalyticsManager
The interface for the AnalyticManger.
- Since:
- 1.0
- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionvoidAggregate data from multiple endpoints using a specific aggregator.handleData(String hint, String asc, String sortField, Map<String, String> filters, int pageSize, int pageCount) Handles data aggregated from the analytics applications and stored directly in XWiki.com.fasterxml.jackson.databind.JsonNodeRequest specific analytics data.
-
Method Details
-
requestData
com.fasterxml.jackson.databind.JsonNode requestData(Map<String, String> parameters, Map<String, throws IOExceptionString> filters, String jsonNormaliserHint) Request specific analytics data.- Parameters:
jsonNormaliserHint- hint to select the json normaliserparameters- a list of key, value pairs that will represent the parameters for the requestfilters- holds the criteria for filtering a dataset- Returns:
- a jsonNode with the processed data
- Throws:
IOException
-
aggregate
Aggregate data from multiple endpoints using a specific aggregator.- Parameters:
hint- which aggregator you want to use.
-
handleData
org.apache.commons.lang3.tuple.Pair<Integer,List<com.fasterxml.jackson.databind.JsonNode>> handleData(String hint, String asc, String sortField, Map<String, String> filters, int pageSize, int pageCount) throws com.fasterxml.jackson.core.JsonProcessingException, com.xpn.xwiki.XWikiExceptionHandles data aggregated from the analytics applications and stored directly in XWiki.- Parameters:
hint- for the aggregator usedasc- if you want the data to be in ascending or descending ordersortField- the field that you want to sort afterfilters- map where the keys are the fields and the values are the text that you want to filter afterpageSize- how many elements are on a pagepageCount- current page offset- Returns:
- a pair where the first element is the total number of entries that meet the criteria(filter), and the second element is a slice of the original list paginated using pageSize and pageCount
- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptioncom.xpn.xwiki.XWikiException
-