Class PAccountCreationWizard

All Implemented Interfaces:
PAccountCreationWizardContext, PValidatingWizardContext, WizardValidationManager, SharedDataManager, PAppContext, ImageObserver, MenuContainer, PropertyChangeListener, VetoableChangeListener, Serializable, EventListener, Accessible

public class PAccountCreationWizard extends PValidatingWizard implements PAccountCreationWizardContext
A validating wizard for use in creating new accounts and validating user entered data when a page switch occurs. (See the CustomerCenter.properties file for a list of some of the account creation wizard defaults that can be set.)
See Also:
  • Field Details

    • PRE_COMMIT

      public static final String PRE_COMMIT
      Shared data event sent out before the account is committed to Portal The PModelHandle as gathered from the UI is passed in the event.
      See Also:
    • mCreateAccountBean

      protected PIACreateAccountBean mCreateAccountBean
    • mInfoBean

      protected PAccountInfoBeanImpl mInfoBean
  • Constructor Details

    • PAccountCreationWizard

      public PAccountCreationWizard(String wizardName)
      Builds a wizard used for use in creating new accounts.
      Parameters:
      wizardName - The tag identifying the name of the account creation wizard to be built. The tag identifies the wizard pages in the CustomerCenter.properties file.
  • Method Details

    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class PValidatingWizard
    • getAccountCreationModelHandle

      public PModelHandle getAccountCreationModelHandle()
      Returns the model handle for the account creation wizard.
      Returns:
      The model handle for the account creation wizard. (Before the wizard is displayed or if the wizard was cancelled the model handle will be null. If the wizard completes successfully, the model handle will be that of the newly created account.)
    • validateData

      protected Object validateData(PModelHandle model) throws RemoteException
      Validates the data in the passed-in model handle. By default, validation will be done on any of the following array fields in the FList corresponding to the model handle:
      • NAMEINFO array (PIN_FLD_NAMEINFO -- field number 156)
      • BILLINFO array (PIN_FLD_BILLINFO -- field number 126)
      • PAYINFO array (PIN_FLD_PAYINFO -- field number 882)
      • ACTGINFO array (PIN_FLD_ACTGINFO -- field number 751)
      • SERVICES array (PIN_FLD_SERVICES -- field number 122)
      • LOCALES array (PIN_FLD_LOCALES -- field number 124)

      To validate against a different set of array fields, the appropriate [xxx].validationarrayfieldnums property should be set. (See the CustomerCenter.properties file for further details.)
      Specified by:
      validateData in class PValidatingWizard
      Parameters:
      model - The model handle for the data to be validated.
      Returns:
      null if the validation succeeds, otherwise a CustomerError
      Throws:
      RemoteException
    • commitData

      protected Object commitData(PModelHandle model) throws RemoteException
      Creates an account based upon the passed-in model handle.
      Specified by:
      commitData in class PValidatingWizard
      Parameters:
      model - The model handle for the account to be created.
      Returns:
      Model handle of the new account if the commit succeeds; otherwise a CustomerError
      Throws:
      RemoteException
    • finished

      protected void finished(PModelHandle model)
      Reports that the wizard finished successfully (the commit attempt was successful). The following processing is carried out:
      • A message box informing of the successful commit is displayed.
      • The wizard is hidden.
      Overrides:
      finished in class PValidatingWizard
      Parameters:
      model - The model handle returned from a successful commit attempt.