public interface IMailUtils
Modifier and Type | Field and Description |
---|---|
static String |
BOOKMARK_CONTENT |
static String |
BOOKMARK_DETAILS |
static String |
BOOKMARK_DIRECT_LINK_LABEL |
static String |
BOOKMARK_FOOTER_TEXT |
static String |
BOOKMARK_LINK |
static String |
BOOKMARK_LINK_LABEL |
static String |
BOOKMARK_LOGO |
static String |
BOOKMARK_PRIMARY_COLOR |
static String |
BOOKMARK_SERVER_BASE_URL |
static String |
BOOKMARK_SUBJECT |
static String |
BOOKMARK_USER |
Modifier and Type | Method and Description |
---|---|
IMailTemplate |
buildMailTemplate(String language,
IResource resource,
Map<String,Object> parameters)
Build a Mail template object form a given resource and pa map parameter
The template is translated in the current user language, and all the bookmarks are replaced from the map parameters
|
String |
retrieveMailTemplateContent(String language,
IResource template)
Retrieve the content of a mail template
Choose the default value if it is not override
|
IStorageResource |
retrieveMailTemplateFromReference(IContext context,
String templateRef)
Retrieve a mailTemplate resource in the data universe of the Platform management application from its reference
|
String |
retrieveMailTemplateSubject(String language,
IResource template)
Retrieve the subject of a mail template
Choose the default value if it is not overrides
|
void |
updateMailTemplateContent(String language,
IResource template,
String newValue)
Update the content of a mail template
Choose the default value if it is not override
|
void |
updateMailTemplateSubject(String language,
IResource template,
String newValue)
Update the subject of a mail template
Choose the default value if it is not override
|
static final String BOOKMARK_USER
static final String BOOKMARK_LOGO
static final String BOOKMARK_SUBJECT
static final String BOOKMARK_CONTENT
static final String BOOKMARK_DETAILS
static final String BOOKMARK_LINK_LABEL
static final String BOOKMARK_LINK
static final String BOOKMARK_PRIMARY_COLOR
static final String BOOKMARK_DIRECT_LINK_LABEL
static final String BOOKMARK_SERVER_BASE_URL
static final String BOOKMARK_FOOTER_TEXT
IStorageResource retrieveMailTemplateFromReference(IContext context, String templateRef)
context
- the current contexttemplateRef
- the template's referenceIMailTemplate buildMailTemplate(String language, IResource resource, Map<String,Object> parameters)
language
- the given languageresource
- the given resourceparameters
- the parameters to replace the bookmarksString retrieveMailTemplateSubject(String language, IResource template)
language
- the language to displaytemplate
- the mail template resourceString retrieveMailTemplateContent(String language, IResource template)
language
- the language to displaytemplate
- the mail template resourcevoid updateMailTemplateSubject(String language, IResource template, String newValue)
language
- the language to updatetemplate
- the mail template resourcenewValue
- the new valuevoid updateMailTemplateContent(String language, IResource template, String newValue)
language
- the language to updatetemplate
- the mail template resourcenewValue
- the new valueCopyright © 2024 Visiativ. All rights reserved.