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
public class MessageServiceImpl extends AbstractRemoteService implements MessageService
Implementation of the MessageService- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.MessageService
MessageService.Instance
-
-
Constructor Summary
Constructors Constructor Description MessageServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 nameGUIMessage
getMessage(long messageId, boolean markAsRead)
Gets the MessageGUIMessageTemplate
getTemplate(long templateId)
Gets the templateGUIMessageTemplate[]
loadTemplates(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 templates-
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
-
-
-
-
Method Detail
-
delete
public void delete(long[] ids) throws ServerException
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
public GUIMessage getMessage(long messageId, boolean markAsRead) throws ServerException
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
public void save(GUIMessage message, long[] recipientIds) throws ServerException
- Specified by:
save
in interfaceMessageService
- Throws:
ServerException
-
loadTemplates
public GUIMessageTemplate[] loadTemplates(String language, String type) throws ServerException
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
public void saveTemplates(GUIMessageTemplate[] templates) throws ServerException
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
public void deleteTemplates(long[] ids) throws ServerException
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
public void deleteTemplates(String name) throws ServerException
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
public GUIMessageTemplate getTemplate(long templateId) throws ServerException
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
-
-