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
DAOException
Template getTemplate(Integer id) throws DAOException
id
- internal message template identifierDAOException
List<Template> getTemplatesByName(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 © 2024 OpenMRS Inc.. All rights reserved.