Class OutputStageService
- java.lang.Object
-
- com.gooddata.sdk.service.AbstractService
-
- com.gooddata.sdk.service.dataload.OutputStageService
-
public class OutputStageService extends AbstractService
Service to manage output stage.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.gooddata.sdk.service.AbstractService
AbstractService.OutputStreamResponseExtractor
-
-
Field Summary
Fields Modifier and Type Field Description static org.springframework.web.util.UriTemplateOUTPUT_STAGE_TEMPLATE-
Fields inherited from class com.gooddata.sdk.service.AbstractService
mapper, restTemplate
-
-
Constructor Summary
Constructors Constructor Description OutputStageService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)Sets RESTful HTTP Spring template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.gooddata.sdk.model.dataload.OutputStagegetOutputStage(com.gooddata.sdk.model.project.Project project)Get output stage by given project.com.gooddata.sdk.model.dataload.OutputStagegetOutputStageByUri(java.lang.String uri)Get output stage by given URI.com.gooddata.sdk.model.dataload.OutputStageupdateOutputStage(com.gooddata.sdk.model.dataload.OutputStage outputStage)Update output stage.-
Methods inherited from class com.gooddata.sdk.service.AbstractService
extractData
-
-
-
-
Constructor Detail
-
OutputStageService
public OutputStageService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)Sets RESTful HTTP Spring template. Should be called from constructor of concrete service extending this abstract one.- Parameters:
restTemplate- RESTful HTTP Spring templatesettings- settings
-
-
Method Detail
-
getOutputStageByUri
public com.gooddata.sdk.model.dataload.OutputStage getOutputStageByUri(java.lang.String uri)
Get output stage by given URI.- Parameters:
uri- output stage uri- Returns:
- output stage object
- Throws:
ProcessNotFoundException- when the process doesn't exist
-
getOutputStage
public com.gooddata.sdk.model.dataload.OutputStage getOutputStage(com.gooddata.sdk.model.project.Project project)
Get output stage by given project.- Parameters:
project- project to which the process belongs- Returns:
- output stage
- Throws:
ProcessNotFoundException- when the process doesn't exist
-
updateOutputStage
public com.gooddata.sdk.model.dataload.OutputStage updateOutputStage(com.gooddata.sdk.model.dataload.OutputStage outputStage)
Update output stage.- Parameters:
outputStage- output stage- Returns:
- updated output stage
-
-