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_CUSTOMERto create a new accountPortalOp.CUST_VALIDATE_CUSTOMERto 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.voiddumpModel(PModelHandle model) Prints out the FList corresponding to the passed-in model handlevoidsetValidatableArrayFields(int[] arrayFieldNumbers) Specifies the field numbers of FList array fields to be validated during processing of thePortalOp.CUST_VALIDATE_CUSTOMERop-code.validate(PModelHandle model) Does partial validation on the FList corresponding to the passed-in model handle (using thePortalOp.CUST_VALIDATE_CUSTOMERop code), returning aCustomerErrorif validation fails.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChild, updateMethods 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, unreferencedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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_CUSTOMERop-code. (Note: By default,PortalOp.CUST_VALIDATE_CUSTOMERonly provides validation support for some arrays. SeevalidatePagefor 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:
setValidatableArrayFieldsin 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_CUSTOMERop code), returning aCustomerErrorif 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:
validatein interfacePIACreateAccountBean- Parameters:
model- data to be validated- Returns:
nullif theFListcorresponding tomodelis found to be valid (or if no matching array fields exist in theFListcorresponding tomodel). If validation fails, then aCustomerErrorobject is returned which represents the error(s) associated with the failure.- Throws:
RemoteException- See Also:
- NAMEINFO array (
-
createNewAccount
Description copied from interface:PIACreateAccountBeanTries to create a new account, and if successful, returns its model handle.- Specified by:
createNewAccountin interfacePIACreateAccountBean- Returns:
PModelHandleof the new account if the create attempt is successful. If account creation fails, then aCustomerErrorobject 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:
dumpModelin interfacePIACreateAccountBean- Parameters:
model- Model handle- Throws:
RemoteException
-