Interface IMailUtils


public interface IMailUtils
IMailUtils Use this utils to manipulate mails and mails' templates through Process
  • Field Details

  • Method Details

    • retrieveMailTemplateFromReference

      IStorageResource retrieveMailTemplateFromReference(IContext context, String templateRef)
      Retrieve a mailTemplate resource in the data universe of the Platform management application from its reference
      Parameters:
      context - the current context
      templateRef - the template's reference
      Returns:
      the mailTemplate resource
    • buildMailTemplate

      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
      Parameters:
      language - the given language
      resource - the given resource
      parameters - the parameters to replace the bookmarks
      Returns:
      the template
    • retrieveMailTemplateSubject

      String retrieveMailTemplateSubject(String language, IResource template)
      Retrieve the subject of a mail template Choose the default value if it is not overrides
      Parameters:
      language - the language to display
      template - the mail template resource
      Returns:
      the subject translated
    • retrieveMailTemplateContent

      String retrieveMailTemplateContent(String language, IResource template)
      Retrieve the content of a mail template Choose the default value if it is not override
      Parameters:
      language - the language to display
      template - the mail template resource
      Returns:
      the content translated
    • updateMailTemplateSubject

      void updateMailTemplateSubject(String language, IResource template, String newValue)
      Update the subject of a mail template Choose the default value if it is not override
      Parameters:
      language - the language to update
      template - the mail template resource
      newValue - the new value
    • updateMailTemplateContent

      void updateMailTemplateContent(String language, IResource template, String newValue)
      Update the content of a mail template Choose the default value if it is not override
      Parameters:
      language - the language to update
      template - the mail template resource
      newValue - the new value