Package com.portal.app.ccare.comp
Class PIACreateAccountBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.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:
Op codes called:
PortalOp.CUST_COMMIT_CUSTOMER
to create a new accountPortalOp.CUST_VALIDATE_CUSTOMER
to do partial validation of account creation data
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNewAccount
(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 handlevoid
setValidatableArrayFields
(int[] arrayFieldNumbers) Specifies the field numbers of FList array fields to be validated during processing of thePortalOp.CUST_VALIDATE_CUSTOMER
op-code.validate
(PModelHandle model) Does partial validation on the FList corresponding to the passed-in model handle (using thePortalOp.CUST_VALIDATE_CUSTOMER
op code), returning aCustomerError
if validation fails.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChild, update
Methods inherited from class com.portal.bas.PControllerImpl
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.portal.bas.PControllerBean
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
-
Constructor Details
-
PIACreateAccountBeanImpl
Creates an account creation controller.- Throws:
RemoteException
-
-
Method Details
-
setValidatableArrayFields
Specifies the field numbers of FList array fields to be validated during processing of thePortalOp.CUST_VALIDATE_CUSTOMER
op-code. (Note: By default,PortalOp.CUST_VALIDATE_CUSTOMER
only provides validation support for some arrays. SeevalidatePage
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 interfacePIACreateAccountBean
- Parameters:
arrayFieldNumbers
- field numbers of array fields to be validated- Throws:
RemoteException
- See Also:
-
validate
Does partial validation on the FList corresponding to the passed-in model handle (using thePortalOp.CUST_VALIDATE_CUSTOMER
op code), returning aCustomerError
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 interfacePIACreateAccountBean
- Parameters:
model
- data to be validated- Returns:
null
if theFList
corresponding tomodel
is found to be valid (or if no matching array fields exist in theFList
corresponding tomodel
). If validation fails, then aCustomerError
object is returned which represents the error(s) associated with the failure.- Throws:
RemoteException
- See Also:
- NAMEINFO array (
-
createNewAccount
Description copied from interface:PIACreateAccountBean
Tries to create a new account, and if successful, returns its model handle.- Specified by:
createNewAccount
in interfacePIACreateAccountBean
- Returns:
PModelHandle
of the new account if the create attempt is successful. If account creation fails, then aCustomerError
object will returned which represents the error(s) associated with the failure.- Throws:
RemoteException
- See Also:
-
dumpModel
Prints out the FList corresponding to the passed-in model handle- Specified by:
dumpModel
in interfacePIACreateAccountBean
- Parameters:
model
- Model handle- Throws:
RemoteException
-