Package com.logicaldoc.web.service
Class MessageServiceImpl
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.AbstractRemoteService
com.logicaldoc.web.service.MessageServiceImpl
- All Implemented Interfaces:
 com.google.gwt.user.client.rpc.RemoteService,com.google.gwt.user.server.rpc.SerializationPolicyProvider,MessageService,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
Implementation of the MessageService
- Since:
 - 6.0
 - Author:
 - Marco Meschieri - LogicalDOC
 - See Also:
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.MessageService
MessageService.Instance - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes a list of MessagesvoiddeleteTemplates(String name) Deletes the templates with the given namevoiddeleteTemplates(List<Long> ids) Deletes a selection of templatesgetMessage(long messageId, boolean markAsRead) Gets the MessagegetTemplate(long templateId) Gets the templateloadTemplates(String language, String type) Loads the templates configured for a given language and typevoidsave(GUIMessage message, List<Long> recipientIds) voidsaveTemplates(List<GUIMessageTemplate> templates) Saves the given templatesMethods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPostMethods inherited from class javax.servlet.http.HttpServlet
serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log 
- 
Constructor Details
- 
MessageServiceImpl
public MessageServiceImpl() 
 - 
 - 
Method Details
- 
delete
Description copied from interface:MessageServiceDeletes a list of Messages- Specified by:
 deletein interfaceMessageService- Parameters:
 ids- identifiers of the messages- Throws:
 ServerException- an error happened in the server application
 - 
getMessage
Description copied from interface:MessageServiceGets the Message- Specified by:
 getMessagein interfaceMessageService- Parameters:
 messageId- identifier of the messagemarkAsRead- flag to mark the message as read- Returns:
 - the message instance
 - Throws:
 ServerException- an error happened in the server application
 - 
save
- Specified by:
 savein interfaceMessageService- Throws:
 ServerException
 - 
loadTemplates
Description copied from interface:MessageServiceLoads the templates configured for a given language and type- Specified by:
 loadTemplatesin interfaceMessageService- Parameters:
 language- the language of the templatetype- the type of the template- Returns:
 - the list of templates loaded by the server application
 - Throws:
 ServerException- an error happened in the server application
 - 
saveTemplates
Description copied from interface:MessageServiceSaves the given templates- Specified by:
 saveTemplatesin interfaceMessageService- Parameters:
 templates- the templates to save- Throws:
 ServerException- an error happened in the server application
 - 
deleteTemplates
Description copied from interface:MessageServiceDeletes a selection of templates- Specified by:
 deleteTemplatesin interfaceMessageService- Parameters:
 ids- identifiers of the templates to delete- Throws:
 ServerException- an error happened in the server application
 - 
deleteTemplates
Description copied from interface:MessageServiceDeletes the templates with the given name- Specified by:
 deleteTemplatesin interfaceMessageService- Parameters:
 name- name of the templates to delete- Throws:
 ServerException- an error happened in the server application
 - 
getTemplate
Description copied from interface:MessageServiceGets the template- Specified by:
 getTemplatein interfaceMessageService- Parameters:
 templateId- identifier of the message template- Returns:
 - the template definition
 - Throws:
 ServerException- an error happened in the server application
 
 -