public class WizardPanelBase extends java.lang.Object implements IWizardPanel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTH_FAILURE |
static java.lang.String |
CONF_CA_CERT
Definition for static variables in CS.cfg
|
static java.lang.String |
CONF_CA_CERTNICKNAME |
static java.lang.String |
CONF_CA_CERTREQ |
static java.lang.String |
FAILURE |
static java.lang.String |
PCERT_PREFIX |
static java.lang.String |
PRE_CA_TYPE |
static java.lang.String |
PRE_CONF_ADMIN_NAME |
static java.lang.String |
PRE_CONF_AGENT_GROUP |
static java.lang.String |
PRE_CONF_CA_TOKEN
Definition for "preop" static variables in CS.cfg
-- "preop" config parameters should not assumed to exist after configuation
|
static java.lang.String |
PRE_OTHER_CA |
static java.lang.String |
PRE_ROOT_CA |
static java.lang.String |
SUCCESS |
Constructor and Description |
---|
WizardPanelBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(java.lang.String hostname,
int port,
boolean https,
java.lang.String servlet,
java.lang.String uri) |
void |
cleanUp()
Cleans up this panel so that isPanelDone() will return false.
|
void |
display(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context context)
Display the panel.
|
void |
displayError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context context)
If validiate() returns false, this method will be called.
|
java.lang.String |
getId() |
java.util.Locale |
getLocale(javax.servlet.http.HttpServletRequest req)
Retrieves locale based on the request.
|
java.lang.String |
getName() |
int |
getPanelNo() |
PropertySet |
getUsage() |
boolean |
hasSubPanel()
has subPanels?
|
void |
init(javax.servlet.ServletConfig config,
int panelno)
Initializes this panel.
|
void |
init(WizardServlet servlet,
javax.servlet.ServletConfig config,
int panelno,
java.lang.String id) |
boolean |
isLoopbackPanel() |
boolean |
isPanelDone()
Is this panel done
|
boolean |
isSubPanel()
Is this a subPanel?
|
java.lang.String |
pingCS(java.lang.String hostname,
int port,
boolean https,
org.mozilla.jss.ssl.SSLCertificateApprovalCallback certApprovalCallback) |
void |
reloginSecurityDomain(javax.servlet.http.HttpServletResponse response) |
void |
setId(java.lang.String id) |
void |
setName(java.lang.String name) |
void |
setPanelNo(int num) |
boolean |
shouldSkip()
Should we skip this panel?
|
boolean |
showApplyButton()
Show "Apply" button on frame?
|
void |
update(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context context)
Commit parameter changes
|
void |
validate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.velocity.context.Context context)
Checks if the given parameters are valid.
|
public static java.lang.String PCERT_PREFIX
public static java.lang.String SUCCESS
public static java.lang.String FAILURE
public static java.lang.String AUTH_FAILURE
public static final java.lang.String CONF_CA_CERT
public static final java.lang.String CONF_CA_CERTREQ
public static final java.lang.String CONF_CA_CERTNICKNAME
public static final java.lang.String PRE_CONF_ADMIN_NAME
public static final java.lang.String PRE_CONF_AGENT_GROUP
public static final java.lang.String PRE_CONF_CA_TOKEN
public static final java.lang.String PRE_CA_TYPE
public static final java.lang.String PRE_OTHER_CA
public static final java.lang.String PRE_ROOT_CA
public void init(javax.servlet.ServletConfig config, int panelno) throws javax.servlet.ServletException
init
in interface IWizardPanel
javax.servlet.ServletException
public void init(WizardServlet servlet, javax.servlet.ServletConfig config, int panelno, java.lang.String id) throws javax.servlet.ServletException
init
in interface IWizardPanel
javax.servlet.ServletException
public void cleanUp() throws java.io.IOException
cleanUp
in interface IWizardPanel
java.io.IOException
public java.lang.String getName()
getName
in interface IWizardPanel
public int getPanelNo()
getPanelNo
in interface IWizardPanel
public void setPanelNo(int num)
public void setName(java.lang.String name)
public void setId(java.lang.String id)
setId
in interface IWizardPanel
public java.lang.String getId()
getId
in interface IWizardPanel
public PropertySet getUsage()
getUsage
in interface IWizardPanel
public boolean shouldSkip()
shouldSkip
in interface IWizardPanel
public boolean isPanelDone()
isPanelDone
in interface IWizardPanel
public boolean showApplyButton()
showApplyButton
in interface IWizardPanel
public boolean isSubPanel()
isSubPanel
in interface IWizardPanel
public boolean isLoopbackPanel()
isLoopbackPanel
in interface IWizardPanel
public boolean hasSubPanel()
hasSubPanel
in interface IWizardPanel
public void display(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context)
display
in interface IWizardPanel
public void validate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context) throws java.io.IOException
validate
in interface IWizardPanel
java.io.IOException
public void update(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context) throws java.io.IOException
update
in interface IWizardPanel
java.io.IOException
public void displayError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context)
displayError
in interface IWizardPanel
public java.util.Locale getLocale(javax.servlet.http.HttpServletRequest req)
public boolean authenticate(java.lang.String hostname, int port, boolean https, java.lang.String servlet, java.lang.String uri) throws java.io.IOException
java.io.IOException
public java.lang.String pingCS(java.lang.String hostname, int port, boolean https, org.mozilla.jss.ssl.SSLCertificateApprovalCallback certApprovalCallback) throws java.io.IOException
java.io.IOException
public void reloginSecurityDomain(javax.servlet.http.HttpServletResponse response)