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, removeChild
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 PIAProfileBeanImpl() throws RemoteException
RemoteException
public void update(int reason, Object data) throws RemoteException
update
in class PIAComponentCollectionBean
reason
- incoming
- RemoteException
- thrown for errorspublic boolean hasExtendedObjects() throws RemoteException
hasExtendedObjects
in interface PExtendableObjectBean
RemoteException
public void setIndex(int index) throws RemoteException
setIndex
in interface PExtendableObjectBean
index
- The index into the Object arrayRemoteException
public void setObjectType(String type) throws RemoteException
setObjectType
in interface PExtendableObjectBean
type
- The name of the extended storable classRemoteException
public void graft(PModelHandle[] model) throws RemoteException
graft
in interface PExtendableObjectBean
pm
- 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.RemoteException
public 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 PProfileBean
pm
- PModelHandle to the account flist which already includes the
FldProfiles array with the custom fields.RemoteException
setObjectType(java.lang.String)
public void graftForUpdateCustomer(PModelHandle[] model) throws RemoteException
graftForUpdateCustomer
in interface PProfileBean
model
- 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.RemoteException
public void graftForCreateProfile(PModelHandle model) throws RemoteException
graftForCreateProfile
in interface PProfileBean
model
- The PModelHandle obtained by calling collectData() locally on the panel.RemoteException
public com.portal.app.util.CustomerValErrorData[] save(PModelHandle pm) throws RemoteException
save
in interface PExtendableObjectBean
pm
- The input FList (as a PModelHandle) containing the data
to save.RemoteException
public com.portal.app.util.CustomerValErrorData[] createProfile(PModelHandle pm) throws RemoteException
createProfile
in interface PProfileBean
pm
- The input FList (as a PModelHandle) containing the data
to save.RemoteException
public PModelHandle[] getProfiles(PModelHandle model) throws RemoteException
getProfiles
in interface PProfileBean
model
- account or service model handle.RemoteException
Copyright © 2003, 2023, Oracle and/or its affiliates.