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 voiddelete(long[] ids)Deletes a list of MessagesvoiddeleteTemplates(long[] ids)Deletes a selection of templatesvoiddeleteTemplates(String name)Deletes the templates with the given nameGUIMessagegetMessage(long messageId, boolean markAsRead)Gets the MessageGUIMessageTemplategetTemplate(long templateId)Gets the templateGUIMessageTemplate[]loadTemplates(String language, String type)Loads the templates configured for a given language and typevoidsave(GUIMessage message, long[] recipientIds)voidsaveTemplates(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 ServerExceptionDescription 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
public GUIMessage getMessage(long messageId, boolean markAsRead) throws ServerException
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
public void save(GUIMessage message, long[] recipientIds) throws ServerException
- Specified by:
savein interfaceMessageService- Throws:
ServerException
-
loadTemplates
public GUIMessageTemplate[] loadTemplates(String language, String type) throws ServerException
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
public void saveTemplates(GUIMessageTemplate[] templates) throws ServerException
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
public void deleteTemplates(long[] ids) throws ServerExceptionDescription 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
public void deleteTemplates(String name) throws ServerException
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
public GUIMessageTemplate getTemplate(long templateId) throws ServerException
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
-
-