Package pl.edu.icm.unity.engine.api
Interface MessageTemplateManagement
public interface MessageTemplateManagement
This interface allows clients to manipulate message templates.
- Author:
- P. Piernik
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTemplate(pl.edu.icm.unity.base.msg_template.MessageTemplate toAdd) getCompatibleTemplates(String templateConsumer) pl.edu.icm.unity.base.msg_template.MessageTemplateReturns a template after pre-processing (e.g.pl.edu.icm.unity.base.msg_template.MessageTemplategetPreprocessedTemplate(pl.edu.icm.unity.base.msg_template.MessageTemplate toProcess) AsgetPreprocessedTemplate(String)but returns the argument template after preprocessingpl.edu.icm.unity.base.msg_template.MessageTemplategetTemplate(String name) voidreloadFromConfiguration(Set<String> toReload) voidremoveTemplate(String name) voidupdateTemplate(pl.edu.icm.unity.base.msg_template.MessageTemplate updated)
-
Method Details
-
addTemplate
void addTemplate(pl.edu.icm.unity.base.msg_template.MessageTemplate toAdd) throws pl.edu.icm.unity.base.exceptions.EngineException - Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
removeTemplate
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
updateTemplate
void updateTemplate(pl.edu.icm.unity.base.msg_template.MessageTemplate updated) throws pl.edu.icm.unity.base.exceptions.EngineException - Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
listTemplates
Map<String,pl.edu.icm.unity.base.msg_template.MessageTemplate> listTemplates() throws pl.edu.icm.unity.base.exceptions.EngineException- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getTemplate
pl.edu.icm.unity.base.msg_template.MessageTemplate getTemplate(String name) throws pl.edu.icm.unity.base.exceptions.EngineException - Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getPreprocessedTemplate
pl.edu.icm.unity.base.msg_template.MessageTemplate getPreprocessedTemplate(String name) throws pl.edu.icm.unity.base.exceptions.EngineException Returns a template after pre-processing (e.g. all includes are resolved).- Parameters:
name-- Returns:
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getPreprocessedTemplate
pl.edu.icm.unity.base.msg_template.MessageTemplate getPreprocessedTemplate(pl.edu.icm.unity.base.msg_template.MessageTemplate toProcess) throws pl.edu.icm.unity.base.exceptions.EngineException AsgetPreprocessedTemplate(String)but returns the argument template after preprocessing- Parameters:
toProcess-- Returns:
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getCompatibleTemplates
Map<String,pl.edu.icm.unity.base.msg_template.MessageTemplate> getCompatibleTemplates(String templateConsumer) throws pl.edu.icm.unity.base.exceptions.EngineException - Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getMessagesTemplatesFromConfiguration
-
reloadFromConfiguration
-