Class SmtpWrapper

java.lang.Object
org.alfresco.utility.dsl.DSLWrapper<Client>
org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
org.alfresco.email.SmtpWrapper
All Implemented Interfaces:
org.alfresco.utility.dsl.DSL<SmtpWrapper>

@Service @Scope("prototype") public class SmtpWrapper extends org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
  • Constructor Details

    • SmtpWrapper

      public SmtpWrapper()
  • Method Details

    • getTransport

      public javax.mail.Transport getTransport()
    • getSession

      public javax.mail.Session getSession()
    • getProtocolJMXConfigurationStatus

      protected String getProtocolJMXConfigurationStatus() throws Exception
      Specified by:
      getProtocolJMXConfigurationStatus in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      Exception
    • authenticateUser

      public SmtpWrapper authenticateUser(org.alfresco.utility.model.UserModel userModel) throws Exception
      Specified by:
      authenticateUser in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      Exception
    • authenticateUser

      public SmtpWrapper authenticateUser(org.alfresco.utility.model.UserModel userModel, String smtpPort) throws Exception
      Throws:
      Exception
    • authenticateUser

      public SmtpWrapper authenticateUser(org.alfresco.utility.model.UserModel userModel, int smtpPort) throws Exception
      Throws:
      Exception
    • disconnect

      public SmtpWrapper disconnect() throws Exception
      Specified by:
      disconnect in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      Exception
    • usingSite

      public SmtpWrapper usingSite(String siteId) throws Exception
      Specified by:
      usingSite in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
      Specified by:
      usingSite in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      Exception
    • usingSite

      public SmtpWrapper usingSite(org.alfresco.utility.model.SiteModel siteModel) throws Exception
      Specified by:
      usingSite in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
      Specified by:
      usingSite in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      Exception
    • usingUserHome

      public SmtpWrapper usingUserHome(String username) throws Exception
      Specified by:
      usingUserHome in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
      Specified by:
      usingUserHome in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      Exception
    • usingUserHome

      public SmtpWrapper usingUserHome() throws Exception
      Specified by:
      usingUserHome in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
      Specified by:
      usingUserHome in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      Exception
    • getRootPath

      public String getRootPath() throws org.alfresco.utility.exception.TestConfigurationException
      Specified by:
      getRootPath in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
      Specified by:
      getRootPath in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
    • getSitesPath

      public String getSitesPath() throws org.alfresco.utility.exception.TestConfigurationException
      Specified by:
      getSitesPath in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
      Specified by:
      getSitesPath in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
    • getUserHomesPath

      public String getUserHomesPath() throws org.alfresco.utility.exception.TestConfigurationException
      Specified by:
      getUserHomesPath in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
      Specified by:
      getUserHomesPath in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
    • getDataDictionaryPath

      public String getDataDictionaryPath() throws org.alfresco.utility.exception.TestConfigurationException
      Specified by:
      getDataDictionaryPath in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
      Specified by:
      getDataDictionaryPath in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
    • getPrefixSpace

      public String getPrefixSpace()
      Specified by:
      getPrefixSpace in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
    • usingResource

      public SmtpWrapper usingResource(org.alfresco.utility.model.ContentModel model) throws Exception
      Specified by:
      usingResource in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
      Specified by:
      usingResource in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      Throws:
      Exception
    • assertThat

      public SmtpAssertion assertThat()
      Overrides:
      assertThat in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
    • withJMX

      public JmxUtil withJMX()
      Returns:
      JMX DSL for this wrapper
    • isConnected

      public boolean isConnected()
    • composeMessage

      public ComposeMessage composeMessage()