com.aoindustries.website.signup
Class SignupBusinessActionHelper

java.lang.Object
  extended by com.aoindustries.website.signup.SignupBusinessActionHelper

public final class SignupBusinessActionHelper
extends java.lang.Object

Managed3Action and Dedicated3Action both use this to setup the request attributes. This is implemented here because inheritence is not possible and neither one is logically above the other.

Author:
AO Industries, Inc.

Nested Class Summary
static class SignupBusinessActionHelper.CountryOption
           
 
Method Summary
static java.lang.String getBusinessCountry(com.aoindustries.aoserv.client.AOServConnector rootConn, SignupBusinessForm signupBusinessForm)
           
static java.util.List<SignupBusinessActionHelper.CountryOption> getCountryOptions(com.aoindustries.aoserv.client.AOServConnector aoConn)
          Gets the options for use in a country list.
static void printConfirmation(com.aoindustries.io.ChainWriter emailOut, com.aoindustries.aoserv.client.AOServConnector rootConn, SignupBusinessForm signupBusinessForm)
           
static void setConfirmationRequestAttributes(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, SignupBusinessForm signupBusinessForm)
           
static void setRequestAttributes(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setRequestAttributes

public static void setRequestAttributes(javax.servlet.ServletContext servletContext,
                                        javax.servlet.http.HttpServletRequest request)
                                 throws java.io.IOException,
                                        java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

getCountryOptions

public static java.util.List<SignupBusinessActionHelper.CountryOption> getCountryOptions(com.aoindustries.aoserv.client.AOServConnector aoConn)
                                                                                  throws java.io.IOException,
                                                                                         java.sql.SQLException
Gets the options for use in a country list. Note: you probably want to use the RootAOServConnector to provide a more helpful list than a default user connector.

Throws:
java.io.IOException
java.sql.SQLException
See Also:
RootAOServConnector

getBusinessCountry

public static java.lang.String getBusinessCountry(com.aoindustries.aoserv.client.AOServConnector rootConn,
                                                  SignupBusinessForm signupBusinessForm)
                                           throws java.io.IOException,
                                                  java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

setConfirmationRequestAttributes

public static void setConfirmationRequestAttributes(javax.servlet.ServletContext servletContext,
                                                    javax.servlet.http.HttpServletRequest request,
                                                    SignupBusinessForm signupBusinessForm)
                                             throws java.io.IOException,
                                                    java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

printConfirmation

public static void printConfirmation(com.aoindustries.io.ChainWriter emailOut,
                                     com.aoindustries.aoserv.client.AOServConnector rootConn,
                                     SignupBusinessForm signupBusinessForm)
                              throws java.io.IOException,
                                     java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException