Interface TemplateService

  • All Superinterfaces:
    com.google.gwt.user.client.rpc.RemoteService
    All Known Implementing Classes:
    TemplateServiceImpl

    @RemoteServiceRelativePath("template")
    public interface TemplateService
    extends com.google.gwt.user.client.rpc.RemoteService
    The client side stub for the Template Service. This service gives all needed methods to handle templates.
    • Method Detail

      • delete

        void delete​(long templateId)
             throws ServerException
        Deletes a given template
        Parameters:
        templateId - identifier of the template
        Throws:
        ServerException - an error happened in the server application
      • getTemplate

        GUITemplate getTemplate​(long templateId)
                         throws ServerException
        Loads a given template from the database
        Parameters:
        templateId - identifier of the template
        Returns:
        the template retrieved by the server application
        Throws:
        ServerException - an error happened in the server application
      • countDocuments

        long countDocuments​(long templateId)
                     throws ServerException
        Counts the documents of a given template
        Parameters:
        templateId - identifier of the template
        Returns:
        number of documents referencing the template
        Throws:
        ServerException - an error happened in the server application