public class PowerManagementAction extends RhnAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
POWER_ADDRESS |
static java.lang.String |
POWER_ID
Attribute name.
|
static java.lang.String |
POWER_NO_AGENT |
static java.lang.String |
POWER_PASSWORD |
static java.lang.String |
POWER_STATUS_ON
Attribute name.
|
static java.lang.String |
POWER_TYPE |
static java.lang.String |
POWER_USERNAME |
static java.lang.String |
TYPES |
Constructor and Description |
---|
PowerManagementAction() |
Modifier and Type | Method and Description |
---|---|
static void |
ensureAgentInstalled(javax.servlet.http.HttpServletRequest request,
StrutsDelegate strutsDelegate,
org.apache.struts.action.ActionErrors errors)
Ensure a fence agent is installed, raise an error and disable fields if not
|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formIn,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Runs this action.
|
static CobblerPowerSettingsUpdateCommand |
getPowerSettingsUpdateCommand(org.apache.struts.action.DynaActionForm form,
User user,
Server server)
Returns a CobblerPowerSettingsUpdateCommand from form data.
|
static CobblerPowerSettingsUpdateCommand |
getPowerSettingsUpdateCommandSSM(org.apache.struts.action.DynaActionForm form,
User user,
Server server)
Returns a CobblerPowerSettingsUpdateCommand from form data.
|
static java.util.SortedMap<java.lang.String,java.lang.String> |
setUpPowerTypes(javax.servlet.http.HttpServletRequest request,
StrutsDelegate strutsDelegate,
org.apache.struts.action.ActionErrors errors)
Sets up and returns a list of supported Cobbler power types.
|
addGlobalMessage, addGlobalMessage, addMessage, createErrorMessage, createErrorMessageWithMultipleArgs, createLabelValueList, createMessage, createSuccessMessage, getStrutsDelegate, isSubmitted, l10n, localize, lv, lve, lvel10n, lvl10n, makeParamMap, saveMessages
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveToken, setLocale, setServlet
public static final java.lang.String TYPES
public static final java.lang.String POWER_TYPE
public static final java.lang.String POWER_ADDRESS
public static final java.lang.String POWER_USERNAME
public static final java.lang.String POWER_PASSWORD
public static final java.lang.String POWER_NO_AGENT
public static final java.lang.String POWER_ID
public static final java.lang.String POWER_STATUS_ON
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formIn, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
execute
in class org.apache.struts.action.Action
mapping
- action mappingformIn
- form submitted valuesrequest
- http request objectresponse
- http response objectpublic static CobblerPowerSettingsUpdateCommand getPowerSettingsUpdateCommand(org.apache.struts.action.DynaActionForm form, User user, Server server)
form
- the formuser
- currently logged in userserver
- server to updatepublic static CobblerPowerSettingsUpdateCommand getPowerSettingsUpdateCommandSSM(org.apache.struts.action.DynaActionForm form, User user, Server server)
form
- the formuser
- currently logged in userserver
- server to updatepublic static java.util.SortedMap<java.lang.String,java.lang.String> setUpPowerTypes(javax.servlet.http.HttpServletRequest request, StrutsDelegate strutsDelegate, org.apache.struts.action.ActionErrors errors)
request
- the current requeststrutsDelegate
- the Struts delegateerrors
- ActionErrors that might have already been raisedpublic static void ensureAgentInstalled(javax.servlet.http.HttpServletRequest request, StrutsDelegate strutsDelegate, org.apache.struts.action.ActionErrors errors)
request
- the current requeststrutsDelegate
- the Struts delegateerrors
- ActionErrors that might have already been raised