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 String
getCpuOption
(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) getDiskOptions
(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static Monies
getHardwareMonthlyRate
(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm, PackageDefinition packageDefinition) Gets the hardware monthly rate for the server, basic server + hardware options.static String
getPowerOption
(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static String
getRamOption
(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static String
getSataControllerOption
(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static String
getScsiControllerOption
(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) static int
getTotalHardwareDiskSpace
(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) Gets the total amount of hard drive space in gigabytes.static void
setConfirmationRequestAttributes
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, SignupSelectPackageForm signupSelectPackageForm, SignupCustomizeServerForm signupCustomizeServerForm) static void
setRequestAttributes
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, SignupSelectPackageForm signupSelectPackageForm, SignupCustomizeServerForm signupCustomizeServerForm) static void
writeEmailConfirmation
(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:
IOException
SQLException
-
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:
IOException
SQLException
-
getPowerOption
public static String getPowerOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOException
SQLException
-
getCpuOption
public static String getCpuOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOException
SQLException
-
getRamOption
public static String getRamOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOException
SQLException
-
getSataControllerOption
public static String getSataControllerOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOException
SQLException
-
getScsiControllerOption
public static String getScsiControllerOption(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOException
SQLException
-
getDiskOptions
public static List<String> getDiskOptions(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOException
SQLException
-
setConfirmationRequestAttributes
public static void setConfirmationRequestAttributes(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, SignupSelectPackageForm signupSelectPackageForm, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOException
SQLException
-
writeEmailConfirmation
public static void writeEmailConfirmation(HttpServletRequest request, Union_TBODY_THEAD_TFOOT<?> tbody, AoservConnector rootConn, PackageDefinition packageDefinition, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException - Throws:
IOException
SQLException
-
getTotalHardwareDiskSpace
public static int getTotalHardwareDiskSpace(AoservConnector rootConn, SignupCustomizeServerForm signupCustomizeServerForm) throws IOException, SQLException Gets the total amount of hard drive space in gigabytes.- Throws:
IOException
SQLException
-