Class AbstractSetupEmailAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable
Direct Known Subclasses:
CreateMailServerAction, EditMailServerAction

public abstract class AbstractSetupEmailAction extends ConfluenceActionSupport
See Also:
  • Field Details

  • Constructor Details

    • AbstractSetupEmailAction

      public AbstractSetupEmailAction()
  • Method Details

    • isPermitted

      public final boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • validate

      public void validate()
      Specified by:
      validate in interface MessageHolderAware
      Specified by:
      validate in interface org.apache.struts2.Validateable
      Overrides:
      validate in class org.apache.struts2.ActionSupport
    • doDefault

      public String doDefault() throws Exception
      Description copied from class: ConfluenceActionSupport
      Convenient Action execution method which defaults to returning INPUT
      Overrides:
      doDefault in class ConfluenceActionSupport
      Throws:
      Exception
    • doDefaultInternal

      protected abstract String doDefaultInternal() throws Exception
      Throws:
      Exception
    • getCurrentSession

      protected javax.servlet.http.HttpSession getCurrentSession()
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Throws:
      Exception
    • getMailServer

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

      protected abstract String executeInternal() throws Exception
      Throws:
      Exception
    • 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()
    • getOAuth2Service

      public OAuth2Service getOAuth2Service()
    • 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
    • getAuthCtxFactory

      public ConfluenceAuthenticationContextFactory getAuthCtxFactory()
    • setauthCtxFactory

      public void setauthCtxFactory(ConfluenceAuthenticationContextFactory authCtxFactory)
    • getApplicationProperties

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

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

      public List<HTMLPairType> getProtocolList()
    • getAuthorizationList

      public List<HTMLPairType> getAuthorizationList()
    • buildRedirect

      public abstract String buildRedirect(String flowId)
    • validateJNDIScheme

      protected void validateJNDIScheme()