public class PIACreateAccountBeanImpl extends PIAComponentCollectionBean implements PIACreateAccountBean
PortalOp.CUST_COMMIT_CUSTOMER
to create a new account
PortalOp.CUST_VALIDATE_CUSTOMER
to do partial validation of account creation data
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
PIACreateAccountBeanImpl()
Creates an account creation controller.
|
Modifier and Type | Method and Description |
---|---|
Object |
createNewAccount(PModelHandle model)
Tries to create a new account, and if successful, returns its model
handle.
|
void |
dumpModel(PModelHandle model)
Prints out the FList corresponding to the passed-in model handle
|
void |
setValidatableArrayFields(int[] arrayFieldNumbers)
Specifies the field numbers of FList array fields to be validated during
processing of the
PortalOp.CUST_VALIDATE_CUSTOMER op-code. |
Object |
validate(PModelHandle model)
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. |
addChild, getCollectedData, getSelectionDataFor, removeChild, update
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
public PIACreateAccountBeanImpl() throws RemoteException
RemoteException
public void setValidatableArrayFields(int[] arrayFieldNumbers) throws RemoteException
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.)setValidatableArrayFields
in interface PIACreateAccountBean
arrayFieldNumbers
- field numbers of array fields to be validatedRemoteException
#validatePage
public Object validate(PModelHandle model) throws RemoteException
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:PIN_FLD_NAMEINFO
-- field number 156)
PIN_FLD_BILLINFO
-- field number 126)
PIN_FLD_PAYINFO
-- field number 882)
PIN_FLD_ACTGINFO
-- field number 751)
PIN_FLD_SERVICES
-- field number 122)
PIN_FLD_LOCALES
-- field number 124)
validate
in interface PIACreateAccountBean
model
- data to be validatednull
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.RemoteException
setValidatableArrayFields(int[])
,
CustomerError
public Object createNewAccount(PModelHandle model) throws RemoteException
PIACreateAccountBean
createNewAccount
in interface PIACreateAccountBean
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.RemoteException
CustomerError
public void dumpModel(PModelHandle model) throws RemoteException
dumpModel
in interface PIACreateAccountBean
model
- Model handleRemoteException
Copyright © 2003, 2023, Oracle and/or its affiliates.