public interface MessageService
void setMessageSender(MessageSender sender)
MessageSender getMessageSender()
void setMessagePreparator(MessagePreparator preparator)
MessagePreparator getMessagePreparator()
void sendMessage(Message message) throws MessageException
message
- MessageException
- Should send messagevoid sendMessage(Message message, String roleName) throws MessageException
MessageException
void sendMessage(Message message, Integer userId) throws MessageException
MessageException
void sendMessage(Message message, User user) throws MessageException
MessageException
void sendMessage(Message message, Role role) throws MessageException
MessageException
void sendMessage(Message message, Collection<User> users) throws MessageException
MessageException
void sendMessage(String recipients, String sender, String subject, String message) throws MessageException
MessageException
Message createMessage(String subject, String message) throws MessageException
MessageException
Message createMessage(String sender, String subject, String message) throws MessageException
MessageException
Message createMessage(String recipients, String sender, String subject, String message) throws MessageException
recipients
- sender
- subject
- message
- MessageException
- Should create messageMessage createMessage(String recipients, String sender, String subject, String message, String attachment, String attachmentContentType, String attachmentFileName) throws MessageException
MessageException
Message prepareMessage(String templateName, Map data) throws MessageException
MessageException
Message prepareMessage(Template template) throws MessageException
MessageException
List getAllTemplates() throws MessageException
MessageException
Template getTemplate(Integer id) throws MessageException
MessageException
List getTemplatesByName(String name) throws MessageException
MessageException
Copyright © 2024 OpenMRS Inc.. All rights reserved.