Package com.gooddata.projecttemplate
Class ProjectTemplateService
- java.lang.Object
-
- com.gooddata.AbstractService
-
- com.gooddata.projecttemplate.ProjectTemplateService
-
public class ProjectTemplateService extends AbstractService
Service enabling access to project templates, under /projectTemplates/...
-
-
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 ProjectTemplateService(org.springframework.web.client.RestTemplate restTemplate)Deprecated.use ProjectTemplateService(RestTemplate) constructor insteadProjectTemplateService(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 Collection<DatasetManifest>getManifests(Template template)Get manifests of given templateTemplategetTemplateByUri(String uri)Get project template by given uri.Collection<Template>getTemplates()List of all projects' templates-
Methods inherited from class com.gooddata.AbstractService
extractData
-
-
-
-
Constructor Detail
-
ProjectTemplateService
public ProjectTemplateService(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
-
ProjectTemplateService
@Deprecated public ProjectTemplateService(org.springframework.web.client.RestTemplate restTemplate)
Deprecated.use ProjectTemplateService(RestTemplate) constructor insteadSets RESTful HTTP Spring template. Should be called from constructor of concrete service extending this abstract one.- Parameters:
restTemplate- RESTful HTTP Spring template
-
-
Method Detail
-
getTemplates
public Collection<Template> getTemplates()
List of all projects' templates- Returns:
- list of templates
-
getTemplateByUri
public Template getTemplateByUri(String uri)
Get project template by given uri.- Parameters:
uri- uri of the template- Returns:
- project template
-
getManifests
public Collection<DatasetManifest> getManifests(Template template)
Get manifests of given template- Parameters:
template- template- Returns:
- manifests linked from project template
-
-