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.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionMakes a clone of an existing templatelongcountDocuments(long templateId) Counts the documents of a given templatevoiddelete(long templateId) Deletes a given templategetAttributes(long templateId, GUIExtensibleObject extensibleObject) Retrieves all attributes of the specified templategetTemplate(long templateId) Loads a given template from the databasesave(GUITemplate template) Creates or updates a template
- 
Method Details- 
deleteDeletes a given template- Parameters:
- templateId- identifier of the template
- Throws:
- ServerException- an error happened in the server application
 
- 
saveCreates or updates a template- Parameters:
- template- the template to save
- Returns:
- the saved template
- Throws:
- ServerException- an error happened in the server application
 
- 
cloneMakes a clone of an existing template- Parameters:
- templateId- identifier of the original template
- cloneName- name of the cloned template
- Returns:
- the created clone
- Throws:
- ServerException- an error happened in the server application
 
- 
getTemplateLoads 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
 
- 
countDocumentsCounts 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
 
- 
getAttributesList<GUIAttribute> getAttributes(long templateId, GUIExtensibleObject extensibleObject) throws ServerException Retrieves all attributes of the specified template- Parameters:
- templateId- identifier of the template
- extensibleObject- this is optional and is the object for which the attributes must be retrieved
- Returns:
- the attributes
- Throws:
- ServerException- an error happened in the server application
 
 
-