Class ExecuteAfmService

java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.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
  • Field Details

  • Constructor Details

    • ExecuteAfmService

      public ExecuteAfmService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)
      Constructor.
      Parameters:
      restTemplate - rest template
      settings - settings
  • Method Details

    • executeAfm

      public ExecutionResponse executeAfm(Project project, Execution execution)
      Executes the given AFM execution returning the execution response
      Parameters:
      project - project of the execution
      execution - 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 execution
      execution - 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 result
      page - desired result page specification
      Returns:
      future of execution result