public interface IReportPostProcessor
Modifier and Type | Method and Description |
---|---|
default void |
init(org.json.JSONObject configuration,
Set<String> extraQueries,
org.elasticsearch.client.RestClient client)
When the report processor is provided, this method will be called in the provider with the given configuration JSON object,
the queries used to filter the report response and the
RestClient used to execute queries on Elasticsearch. |
org.json.JSONObject |
process(org.json.JSONObject responseJSON,
Source<? extends ISourceField> source)
Process the given response JSON.
|
org.json.JSONObject process(org.json.JSONObject responseJSON, Source<? extends ISourceField> source) throws org.json.JSONException, PortalException
responseJSON
- the response JSON.source
- the source.org.json.JSONException
PortalException
default void init(org.json.JSONObject configuration, Set<String> extraQueries, org.elasticsearch.client.RestClient client) throws org.json.JSONException, PortalException
RestClient
used to execute queries on Elasticsearch.configuration
- the configuration used to process the report response.extraQueries
- the queries used to filter the report response.client
- the RestClient
used to execute queries on Elasticsearch.org.json.JSONException
PortalException
Lumisportal 10.3.0.171201 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.