Class AbstractSetupEmailAction

    • Constructor Detail

      • AbstractSetupEmailAction

        public AbstractSetupEmailAction()
    • Method Detail

      • validate

        public void validate()
        Specified by:
        validate in interface MessageHolderAware
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        Overrides:
        validate in class com.opensymphony.xwork2.ActionSupport
      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • getMailServer

        public com.atlassian.mail.server.MailServer getMailServer()
        Build the mail server from the form data
        Returns:
        a MailServer instance
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getEmailAddress

        public String getEmailAddress()
      • setEmailAddress

        public void setEmailAddress​(String emailAddress)
      • getFromName

        public String getFromName()
      • setFromName

        public void setFromName​(String fromName)
      • getPrefix

        public String getPrefix()
      • setPrefix

        public void setPrefix​(String prefix)
      • getUserName

        public String getUserName()
      • setUserName

        public void setUserName​(String userName)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword​(String password)
      • getHostname

        public String getHostname()
      • getPort

        public String getPort()
      • setPort

        public void setPort​(String port)
      • setHostname

        public void setHostname​(String hostname)
      • isTlsRequired

        public boolean isTlsRequired()
      • setTlsRequired

        public void setTlsRequired​(boolean tls)
      • getJndiName

        public String getJndiName()
      • setJndiName

        public void setJndiName​(String jndiName)
      • getId

        public Long getId()
      • setId

        public void setId​(Long id)
      • setProtocol

        public void setProtocol​(String protocol)
      • getProtocol

        public String getProtocol()
      • setAuthorization

        public void setAuthorization​(String authorization)
      • getAuthorization

        public String getAuthorization()
      • setToken

        public void setToken​(String token)
      • getToken

        public String getToken()
      • setFlowId

        public void setFlowId​(String flowId)
      • getFlowId

        public String getFlowId()
      • getAuthorize

        public String getAuthorize()
      • setAuthorize

        public void setAuthorize​(String authorize)
      • setTestConnection

        public void setTestConnection​(String testConnection)
      • getTestConnection

        public String getTestConnection()
      • setMailServerManager

        public void setMailServerManager​(com.atlassian.mail.server.MailServerManager mailServerManager)
      • getMailServerManager

        protected com.atlassian.mail.server.MailServerManager getMailServerManager()
      • setoAuth2Service

        public void setoAuth2Service​(OAuth2Service oAuth2Service)
        CAUTION: Never ever try to rename this method. Otherwise, the oAuth2Service Spring bean won't be injected.
        Parameters:
        oAuth2Service - the bean to be injected
      • getApplicationProperties

        public com.atlassian.sal.api.ApplicationProperties getApplicationProperties()
      • setApplicationProperties

        public void setApplicationProperties​(com.atlassian.sal.api.ApplicationProperties applicationProperties)
      • buildRedirect

        public abstract String buildRedirect​(String flowId)
      • validateJNDIScheme

        protected void validateJNDIScheme()