public class PPurchasePlansBeanImpl extends PControllerImpl implements PPurchasePlansBean, Serializable
Implements the following functionality:
PortalOp.CUST_POL_GET_PLANS opcode to display the list
of plans available to purchase.PortalOp.CUST_MODIFY_CUSTOMER opcode to purchase the
user-selected plan.mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY| Constructor and Description |
|---|
PPurchasePlansBeanImpl()
Creates the controller for purchasing plans.
|
| Modifier and Type | Method and Description |
|---|---|
List |
getPlans()
Gets the list of plans available for purchase when the bean is loaded.
|
String |
getPlans(int index)
Accesses the plan available for purchase at the specified
index when the bean is loaded.
|
Object |
getSelectionDataFor(String dataItem,
int index)
Given the name of a display data item and an optional index,
returns the information needed for a Selection event.
|
void |
listOfPlans(PModelHandle mH,
ResourceBundle bundle)
Displays the list of plans available for purchase for this account.
|
protected void |
processOutputFList(FList out)
Parses the output flist of the plans available for purchase and stores it in
a
List for the View to use. |
void |
purchasePlans(PModelHandle mH)
Gets the array associated with the plan the user selected,
sets the login and password specified, and purchases the plan.
|
void |
setConfirmation(String sPassword)
Sets the input data/hidden variable
ConfirmPassword
with the value of the customer's password verification String. |
void |
setIndex(String index)
Sets the input data/hidden variable
SelectedPlanIndex
to purchase the selected plan. |
void |
setLogin(String sLogin)
Sets the input data/hidden variable
ServiceLogin
with the value of the customer's login. |
void |
setPassword(String sPassword)
Sets the input data/hidden variable
ServicePassword
with the value of the customer's password. |
protected void |
setPlans(String sResult)
Adds a plan to the list of plans available for purchase.
|
void |
update(int reason,
Object data)
The
update method is called by various internal methods when
the data has changed enough to require changing the client display. |
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, unreferencedpublic PPurchasePlansBeanImpl()
throws RemoteException
RemoteExceptionpublic void setIndex(String index) throws RemoteException
SelectedPlanIndex
to purchase the selected plan.setIndex in interface PPurchasePlansBeanindex - a specific plan to purchaseRemoteExceptionpublic void setLogin(String sLogin) throws RemoteException
ServiceLogin
with the value of the customer's login.setLogin in interface PPurchasePlansBeansLogin - a String with the customer's login valueRemoteExceptionpublic void setPassword(String sPassword) throws RemoteException
ServicePassword
with the value of the customer's password.setPassword in interface PPurchasePlansBeansPassword - a String with the customer's password valueRemoteExceptionpublic void setConfirmation(String sPassword) throws RemoteException
ConfirmPassword
with the value of the customer's password verification String.setConfirmation in interface PPurchasePlansBeansPassword - a String with the customer's password
verification valueRemoteExceptionpublic List getPlans() throws RemoteException
getPlans in interface PPurchasePlansBeanList with the available plans.RemoteExceptionpublic String getPlans(int index) throws RemoteException
getPlans in interface PPurchasePlansBeanindex - the location of the specific plan to retrieveString with the specific plan's name and description.RemoteExceptionprotected void setPlans(String sResult)
sResult - a String with the plan's name and decriptionpublic void update(int reason,
Object data)
PControllerImplupdate 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.update in class PControllerImplreason - an integer constant that indicates the reason for the update
(UPDATE_NEW_MODEL, UPDATE_PROPERTY,
UPDATE_MODEL_CHANGE, or UPDATE_CLIENT)data - the data associated with updatepublic Object getSelectionDataFor(String dataItem, int index)
PControllerBeangetSelectionDataFor in interface PControllerBeandataItem - the name of a data item. Must match the name of
an item changed by sending a PViewDataChangeEvent.index - an optional index into an array data itempublic void listOfPlans(PModelHandle mH, ResourceBundle bundle) throws RemoteException
PPurchasePlansBeanlistOfPlans in interface PPurchasePlansBeanmH - the account's PModelHandle saved in the sessionbundle - the resource bundleRemoteExceptionpublic void purchasePlans(PModelHandle mH) throws RemoteException
purchasePlans in interface PPurchasePlansBeanmH - the account's PModelHandleRemoteException - thrown for null contexts, input flists
or service arrays, as well as mismatched
passwords or invalid field
descriptionsprotected void processOutputFList(FList out) throws RemoteException
List for the View to use.out - the opcode's output flist containing plans available for purchaseRemoteException - thrown if the array of plans or the plan's POID are
nullCopyright © 2003, 2023, Oracle and/or its affiliates.