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(Integer id)
Get message template by id
|
List<Template> |
getTemplates()
Get all message templates
|
List<Template> |
getTemplatesByName(String name)
Get message template by name
|
void |
updateTemplate(Template template)
Update existing template.
|
List<Template> getTemplates() throws DAOException
DAOExceptionTemplate getTemplate(Integer id) throws DAOException
id - internal message template identifierDAOExceptionList<Template> getTemplatesByName(String name) throws DAOException
name - message template nameDAOExceptionvoid createTemplate(Template template) throws DAOException
template - DAOExceptionvoid updateTemplate(Template template) throws DAOException
template - DAOExceptionvoid deleteTemplate(Template template) throws DAOException
template - DAOExceptionCopyright © 2024 OpenMRS Inc.. All rights reserved.