Class OutputStageService
java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.dataload.OutputStageService
Service to manage output stage.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gooddata.sdk.service.AbstractService
AbstractService.OutputStreamResponseExtractor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.web.util.UriTemplateFields inherited from class com.gooddata.sdk.service.AbstractService
mapper, restTemplate -
Constructor Summary
ConstructorsConstructorDescriptionOutputStageService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings) Sets RESTful HTTP Spring template. -
Method Summary
Modifier and TypeMethodDescriptiongetOutputStage(Project project) Get output stage by given project.Get output stage by given URI.updateOutputStage(OutputStage outputStage) Update output stage.Methods inherited from class com.gooddata.sdk.service.AbstractService
extractData
-
Field Details
-
OUTPUT_STAGE_TEMPLATE
public static final org.springframework.web.util.UriTemplate OUTPUT_STAGE_TEMPLATE
-
-
Constructor Details
-
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 Details
-
getOutputStageByUri
Get output stage by given URI.- Parameters:
uri- output stage uri- Returns:
- output stage object
- Throws:
ProcessNotFoundException- when the process doesn't exist
-
getOutputStage
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
Update output stage.- Parameters:
outputStage- output stage- Returns:
- updated output stage
-