Package com.portal.app.ccare.comp
Class PIAExtendedServicesBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PIAExtendedServicesBeanImpl
- All Implemented Interfaces:
PExtendableObjectBean
,PIACollectionBean
,PControllerBean
,Serializable
,Remote
,Unreferenced
public class PIAExtendedServicesBeanImpl
extends PIAComponentCollectionBean
implements PExtendableObjectBean
The controller class for all extended service panels
Calls the PortalOp.CUST_UPDATE_SERVICES opcode to commit changes made
to the service object.
- Version:
- %version: 10 % %date_modified: Tue Feb 12 14:59:29 2002 %
- Author:
- kapono
- 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 TypeMethodDescriptionvoid
graft
(PModelHandle[] model) Because one panel is used during account creation/maintenance, we need to play some tricks with the input FList.boolean
Determines if the account object contains service objects or not.com.portal.app.util.CustomerValErrorData[]
save
(PModelHandle pm) Used to save changes to already existing /service objects (this is not used for account creation, just for existing accounts).void
setIndex
(int index) Establishes the service array index for the service being modified.void
setIndex
(PModelHandle[] model, String serviceID) Establishes the service array index for the service being modified.void
setObjectType
(String type) Primarily useful for subclasses of Portal storable classes (like profile objects).void
Theupdate
method is called by various internal methods when the data has changed enough to require changing the client display.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChild
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
-
PIAExtendedServicesBeanImpl
Creates a new controller object- Throws:
RemoteException
-
-
Method Details
-
update
Description copied from class:PControllerImpl
Theupdate
method is called by various internal methods when the data has changed enough to require changing the client display. Must be overridden by a specific controller subclass.- Overrides:
update
in classPIAComponentCollectionBean
- Parameters:
reason
-data
-- Throws:
RemoteException
-
save
Used to save changes to already existing /service objects (this is not used for account creation, just for existing accounts).- Specified by:
save
in interfacePExtendableObjectBean
- Parameters:
pm
- The input FList (as a PModelHandle) containing the data to save.- Returns:
- an array of errors, if the save fails
- Throws:
RemoteException
-
setIndex
Establishes the service array index for the service being modified. This is present to accomodate multiple services (service panels).
This method should be called before calling graft();- Specified by:
setIndex
in interfacePExtendableObjectBean
- Parameters:
index
- The index into the Service array- Throws:
RemoteException
-
setIndex
Establishes the service array index for the service being modified. This is present to accomodate multiple services (service panels).
This method should be called before calling graft();- Parameters:
model
- 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.serviceID
- The index into the Service array- Throws:
RemoteException
-
setObjectType
Primarily useful for subclasses of Portal storable classes (like profile objects). For example, if you create a panel for a profile object /profile/marketing you would pass "marketing" through this API. This is needed to build up the proper POID.- Specified by:
setObjectType
in interfacePExtendableObjectBean
- Parameters:
type
- The name of the extended storable class- Throws:
RemoteException
-
graft
Because one panel is used during account creation/maintenance, we need to play some tricks with the input FList. Account creation requires a slightly different input FList. This method takes the index specified in the extended services panel and uses it to build up the input FList for account creation.- Specified by:
graft
in interfacePExtendableObjectBean
- Parameters:
model
- 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.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.- Throws:
RemoteException
-
hasExtendedObjects
Determines if the account object contains service objects or not.- Specified by:
hasExtendedObjects
in interfacePExtendableObjectBean
- Returns:
- true
- Throws:
RemoteException
-