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, unreferenced
public PPurchasePlansBeanImpl() throws RemoteException
RemoteException
public void setIndex(String index) throws RemoteException
SelectedPlanIndex
to purchase the selected plan.setIndex
in interface PPurchasePlansBean
index
- a specific plan to purchaseRemoteException
public void setLogin(String sLogin) throws RemoteException
ServiceLogin
with the value of the customer's login.setLogin
in interface PPurchasePlansBean
sLogin
- a String
with the customer's login valueRemoteException
public void setPassword(String sPassword) throws RemoteException
ServicePassword
with the value of the customer's password.setPassword
in interface PPurchasePlansBean
sPassword
- a String
with the customer's password valueRemoteException
public void setConfirmation(String sPassword) throws RemoteException
ConfirmPassword
with the value of the customer's password verification String
.setConfirmation
in interface PPurchasePlansBean
sPassword
- a String
with the customer's password
verification valueRemoteException
public List getPlans() throws RemoteException
getPlans
in interface PPurchasePlansBean
List
with the available plans.RemoteException
public String getPlans(int index) throws RemoteException
getPlans
in interface PPurchasePlansBean
index
- the location of the specific plan to retrieveString
with the specific plan's name and description.RemoteException
protected void setPlans(String sResult)
sResult
- a String
with the plan's name and decriptionpublic void update(int reason, Object data)
PControllerImpl
update
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 PControllerImpl
reason
- 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 update
public Object getSelectionDataFor(String dataItem, int index)
PControllerBean
getSelectionDataFor
in interface PControllerBean
dataItem
- 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
PPurchasePlansBean
listOfPlans
in interface PPurchasePlansBean
mH
- the account's PModelHandle
saved in the sessionbundle
- the resource bundleRemoteException
public void purchasePlans(PModelHandle mH) throws RemoteException
purchasePlans
in interface PPurchasePlansBean
mH
- the account's PModelHandle
RemoteException
- 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.