Class ProjectTemplateService


  • public class ProjectTemplateService
    extends AbstractService
    Service enabling access to project templates, under /projectTemplates/...
    • 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 template
        settings - settings
      • ProjectTemplateService

        @Deprecated
        public ProjectTemplateService​(org.springframework.web.client.RestTemplate restTemplate)
        Deprecated.
        use ProjectTemplateService(RestTemplate) constructor instead
        Sets 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