Interface JiraHomeTemplatesRevertService

All Known Implementing Classes:
DefaultJiraHomeTemplatesRevertService

public interface JiraHomeTemplatesRevertService
Provides a way to copy default email templates bundled in Jira into Shared Jira Home data folder.
Since:
v8.14
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Copies all the bundled email templates (single and batched) into {SharedJiraHome}/data/templates directory.
    void
    Copies all the bundled email templates (single and batched) into {SharedJiraHome}/data/templates directory.
  • Method Details

    • copyMissingBundledTemplatesIntoJiraHome

      void copyMissingBundledTemplatesIntoJiraHome() throws IOException
      Copies all the bundled email templates (single and batched) into {SharedJiraHome}/data/templates directory. It doesn't override any already existing files. This operation doesn't clear template caches as it's called from Upgrade Task.
      Throws:
      IOException - as it involves operations on Files
    • revertTemplates

      void revertTemplates() throws IOException
      Copies all the bundled email templates (single and batched) into {SharedJiraHome}/data/templates directory. Overrides any already existing files. Clears template caches after the copying is done.
      Throws:
      IOException - as it involves operations on Files