Class ExecuteAfmService
java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.executeafm.ExecuteAfmService
Service for executing reports with new visualization structures like AFM or Visualization Object.
This includes GD API endpoints:
/executeAfm/executeVisualization
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gooddata.sdk.service.AbstractService
AbstractService.OutputStreamResponseExtractor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringURI string containing template link to the/executeAfmresource.static final StringQuery param representing limit of result data returned by AFM execution.static final StringQuery param representing offset of result data returned by AFM execution.static final StringURI string containing template link to the/executeVisualizationresource.Fields inherited from class com.gooddata.sdk.service.AbstractService
mapper, restTemplate -
Constructor Summary
ConstructorsConstructorDescriptionExecuteAfmService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionexecuteAfm(Project project, Execution execution) Executes the given AFM execution returning the execution responseexecuteVisualization(Project project, VisualizationExecution execution) Executes the given execution returning the execution responsegetResult(ExecutionResponse executionResponse) Get for result of given response.getResult(ExecutionResponse executionResponse, ResultPage page) Get for page of result of given response.Methods inherited from class com.gooddata.sdk.service.AbstractService
extractData
-
Field Details
-
AFM_EXECUTION_URI
URI string containing template link to the/executeAfmresource.- See Also:
-
VISUALIZATION_EXECUTION_URI
URI string containing template link to the/executeVisualizationresource.- See Also:
-
RESULT_OFFSET
Query param representing offset of result data returned by AFM execution. Can be used for offset query param value replacement inExecutionResponse.getExecutionResultUri()link.- See Also:
-
RESULT_LIMIT
Query param representing limit of result data returned by AFM execution. Can be used for limit query param value replacement inExecutionResponse.getExecutionResultUri()link.- See Also:
-
-
Constructor Details
-
ExecuteAfmService
public ExecuteAfmService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings) Constructor.- Parameters:
restTemplate- rest templatesettings- settings
-
-
Method Details
-
executeAfm
Executes the given AFM execution returning the execution response- Parameters:
project- project of the executionexecution- execution- Returns:
- response of the submitted execution
-
executeVisualization
Executes the given execution returning the execution response- Parameters:
project- project of the executionexecution- execution- Returns:
- response of the submitted execution
-
getResult
Get for result of given response.- Parameters:
executionResponse- response to get the result- Returns:
- future of execution result
-
getResult
public FutureResult<ExecutionResult> getResult(ExecutionResponse executionResponse, ResultPage page) Get for page of result of given response.- Parameters:
executionResponse- response to get the resultpage- desired result page specification- Returns:
- future of execution result
-