public class ScheduleKickstartWizardAction extends RhnWizardAction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALL_NETWORK_INTERFACES |
static java.lang.String |
BOND_GATEWAY |
static java.lang.String |
BOND_INTERFACE |
static java.lang.String |
BOND_IP_ADDRESS |
static java.lang.String |
BOND_NETMASK |
static java.lang.String |
BOND_OPTIONS |
static java.lang.String |
BOND_SLAVE_INTERFACES |
static java.lang.String |
BOND_STATIC |
static java.lang.String |
BOND_TYPE |
static java.lang.String |
CNAMES |
static java.lang.String |
CREATE_BOND_VALUE |
static java.lang.String |
DESTROY_DISKS |
static java.lang.String |
DONT_CREATE_BOND_VALUE |
static java.lang.String |
HAS_PROFILES |
static java.lang.String |
HAS_PROXIES |
static java.lang.String |
HIDDEN_BOND_SLAVE_INTERFACES |
static java.lang.String |
HOST_SID |
static java.lang.String |
IS_VIRTUAL_GUEST |
static java.lang.String |
KERNEL_PARAMS |
static java.lang.String |
KERNEL_PARAMS_CUSTOM |
static java.lang.String |
KERNEL_PARAMS_DISTRO |
static java.lang.String |
KERNEL_PARAMS_PROFILE |
static java.lang.String |
KERNEL_PARAMS_TYPE |
static java.lang.String |
NETWORK_INTERFACE |
static java.lang.String |
NETWORK_INTERFACES |
static java.lang.String |
NETWORK_TYPE |
static java.lang.String |
NEXT_ACTION |
static java.lang.String |
POST_KERNEL_PARAMS |
static java.lang.String |
POST_KERNEL_PARAMS_TYPE |
static java.lang.String |
PROXIES |
static java.lang.String |
PROXY_HOST |
static java.lang.String |
PROXY_HOST_CNAME |
static java.lang.String |
STATIC_BOND_VALUE |
static java.lang.String |
SYNC_PACKAGE_DISABED |
static java.lang.String |
SYNC_SYSTEM_DISABLED |
static java.lang.String |
SYNCH_PACKAGES |
static java.lang.String |
SYNCH_SYSTEMS |
static java.lang.String |
TARGET_PROFILE_TYPE |
static java.lang.String |
USE_IPV6_GATEWAY |
static java.lang.String |
VALID_CNAMES |
static java.lang.String |
VIRT_HOST_IS_REGISTERED |
STEP_PARAM, STEP_START| Constructor and Description |
|---|
ScheduleKickstartWizardAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRequestAttributes(RequestContext ctx,
KickstartScheduleCommand cmd,
org.apache.struts.action.DynaActionForm form) |
protected void |
generateWizardSteps(java.util.Map wizardSteps) |
protected KickstartScheduleCommand |
getKickstartScheduleCommand(java.lang.Long sid,
User currentUser) |
protected KickstartScheduleCommand |
getScheduleCommand(org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
java.util.Date scheduleTime,
java.lang.String host)
Returns the kickstart schedule command
|
static java.lang.String |
parseKernelOptions(org.apache.struts.action.DynaActionForm form,
javax.servlet.http.HttpServletRequest request,
java.lang.String profileCobblerId,
boolean isPost)
Parses the kernel options or Post kernel options
from the given form.
|
static java.lang.String |
parseKernelOptions(java.lang.String customOptions,
java.lang.String paramsType,
java.lang.String cobblerId,
boolean isPost,
User user)
Parses the kernel options or Post kernel options
from the given set of params
This is a handy method used in both SSM and SDC KS scheduling.
|
org.apache.struts.action.ActionForward |
runFirst(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
javax.servlet.http.HttpServletResponse response,
WizardStep step)
The first step in the wizard
|
org.apache.struts.action.ActionForward |
runFourth(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
javax.servlet.http.HttpServletResponse response,
WizardStep step)
Setup the system for provisioning with cobbler.
|
org.apache.struts.action.ActionForward |
runSecond(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
javax.servlet.http.HttpServletResponse response,
WizardStep step)
The second step in the wizard
|
org.apache.struts.action.ActionForward |
runThird(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
javax.servlet.http.HttpServletResponse response,
WizardStep step)
The third step in the wizard
|
static void |
setupProxyInfo(RequestContext ctx)
Sets up the proxy information for the wizard.
|
protected boolean |
showDiskWarning(KickstartData data,
org.apache.struts.action.DynaActionForm form) |
protected void |
storeProxyInfo(org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
KickstartScheduleCommand cmd) |
protected boolean |
validateBondSelections(org.apache.struts.action.DynaActionForm form,
RequestContext ctx) |
protected boolean |
validateFirstSelections(org.apache.struts.action.DynaActionForm form,
RequestContext ctx) |
dispatch, execute, findMethodsaddGlobalMessage, addGlobalMessage, addMessage, createErrorMessage, createErrorMessageWithMultipleArgs, createLabelValueList, createMessage, createSuccessMessage, getStrutsDelegate, isSubmitted, l10n, localize, lv, lve, lvel10n, lvl10n, makeParamMap, saveMessagesaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveToken, setLocale, setServletpublic static final java.lang.String SYNCH_PACKAGES
public static final java.lang.String SYNCH_SYSTEMS
public static final java.lang.String HAS_PROFILES
public static final java.lang.String HAS_PROXIES
public static final java.lang.String SYNC_PACKAGE_DISABED
public static final java.lang.String SYNC_SYSTEM_DISABLED
public static final java.lang.String PROXIES
public static final java.lang.String CNAMES
public static final java.lang.String VALID_CNAMES
public static final java.lang.String KERNEL_PARAMS
public static final java.lang.String KERNEL_PARAMS_TYPE
public static final java.lang.String KERNEL_PARAMS_DISTRO
public static final java.lang.String KERNEL_PARAMS_PROFILE
public static final java.lang.String KERNEL_PARAMS_CUSTOM
public static final java.lang.String POST_KERNEL_PARAMS
public static final java.lang.String POST_KERNEL_PARAMS_TYPE
public static final java.lang.String PROXY_HOST
public static final java.lang.String PROXY_HOST_CNAME
public static final java.lang.String IS_VIRTUAL_GUEST
public static final java.lang.String HOST_SID
public static final java.lang.String VIRT_HOST_IS_REGISTERED
public static final java.lang.String TARGET_PROFILE_TYPE
public static final java.lang.String NETWORK_TYPE
public static final java.lang.String NETWORK_INTERFACE
public static final java.lang.String NETWORK_INTERFACES
public static final java.lang.String ALL_NETWORK_INTERFACES
public static final java.lang.String USE_IPV6_GATEWAY
public static final java.lang.String BOND_TYPE
public static final java.lang.String BOND_INTERFACE
public static final java.lang.String BOND_SLAVE_INTERFACES
public static final java.lang.String HIDDEN_BOND_SLAVE_INTERFACES
public static final java.lang.String BOND_STATIC
public static final java.lang.String BOND_IP_ADDRESS
public static final java.lang.String BOND_NETMASK
public static final java.lang.String BOND_GATEWAY
public static final java.lang.String BOND_OPTIONS
public static final java.lang.String CREATE_BOND_VALUE
public static final java.lang.String STATIC_BOND_VALUE
public static final java.lang.String DONT_CREATE_BOND_VALUE
public static final java.lang.String DESTROY_DISKS
public static final java.lang.String NEXT_ACTION
protected void generateWizardSteps(java.util.Map wizardSteps)
generateWizardSteps in class RhnWizardActionpublic static void setupProxyInfo(RequestContext ctx)
ctx - the request context needed for user info and
things to bind to the requestpublic org.apache.struts.action.ActionForward runFirst(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
javax.servlet.http.HttpServletResponse response,
WizardStep step)
throws java.lang.Exception
mapping - ActionMapping for strutsform - DynaActionForm representing the formctx - RequestContext request contextresponse - HttpServletResponse response objectstep - WizardStep what step are we on?java.lang.Exception - if something goes amisspublic org.apache.struts.action.ActionForward runSecond(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
javax.servlet.http.HttpServletResponse response,
WizardStep step)
throws java.lang.Exception
mapping - ActionMapping for strutsform - DynaActionForm representing the formctx - RequestContext request contextresponse - HttpServletResponse response objectstep - WizardStep what step are we on?java.lang.Exception - if something goes amissprotected void addRequestAttributes(RequestContext ctx, KickstartScheduleCommand cmd, org.apache.struts.action.DynaActionForm form)
public org.apache.struts.action.ActionForward runThird(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
javax.servlet.http.HttpServletResponse response,
WizardStep step)
throws java.lang.Exception
mapping - ActionMapping for strutsform - DynaActionForm representing the formctx - RequestContext request contextresponse - HttpServletResponse response objectstep - WizardStep what step are we on?java.lang.Exception - if something goes amisspublic org.apache.struts.action.ActionForward runFourth(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
javax.servlet.http.HttpServletResponse response,
WizardStep step)
throws java.lang.Exception
mapping - ActionMapping for strutsform - DynaActionForm representing the formctx - RequestContext request contextresponse - HttpServletResponse response objectstep - WizardStep what step are we on?java.lang.Exception - if something goes amissprotected KickstartScheduleCommand getScheduleCommand(org.apache.struts.action.DynaActionForm form, RequestContext ctx, java.util.Date scheduleTime, java.lang.String host)
form - the dyna aciton formctx - the request contextscheduleTime - the schedule timehost - the host url.protected void storeProxyInfo(org.apache.struts.action.DynaActionForm form,
RequestContext ctx,
KickstartScheduleCommand cmd)
form - the form containing the proxy infoctx - the request context associated to this requestcmd - the kicktstart command to which the proxy info will be
copied..protected boolean validateBondSelections(org.apache.struts.action.DynaActionForm form,
RequestContext ctx)
protected boolean validateFirstSelections(org.apache.struts.action.DynaActionForm form,
RequestContext ctx)
protected boolean showDiskWarning(KickstartData data, org.apache.struts.action.DynaActionForm form)
protected KickstartScheduleCommand getKickstartScheduleCommand(java.lang.Long sid, User currentUser)
public static java.lang.String parseKernelOptions(org.apache.struts.action.DynaActionForm form,
javax.servlet.http.HttpServletRequest request,
java.lang.String profileCobblerId,
boolean isPost)
form - the kickstartScheduleWizardForm that holds the form fields.request - the servlet requestprofileCobblerId - the cobbler profile idisPost - true if caller is interested in getting the
post kernel options and not the pre.public static java.lang.String parseKernelOptions(java.lang.String customOptions,
java.lang.String paramsType,
java.lang.String cobblerId,
boolean isPost,
User user)
customOptions - the kickstartScheduleWizardForm that holds the form fields.paramsType - either KERNEL_PARAMS_CUSTOM _DISTRO or _PROFILEcobblerId - the cobbler profile idisPost - true if caller is interested in getting the
post kernel options and not the pre.user - the user doing the request