public interface TemplateDAO
Modifier and Type | Method and Description |
---|---|
void |
createTemplate(Template template)
Create new template.
|
void |
deleteTemplate(Template template)
Delete existing template.
|
Template |
getTemplate(java.lang.Integer id)
Get message template by id
|
java.util.List<Template> |
getTemplates()
Get all message templates
|
java.util.List<Template> |
getTemplatesByName(java.lang.String name)
Get message template by name
|
void |
updateTemplate(Template template)
Update existing template.
|
java.util.List<Template> getTemplates() throws DAOException
DAOException
Template getTemplate(java.lang.Integer id) throws DAOException
id
- internal message template identifierDAOException
java.util.List<Template> getTemplatesByName(java.lang.String name) throws DAOException
name
- message template nameDAOException
void createTemplate(Template template) throws DAOException
template
- DAOException
void updateTemplate(Template template) throws DAOException
template
- DAOException
void deleteTemplate(Template template) throws DAOException
template
- DAOException
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.