public class PIAProfileBeanImpl extends PIAComponentCollectionBean implements PProfileBean
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY| Constructor and Description |
|---|
PIAProfileBeanImpl()
Create a profile panel controller.
|
| Modifier and Type | Method and Description |
|---|---|
com.portal.app.util.CustomerValErrorData[] |
createProfile(PModelHandle pm)
Used to create a profile object for an existing account (this
is not used for account creation, just for existing accounts).
|
PModelHandle[] |
getProfiles(PModelHandle model)
An account/service could potentially have more than one profile instances of the
same type associated with it.
|
void |
graft(PModelHandle[] model)
Because one panel is used during account creation/maintenance, we
need to play some tricks with the input FList.
|
void |
graftForAccountCreation(PModelHandle model)
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 |
graftForCreateProfile(PModelHandle model)
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 |
graftForUpdateCustomer(PModelHandle[] model)
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.
|
boolean |
hasExtendedObjects()
Determines if the account object contains profile objects or not.
|
com.portal.app.util.CustomerValErrorData[] |
save(PModelHandle pm)
Used to save changes to already existing profile objects (this
is not used for account creation, just for existing accounts).
|
void |
setIndex(int index)
Deprecated.
Taken care of automatically now
|
void |
setObjectType(String type)
Primarily useful for subclasses of Portal storable classes (like
profile objects).
|
void |
update(int reason,
Object data)
Called to retrieve the profile objects associated with the
given account or service.
|
addChild, getCollectedData, getSelectionDataFor, removeChildaddRemoteListener, 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, unreferencedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModelpublic PIAProfileBeanImpl()
throws RemoteException
RemoteExceptionpublic void update(int reason,
Object data)
throws RemoteException
update in class PIAComponentCollectionBeanreason - incoming - RemoteException - thrown for errorspublic boolean hasExtendedObjects()
throws RemoteException
hasExtendedObjects in interface PExtendableObjectBeanRemoteExceptionpublic void setIndex(int index)
throws RemoteException
setIndex in interface PExtendableObjectBeanindex - The index into the Object arrayRemoteExceptionpublic void setObjectType(String type) throws RemoteException
setObjectType in interface PExtendableObjectBeantype - The name of the extended storable classRemoteExceptionpublic void graft(PModelHandle[] model) throws RemoteException
graft in interface PExtendableObjectBeanpm - An array of 2 PModelHandles. One that is passed into
collectData() from the account creation wizard, and one that is
obtained by calling collectData() locally on the panel. The latter
is grafted onto the former in the proper format.RemoteExceptionpublic void graftForAccountCreation(PModelHandle model) throws RemoteException
setObjectType().
This method modifies the input flist required for OP_CUST_COMMIT_CUSTOMER by adding
the FldProfilesObj field for each FldProfiles item in the array as follows.
input:FldNameInfo ...
FldProfiles[0]
FldInheritedInfo[0]
CustomFld
output:FldNameInfo...
FldProfiles[0]
FldInheritedInfo[0]
CustomFld
FldProfileObjgraftForAccountCreation in interface PProfileBeanpm - PModelHandle to the account flist which already includes the
FldProfiles array with the custom fields.RemoteExceptionsetObjectType(java.lang.String)public void graftForUpdateCustomer(PModelHandle[] model) throws RemoteException
graftForUpdateCustomer in interface PProfileBeanmodel - 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.RemoteExceptionpublic void graftForCreateProfile(PModelHandle model) throws RemoteException
graftForCreateProfile in interface PProfileBeanmodel - The PModelHandle obtained by calling collectData() locally on the panel.RemoteExceptionpublic com.portal.app.util.CustomerValErrorData[] save(PModelHandle pm) throws RemoteException
save in interface PExtendableObjectBeanpm - The input FList (as a PModelHandle) containing the data
to save.RemoteExceptionpublic com.portal.app.util.CustomerValErrorData[] createProfile(PModelHandle pm) throws RemoteException
createProfile in interface PProfileBeanpm - The input FList (as a PModelHandle) containing the data
to save.RemoteExceptionpublic PModelHandle[] getProfiles(PModelHandle model) throws RemoteException
getProfiles in interface PProfileBeanmodel - account or service model handle.RemoteExceptionCopyright © 2003, 2023, Oracle and/or its affiliates.