Package com.logicaldoc.web.service
Class TemplateServiceImpl
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet
com.logicaldoc.web.service.AbstractRemoteService
com.logicaldoc.web.service.TemplateServiceImpl
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService,- com.google.gwt.user.server.rpc.SerializationPolicyProvider,- TemplateService,- jakarta.servlet.Servlet,- jakarta.servlet.ServletConfig,- Serializable
Implementation of the TemplateService
- Since:
- 6.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.TemplateServiceTemplateService.Instance
- 
Field SummaryFields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
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 guiTemplate) Creates or updates a templateMethods inherited from class com.logicaldoc.web.service.AbstractRemoteServicesetThreadRequestMethods inherited from class com.google.gwt.user.server.rpc.jakarta.RemoteServiceServletgetSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServletdoPostMethods inherited from class jakarta.servlet.http.HttpServletserviceMethods inherited from class jakarta.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
- 
Constructor Details- 
TemplateServiceImplpublic TemplateServiceImpl()
 
- 
- 
Method Details- 
deleteDescription copied from interface:TemplateServiceDeletes a given template- Specified by:
- deletein interface- TemplateService
- Parameters:
- templateId- identifier of the template
- Throws:
- ServerException- an error happened in the server application
 
- 
countDocumentsDescription copied from interface:TemplateServiceCounts the documents of a given template- Specified by:
- countDocumentsin interface- TemplateService
- Parameters:
- templateId- identifier of the template
- Returns:
- number of documents referencing the template
- Throws:
- ServerException- an error happened in the server application
 
- 
saveDescription copied from interface:TemplateServiceCreates or updates a template- Specified by:
- savein interface- TemplateService
- Parameters:
- guiTemplate- the template to save
- Returns:
- the saved template
- Throws:
- ServerException- an error happened in the server application
 
- 
cloneDescription copied from interface:TemplateServiceMakes a clone of an existing template- Specified by:
- clonein interface- TemplateService
- 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
 
- 
getTemplateDescription copied from interface:TemplateServiceLoads a given template from the database- Specified by:
- getTemplatein interface- TemplateService
- Parameters:
- templateId- identifier of the template
- Returns:
- the template retrieved by the server application
- Throws:
- ServerException- an error happened in the server application
 
- 
getAttributespublic List<GUIAttribute> getAttributes(long templateId, GUIExtensibleObject extensibleObject) throws ServerException Description copied from interface:TemplateServiceRetrieves all attributes of the specified template- Specified by:
- getAttributesin interface- TemplateService
- 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
 
 
-