Class PIACreateAccountBeanImpl

All Implemented Interfaces:
PIACreateAccountBean, PIACollectionBean, PControllerBean, Serializable, Remote, Unreferenced

public class PIACreateAccountBeanImpl extends PIAComponentCollectionBean implements PIACreateAccountBean
Controller class for new account creation.

Op codes called:
  • PortalOp.CUST_COMMIT_CUSTOMER to create a new account
  • PortalOp.CUST_VALIDATE_CUSTOMER to do partial validation of account creation data
See Also:
  • Constructor Details

  • Method Details

    • setValidatableArrayFields

      public void setValidatableArrayFields(int[] arrayFieldNumbers) throws RemoteException
      Specifies the field numbers of FList array fields to be validated during processing of the PortalOp.CUST_VALIDATE_CUSTOMER op-code. (Note: By default, PortalOp.CUST_VALIDATE_CUSTOMER only provides validation support for some arrays. See validatePage for a list of the default array fields that will be validated. If the argument to this method contains an array field number not among the default list, then in order for validation to work corresponding code must be added to Infranet to perform the appropriate validation.)
      Specified by:
      setValidatableArrayFields in interface PIACreateAccountBean
      Parameters:
      arrayFieldNumbers - field numbers of array fields to be validated
      Throws:
      RemoteException
      See Also:
      • invalid reference
        #validatePage
    • validate

      public Object validate(PModelHandle model) throws RemoteException
      Does partial validation on the FList corresponding to the passed-in model handle (using the PortalOp.CUST_VALIDATE_CUSTOMER op code), returning a CustomerError if validation fails. By default, validation will be done on any of the following array fields that may appear in the FList:
      • 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)
      Specified by:
      validate in interface PIACreateAccountBean
      Parameters:
      model - data to be validated
      Returns:
      null if the FList corresponding to model is found to be valid (or if no matching array fields exist in the FList corresponding to model). If validation fails, then a CustomerError object is returned which represents the error(s) associated with the failure.
      Throws:
      RemoteException
      See Also:
    • createNewAccount

      public Object createNewAccount(PModelHandle model) throws RemoteException
      Description copied from interface: PIACreateAccountBean
      Tries to create a new account, and if successful, returns its model handle.
      Specified by:
      createNewAccount in interface PIACreateAccountBean
      Returns:
      PModelHandle of the new account if the create attempt is successful. If account creation fails, then a CustomerError object will returned which represents the error(s) associated with the failure.
      Throws:
      RemoteException
      See Also:
      • CustomerError
    • dumpModel

      public void dumpModel(PModelHandle model) throws RemoteException
      Prints out the FList corresponding to the passed-in model handle
      Specified by:
      dumpModel in interface PIACreateAccountBean
      Parameters:
      model - Model handle
      Throws:
      RemoteException