Package com.logicaldoc.web.service
Class TemplateServiceImpl
- java.lang.Object
 - 
- javax.servlet.GenericServlet
 - 
- javax.servlet.http.HttpServlet
 - 
- com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
 - 
- com.google.gwt.user.server.rpc.RemoteServiceServlet
 - 
- com.logicaldoc.web.service.TemplateServiceImpl
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 com.google.gwt.user.client.rpc.RemoteService,com.google.gwt.user.server.rpc.SerializationPolicyProvider,TemplateService,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class TemplateServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements TemplateService
Implementation of the TemplateService- Since:
 - 6.0
 - Author:
 - Matteo Caruso - LogicalDOC
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.TemplateService
TemplateService.Instance 
 - 
 
- 
Constructor Summary
Constructors Constructor Description TemplateServiceImpl() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcountDocuments(long templateId)Counts the documents of a given templatevoiddelete(long templateId)Deletes a given templateGUITemplategetTemplate(long templateId)Loads a given template from the databaseGUITemplatesave(GUITemplate template)Creates or updates a template- 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost 
 - 
 
 - 
 
- 
- 
Method Detail
- 
delete
public void delete(long templateId) throws ServerExceptionDescription copied from interface:TemplateServiceDeletes a given template- Specified by:
 deletein interfaceTemplateService- Parameters:
 templateId- identifier of the template- Throws:
 ServerException- an error happened in the server application
 
- 
countDocuments
public long countDocuments(long templateId) throws ServerExceptionDescription copied from interface:TemplateServiceCounts the documents of a given template- Specified by:
 countDocumentsin interfaceTemplateService- Parameters:
 templateId- identifier of the template- Returns:
 - number of documents referencing the template
 - Throws:
 ServerException- an error happened in the server application
 
- 
save
public GUITemplate save(GUITemplate template) throws ServerException
Description copied from interface:TemplateServiceCreates or updates a template- Specified by:
 savein interfaceTemplateService- Parameters:
 template- the template to save- Returns:
 - the saved template
 - Throws:
 ServerException- an error happened in the server application
 
- 
getTemplate
public GUITemplate getTemplate(long templateId) throws ServerException
Description copied from interface:TemplateServiceLoads a given template from the database- Specified by:
 getTemplatein interfaceTemplateService- Parameters:
 templateId- identifier of the template- Returns:
 - the template retrieved by the server application
 - Throws:
 ServerException- an error happened in the server application
 
 - 
 
 -