Class SmtpWrapper

  • All Implemented Interfaces:
    org.alfresco.utility.dsl.DSL<SmtpWrapper>

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

      • SmtpWrapper

        public SmtpWrapper()
    • Method Detail

      • getTransport

        public javax.mail.Transport getTransport()
      • getSession

        public javax.mail.Session getSession()
      • getProtocolJMXConfigurationStatus

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

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

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

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

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

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

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

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

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

        public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String getPrefixSpace()
        Specified by:
        getPrefixSpace in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
      • usingResource

        public SmtpWrapper usingResource​(org.alfresco.utility.model.ContentModel model)
                                  throws java.lang.Exception
        Specified by:
        usingResource in interface org.alfresco.utility.dsl.DSL<SmtpWrapper>
        Specified by:
        usingResource in class org.alfresco.utility.dsl.DSLProtocol<SmtpWrapper>
        Throws:
        java.lang.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()