com.netscape.cms.servlet.csadmin
Class NamePanel

java.lang.Object
  extended by com.netscape.cms.servlet.csadmin.WizardPanelBase
      extended by com.netscape.cms.servlet.csadmin.NamePanel
All Implemented Interfaces:
IWizardPanel

public class NamePanel
extends WizardPanelBase


Field Summary
 
Fields inherited from class com.netscape.cms.servlet.csadmin.WizardPanelBase
AUTH_FAILURE, CONF_CA_CERT, CONF_CA_CERTNICKNAME, CONF_CA_CERTREQ, FAILURE, PCERT_PREFIX, PRE_CA_TYPE, PRE_CONF_ADMIN_NAME, PRE_CONF_AGENT_GROUP, PRE_CONF_CA_TOKEN, PRE_OTHER_CA, PRE_ROOT_CA, SUCCESS
 
Constructor Summary
NamePanel()
           
 
Method Summary
 java.lang.String capitalize(java.lang.String s)
           
 void cleanUp()
          Cleans up this panel so that isPanelDone() will return false.
 void configCert(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context, Cert certObj)
          create and sign a cert locally (handles both "selfsign" and "local")
 void configCertWithTag(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context, java.lang.String tag)
           
 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 getURL(javax.servlet.http.HttpServletRequest request, IConfigStore config)
           
 PropertySet getUsage()
          Returns the usage.XXX usage needs to be made dynamic
 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)
           
 void initParams(javax.servlet.http.HttpServletRequest request, org.apache.velocity.context.Context context)
           
 boolean isPanelDone()
          Is this panel done
 void update(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context)
          Commit parameter changes
 void updateCloneConfig(IConfigStore config)
           
 void updateConfig(IConfigStore config, java.lang.String certTag)
           
 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.
 
Methods inherited from class com.netscape.cms.servlet.csadmin.WizardPanelBase
authenticate, deleteCert, deleteEntries, deleteEntry, getCertChainUsingSecureAdminPort, getCertChainUsingSecureEEPort, getDomainXML, getHttpResponse, getHttpResponse, getId, getLocale, getMasterUrlListFromSecurityDomain, getName, getNickname, getPanelNo, getPort, getSecurityDomainAdminPort, getSecurityDomainPort, getSubsystemCert, getSubsystemCount, getTokenInfo, getUrlListFromSecurityDomain, hasSubPanel, importCertChain, isLoopbackPanel, isSDHostDomainMaster, isSubPanel, pingCS, reloginSecurityDomain, setId, setName, setPanelNo, shouldSkip, showApplyButton, toLowerCaseSubsystemType, updateCertChain, updateCertChain, updateCertChainUsingSecureEEPort, updateConfigEntries, updateConnectorInfo, updateDomainXML, updateNumberRange, updateOCSPConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamePanel

public NamePanel()
Method Detail

init

public void init(javax.servlet.ServletConfig config,
                 int panelno)
          throws javax.servlet.ServletException
Initializes this panel.

Specified by:
init in interface IWizardPanel
Overrides:
init in class WizardPanelBase
Throws:
javax.servlet.ServletException

init

public void init(WizardServlet servlet,
                 javax.servlet.ServletConfig config,
                 int panelno,
                 java.lang.String id)
          throws javax.servlet.ServletException
Specified by:
init in interface IWizardPanel
Overrides:
init in class WizardPanelBase
Throws:
javax.servlet.ServletException

getUsage

public PropertySet getUsage()
Returns the usage.XXX usage needs to be made dynamic

Specified by:
getUsage in interface IWizardPanel
Overrides:
getUsage in class WizardPanelBase

cleanUp

public void cleanUp()
             throws java.io.IOException
Description copied from class: WizardPanelBase
Cleans up this panel so that isPanelDone() will return false.

Specified by:
cleanUp in interface IWizardPanel
Overrides:
cleanUp in class WizardPanelBase
Throws:
java.io.IOException

isPanelDone

public boolean isPanelDone()
Description copied from class: WizardPanelBase
Is this panel done

Specified by:
isPanelDone in interface IWizardPanel
Overrides:
isPanelDone in class WizardPanelBase

capitalize

public java.lang.String capitalize(java.lang.String s)

display

public void display(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response,
                    org.apache.velocity.context.Context context)
Display the panel.

Specified by:
display in interface IWizardPanel
Overrides:
display in class WizardPanelBase

validate

public void validate(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     org.apache.velocity.context.Context context)
              throws java.io.IOException
Checks if the given parameters are valid.

Specified by:
validate in interface IWizardPanel
Overrides:
validate in class WizardPanelBase
Throws:
java.io.IOException

updateCloneConfig

public void updateCloneConfig(IConfigStore config)
                       throws EBaseException,
                              java.io.IOException
Throws:
EBaseException
java.io.IOException

updateConfig

public void updateConfig(IConfigStore config,
                         java.lang.String certTag)
                  throws EBaseException,
                         java.io.IOException
Throws:
EBaseException
java.io.IOException

configCert

public void configCert(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       org.apache.velocity.context.Context context,
                       Cert certObj)
                throws java.io.IOException
create and sign a cert locally (handles both "selfsign" and "local")

Throws:
java.io.IOException

configCertWithTag

public void configCertWithTag(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              org.apache.velocity.context.Context context,
                              java.lang.String tag)
                       throws java.io.IOException
Throws:
java.io.IOException

getURL

public java.lang.String getURL(javax.servlet.http.HttpServletRequest request,
                               IConfigStore config)

update

public void update(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   org.apache.velocity.context.Context context)
            throws java.io.IOException
Commit parameter changes

Specified by:
update in interface IWizardPanel
Overrides:
update in class WizardPanelBase
Throws:
java.io.IOException

initParams

public void initParams(javax.servlet.http.HttpServletRequest request,
                       org.apache.velocity.context.Context context)
                throws java.io.IOException
Throws:
java.io.IOException

displayError

public 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.

Specified by:
displayError in interface IWizardPanel
Overrides:
displayError in class WizardPanelBase