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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(long[] ids) Deletes a list of Messagesvoid
deleteTemplates
(long[] ids) Deletes a selection of templatesvoid
deleteTemplates
(String name) Deletes the templates with the given namegetMessage
(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 typevoid
save
(GUIMessage message, long[] recipientIds) void
saveTemplates
(GUIMessageTemplate[] templates) Saves the given templatesMethods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost
Methods inherited from class javax.servlet.http.HttpServlet
service
Methods 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:MessageService
Deletes a list of Messages- Specified by:
delete
in interfaceMessageService
- Parameters:
ids
- identifiers of the messages- Throws:
ServerException
- an error happened in the server application
-
getMessage
Description copied from interface:MessageService
Gets the Message- Specified by:
getMessage
in 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:
save
in interfaceMessageService
- Throws:
ServerException
-
loadTemplates
Description copied from interface:MessageService
Loads the templates configured for a given language and type- Specified by:
loadTemplates
in 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:MessageService
Saves the given templates- Specified by:
saveTemplates
in interfaceMessageService
- Parameters:
templates
- the templates to save- Throws:
ServerException
- an error happened in the server application
-
deleteTemplates
Description copied from interface:MessageService
Deletes a selection of templates- Specified by:
deleteTemplates
in interfaceMessageService
- Parameters:
ids
- identifiers of the templates to delete- Throws:
ServerException
- an error happened in the server application
-
deleteTemplates
Description copied from interface:MessageService
Deletes the templates with the given name- Specified by:
deleteTemplates
in interfaceMessageService
- Parameters:
name
- name of the templates to delete- Throws:
ServerException
- an error happened in the server application
-
getTemplate
Description copied from interface:MessageService
Gets the template- Specified by:
getTemplate
in interfaceMessageService
- Parameters:
templateId
- identifier of the message template- Returns:
- the template definition
- Throws:
ServerException
- an error happened in the server application
-