Class EmailTemplateScanner

java.lang.Object
org.opencastproject.email.template.impl.EmailTemplateScanner
All Implemented Interfaces:
org.apache.felix.fileinstall.ArtifactInstaller, org.apache.felix.fileinstall.ArtifactListener

public class EmailTemplateScanner extends Object implements org.apache.felix.fileinstall.ArtifactInstaller
  • Constructor Details

    • EmailTemplateScanner

      public EmailTemplateScanner()
  • Method Details

    • getTemplates

      public Map<String,String> getTemplates()
      Returns the list of templates.
      Returns:
      the email templates
    • getTemplate

      public String getTemplate(String fileName)
      Returns the email template for the given file name or null if no such one.
      Parameters:
      fileName - the template file name
      Returns:
      the email template text
    • canHandle

      public boolean canHandle(File artifact)
      Specified by:
      canHandle in interface org.apache.felix.fileinstall.ArtifactListener
      See Also:
      • ArtifactListener.canHandle(java.io.File)
    • install

      public void install(File artifact) throws Exception
      Specified by:
      install in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
      See Also:
      • ArtifactInstaller.install(java.io.File)
    • uninstall

      public void uninstall(File artifact) throws Exception
      Specified by:
      uninstall in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
      See Also:
      • ArtifactInstaller.uninstall(java.io.File)
    • update

      public void update(File artifact) throws Exception
      Specified by:
      update in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
      See Also:
      • ArtifactInstaller.update(java.io.File)