Class DocumentTemplateResource

    • Constructor Detail

      • DocumentTemplateResource

        public DocumentTemplateResource()
    • Method Detail

      • get

        @GET
        @Path("{id}")
        @Produces("application/json")
        public DocumentTemplateEntity get​(@PathParam("id")
                                          String id)
        Gets the JSON representation of a document template. If it doesn't exist, a 404 HTTP code is returned.
        Returns:
        the response to the HTTP GET request with the JSON representation of the asked document template.
      • listAll

        @GET
        @Produces("application/json")
        public List<DocumentTemplateEntity> listAll()
        Gets the JSON representation of a list of document template. If it doesn't exist, a 404 HTTP code is returned.
        Returns:
        the response to the HTTP GET request with the JSON representation of the asked document templates.
      • getComponentId

        public String getComponentId()
        Description copied from interface: SilverpeasWebResource
        Gets the identifier of the component instance to which the requested resource belongs to.
        Returns:
        the identifier of the Silverpeas component instance.