Class EmailTemplateServiceImpl
java.lang.Object
org.opencastproject.email.template.impl.EmailTemplateServiceImpl
- All Implemented Interfaces:
EmailTemplateService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext context) applyTemplate(String templateName, String templateContent, WorkflowInstance workflowInstance) Apply the template to the workflow instance.applyTemplate(String templateName, String templateContent, WorkflowInstance workflowInstance, String delimiter) Apply the template to the workflow instance.voidsetIncidentService(IncidentService incidentService) Callback for OSGi to unset theIncidentService.voidsetIndexService(IndexService indexService) protected voidsetSecurityService(SecurityService securityService)
-
Field Details
-
DEFAULT_DELIMITER_FOR_MULTIPLE
- See Also:
-
-
Constructor Details
-
EmailTemplateServiceImpl
public EmailTemplateServiceImpl()
-
-
Method Details
-
activate
protected void activate(org.osgi.service.component.ComponentContext context) -
applyTemplate
public String applyTemplate(String templateName, String templateContent, WorkflowInstance workflowInstance) Description copied from interface:EmailTemplateServiceApply the template to the workflow instance.- Specified by:
applyTemplatein interfaceEmailTemplateService- Parameters:
templateName- template nametemplateContent- template contentworkflowInstance- workflow- Returns:
- text with applied template
-
applyTemplate
public String applyTemplate(String templateName, String templateContent, WorkflowInstance workflowInstance, String delimiter) Apply the template to the workflow instance.- Specified by:
applyTemplatein interfaceEmailTemplateService- Parameters:
templateName- template nametemplateContent- template contentworkflowInstance- workflowdelimiter- How to separate multi-value metadata fields- Returns:
- text with applied template
-
setIncidentService
Callback for OSGi to unset theIncidentService.- Parameters:
incidentService- the incident service
-
setIndexService
-
setSecurityService
-