Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-17637

Make loading/updating of templates a part of the EmailTemplateService

    Details

    • Type: (Deprecated) Contributed Patch
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0
    • Component/s: Email Template Service
    • Labels:
      None
    • CLE Team Issue:
      Yes

      Description

      Currently, a tool/service provider needs to provide their own implementation for parsing an XML document (or properties file) and getting the email template/associated metadata checking if the template needs to be updated and then calling the ETS to update it. This needs to be done for each template that the tool provides, and for every tool that uses the ETS, similar code needs to be duplicated.

      I propose a method to provide the list of templates files via some sort of configuration, whether that be via a list property of a Spring bean or some other way. Then, then ETS would handle the reading of the XML template, checking if it needs to be updated, and updating the database. This centralises and consolidates where the parsing/loading/updating occurs.

      The templates would need to be standardised, as per SAK-17636.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dhorwitz David Horwitz
                  Reporter:
                  steve.swinsburg Steve Swinsburg
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: