Interface MessageService
- All Superinterfaces:
- com.google.gwt.user.client.rpc.RemoteService
- All Known Implementing Classes:
- MessageServiceImpl
@RemoteServiceRelativePath("message")
public interface MessageService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Message Service.
- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier 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 templates
- 
Method Details- 
getMessageGets the Message- Parameters:
- messageId- identifier of the message
- markAsRead- flag to mark the message as read
- Returns:
- the message instance
- Throws:
- ServerException- an error happened in the server application
 
- 
deleteDeletes a list of Messages- Parameters:
- ids- identifiers of the messages
- Throws:
- ServerException- an error happened in the server application
 
- 
save- Throws:
- ServerException
 
- 
loadTemplatesLoads the templates configured for a given language and type- Parameters:
- language- the language of the template
- type- the type of the template
- Returns:
- the list of templates loaded by the server application
- Throws:
- ServerException- an error happened in the server application
 
- 
getTemplateGets the template- Parameters:
- templateId- identifier of the message template
- Returns:
- the template definition
- Throws:
- ServerException- an error happened in the server application
 
- 
saveTemplatesSaves the given templates- Parameters:
- templates- the templates to save
- Throws:
- ServerException- an error happened in the server application
 
- 
deleteTemplatesDeletes a selection of templates- Parameters:
- ids- identifiers of the templates to delete
- Throws:
- ServerException- an error happened in the server application
 
- 
deleteTemplatesDeletes the templates with the given name- Parameters:
- name- name of the templates to delete
- Throws:
- ServerException- an error happened in the server application
 
 
-