Module com.aoindustries.web.struts
Class SignupCustomizeServerActionHelper
java.lang.Object
com.aoindustries.web.struts.signup.SignupCustomizeServerActionHelper
Managed2Action and Dedicated2Action both use this to setup the request attributes. This is implemented
here because inheritance is not possible and neither one is logically above the other.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCpuOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) getDiskOptions(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static MoniesgetHardwareMonthlyRate(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm, PackageDefinition packageDefinition) Gets the hardware monthly rate for the server, basic server + hardware options.static StringgetPowerOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static StringgetRamOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static StringgetSataControllerOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static StringgetScsiControllerOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static intgetTotalHardwareDiskSpace(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) Gets the total amount of hard drive space in gigabytes.static voidsetConfirmationRequestAttributes(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, SignupSelectPackageForm signupSelectPackageForm, SignupCustomizeServerForm signupCustomizeServerForm) static voidsetRequestAttributes(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, SignupSelectPackageForm signupSelectPackageForm, SignupCustomizeServerForm signupCustomizeServerForm) static voidwriteEmailConfirmation(HttpServletRequest request, Union_TBODY_THEAD_TFOOT<?> tbody, AoservConnector rootConn, PackageDefinition packageDefinition, SignupCustomizeServerForm signupCustomizeServerForm)
-
Method Details
-
setRequestAttributes
public static void setRequestAttributes(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, SignupSelectPackageForm signupSelectPackageForm, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getHardwareMonthlyRate
public static Monies getHardwareMonthlyRate(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm, PackageDefinition packageDefinition) throws IOException, SQLException Gets the hardware monthly rate for the server, basic server + hardware options.- Throws:
IOExceptionSQLException
-
getPowerOption
public static String getPowerOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getCpuOption
public static String getCpuOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getRamOption
public static String getRamOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getSataControllerOption
public static String getSataControllerOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getScsiControllerOption
public static String getScsiControllerOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getDiskOptions
public static List<String> getDiskOptions(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setConfirmationRequestAttributes
public static void setConfirmationRequestAttributes(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, SignupSelectPackageForm signupSelectPackageForm, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
writeEmailConfirmation
public static void writeEmailConfirmation(HttpServletRequest request, Union_TBODY_THEAD_TFOOT<?> tbody, AoservConnector rootConn, PackageDefinition packageDefinition, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getTotalHardwareDiskSpace
public static int getTotalHardwareDiskSpace(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException Gets the total amount of hard drive space in gigabytes.- Throws:
IOExceptionSQLException
-
