Class FluentEmailService

    • Constructor Detail

      • FluentEmailService

        public FluentEmailService()
    • Method Detail

      • runUnitTest

        public Throwable runUnitTest()
        Run the service's Unit Test Script if defined for the service, returning null if succeeded or an error if it failed. If there is no 'Unit Test Script' defined, this method will return null.
        Specified by:
        runUnitTest in interface IUnitTestableService
        Returns:
        an Exception if the test case failed, or null if the test case succeeded or no 'Unit Test Script' defined.
        See Also:
        IUnitTestableService.runUnitTest()
      • getGroovyServiceLog

        public GroovyServiceLog getGroovyServiceLog()
        Return the GroovyServiceLog record created after executing the script.
        Returns:
        the GroovyServiceLog record created after executing the script.
      • isGroovyDebugLogging

        public Boolean isGroovyDebugLogging()
        Return true if GroovyLogger DEBUG level message recording is enabled.
        Returns:
        true if GroovyLogger DEBUG level message recording is enabled.
      • setGroovyDebugLogging

        public void setGroovyDebugLogging​(Boolean debugEnabled)
        Set whether GroovyLogger DEBUG level message recording is enabled.
        Parameters:
        debugEnabled - the groovyDebugLoggingEnabled to set
      • isGroovyLoggingEnabled

        public boolean isGroovyLoggingEnabled()
        Return true if the Groovy Service logging is enabled.
        Returns:
        true if the Groovy Service logging is enabled.
      • setGroovyLoggingEnabled

        public void setGroovyLoggingEnabled​(Boolean loggingEnabled)
        Specify whether the Groovy Service logging is enabled.
        Parameters:
        loggingEnabled - specify whether the Groovy Service logging is enabled
      • getGroovyScript

        public String getGroovyScript()
        Returns:
        the Groovy Script content to execute
      • setGroovyScript

        public void setGroovyScript​(String script)
        Parameters:
        script - the Groovy Script content to execute
      • getExecutionTimeout

        public Integer getExecutionTimeout()
        Return the GroovyScript execution timeout in milliseconds.
        Returns:
        the GroovyScript execution timeout in milliseconds
      • setExecutionTimeout

        public void setExecutionTimeout​(Integer timeout)
        Return the GroovyScript execution timeout in milliseconds.
        Parameters:
        timeout - the GroovyScript execution timeout in milliseconds