Package com.gooddata.executeafm
Class ExecuteAfmService
- java.lang.Object
-
- com.gooddata.AbstractService
-
- com.gooddata.executeafm.ExecuteAfmService
-
public class ExecuteAfmService extends AbstractService
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.AbstractService
AbstractService.OutputStreamResponseExtractor
-
-
Field Summary
-
Fields inherited from class com.gooddata.AbstractService
mapper, restTemplate
-
-
Constructor Summary
Constructors Constructor Description ExecuteAfmService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExecutionResponseexecute(Project project, Execution execution)Deprecated.ExecutionResponseexecuteAfm(Project project, Execution execution)Executes the given AFM execution returning the execution responseExecutionResponseexecuteVisualization(Project project, VisualizationExecution execution)Executes the given execution returning the execution responseFutureResult<ExecutionResult>getResult(ExecutionResponse executionResponse)Get for result of given response.FutureResult<ExecutionResult>getResult(ExecutionResponse executionResponse, ResultPage page)Get for page of result of given response.-
Methods inherited from class com.gooddata.AbstractService
extractData
-
-
-
-
Constructor Detail
-
ExecuteAfmService
public ExecuteAfmService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)Constructor.- Parameters:
restTemplate- rest templatesettings- settings
-
-
Method Detail
-
execute
@Deprecated public ExecutionResponse execute(Project project, Execution execution)
Deprecated.
-
executeAfm
public ExecutionResponse executeAfm(Project project, Execution execution)
Executes the given AFM execution returning the execution response- Parameters:
project- project of the executionexecution- execution- Returns:
- response of the submitted execution
-
executeVisualization
public ExecutionResponse executeVisualization(Project project, VisualizationExecution execution)
Executes the given execution returning the execution response- Parameters:
project- project of the executionexecution- execution- Returns:
- response of the submitted execution
-
getResult
public FutureResult<ExecutionResult> getResult(ExecutionResponse executionResponse)
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
-
-