Package com.xwiki.analytics
Interface JsonNormaliser
-
@Role @Unstable public interface JsonNormaliserProvides APIs for normalizing data received from Matomo, for easing the afterwards manipulations. Depending on what was requested from Matomo, the response can have various formats, which are not consistent or need enhancement.- Since:
- 1.0
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetIdentifier()Retrieve the hint of a component.com.fasterxml.jackson.databind.JsonNodenormaliseData(String jsonString, Map<String,String> filters)Normalise the data returned to have the expected format.
-
-
-
Method Detail
-
normaliseData
com.fasterxml.jackson.databind.JsonNode normaliseData(String jsonString, Map<String,String> filters) throws com.fasterxml.jackson.core.JsonProcessingException
Normalise the data returned to have the expected format.- Parameters:
filters- holds the criteria for filtering a datasetjsonString- a string that has the expected format- Returns:
- a
JsonNodewith the root of the normalized JSON - Throws:
com.fasterxml.jackson.core.JsonProcessingException- Throws this error when the jsonString param is not a proper json
-
getIdentifier
String getIdentifier()
Retrieve the hint of a component.- Returns:
- hint of the component
-
-