Package com.portal.app.ccare.comp
Interface PProfileBean
- All Superinterfaces:
PExtendableObjectBean
,Remote
- All Known Implementing Classes:
PIAProfileBeanImpl
The interface of the profile bean.
-
Method Summary
Modifier and TypeMethodDescriptioncom.portal.app.util.CustomerValErrorData[]
Used to create a profile object for an existing account (this is not used for account creation, just for existing accounts).getProfiles
(PModelHandle model) An account/service could potentially have more than one profile instances of the same type associated with it.void
If only one profile object exists, in WebKit you can use the account creation model to create the profile object instead of using a seperate profile model You can add the profile field in WebKit just as you add any Portal field at account creation by including the FldProfiles array with the custom fields in it.void
Because the same panel can be used to create a new profile object for an existing account(OP_CREATE_PROFILE) or modify an existing profile object, we need to play some tricks with the input FList.void
Because the same panel can be used standalone(OP_MODIFY_PROFILE) or embedded within an account panel(OP_UPDATE_CUSTOMER), we need to play some tricks with the input FList.Methods inherited from interface com.portal.app.ccare.comp.PExtendableObjectBean
graft, hasExtendedObjects, save, setIndex, setObjectType
-
Method Details
-
createProfile
Used to create a profile object for an existing account (this is not used for account creation, just for existing accounts).- Parameters:
pm
- The input FList (as a PModelHandle) containing the data to save.- Returns:
- an array of errors, if the create fails
- Throws:
RemoteException
-
graftForAccountCreation
If only one profile object exists, in WebKit you can use the account creation model to create the profile object instead of using a seperate profile model You can add the profile field in WebKit just as you add any Portal field at account creation by including the FldProfiles array with the custom fields in it. The object type should be specified usingsetObjectType()
- Parameters:
pm
- PModelHandle to the account flist which already includes the FldProfiles array with the custom fields.- Throws:
RemoteException
- See Also:
-
graftForUpdateCustomer
Because the same panel can be used standalone(OP_MODIFY_PROFILE) or embedded within an account panel(OP_UPDATE_CUSTOMER), we need to play some tricks with the input FList. This method builds up the the input flist required by OP_CREATE_PROFILE- Parameters:
pm
- An array of 2 PModelHandles. One that is passed into collectData() from the parent account panel, and one that is obtained by calling collectData() locally on the panel. The latter is grafted onto the former in the proper format.- Throws:
RemoteException
-
graftForCreateProfile
Because the same panel can be used to create a new profile object for an existing account(OP_CREATE_PROFILE) or modify an existing profile object, we need to play some tricks with the input FList. This method builds up the the input flist required by OP_CREATE_PROFILE- Parameters:
pm
- The PModelHandle obtained by calling collectData() locally on the panel.- Throws:
RemoteException
-
getProfiles
An account/service could potentially have more than one profile instances of the same type associated with it. This method returns all associated profile instances of the specified profile type.- Parameters:
model
- account or service model handle.- Returns:
- an array of profile model handles.
- Throws:
RemoteException
-