public class PPurchasePanelBeanImpl extends PIAComponentCollectionBean implements PPurchasePanelBean
Modifier and Type | Field and Description |
---|---|
protected HashMap<Poid,FList> |
serviceMap |
protected PModelHandle |
serviceMH |
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
PPurchasePanelBeanImpl()
Creates an instance of this controller class
|
Modifier and Type | Method and Description |
---|---|
void |
collectBackDateData(PModelHandle inMH,
Date backDate)
Builds PModelHandle by appending the deal/plan model handle to the input model handle
during purchase offering.
|
void |
collectDataForChangeOption(PModelHandle origMH,
PModelHandle curAccModel,
PModelHandle curPlanHandle,
SparseArray dealsToBePurchased)
Collects data for change options
|
void |
collectDataForDealTransition(PModelHandle origModel,
PModelHandle acctModel,
PModelHandle fromDeal,
PModelHandle serviceModel,
String toPlanName,
int iTransitionType)
The Input flist being formed is of the form
0 PIN_FLD_POID POID [0] 0.0.0.1 /account 41349 0
0 PIN_FLD_PROGRAM_NAME STR [0] "Customer Center"
0 PIN_FLD_TRANSITION_TYPE ENUM [0] 1
0 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 43813 0
0 PIN_FLD_FROM_DEAL_INFO SUBSTRUCT [0] allocated 20, used 1
1 PIN_FLD_PACKAGE_ID INT [0] 2
0 PIN_FLD_TO_DEAL_INFO SUBSTRUCT [0] allocated 20, used 1
1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 42980 0
|
void |
collectDataForPlanTransition(PModelHandle inMH,
PModelHandle fromPlan,
String planToUpgrade,
PModelHandle accModel,
int iTransitionType)
The flist being formed is of the form
0 PIN_FLD_POID POID [0] 0.0.0.1 /account 41349 0
0 PIN_FLD_FROM_PLAN POID [0] 0.0.0.1 /plan 40980 0
0 PIN_FLD_TO_PLAN POID [0] 0.0.0.1 /plan 44436 0
0 PIN_FLD_PROGRAM_NAME STR [0] "testnap"
0 PIN_FLD_TRANSITION_TYPE ENUM [0] 0
0 PIN_FLD_SERVICES ARRAY [0] allocated 20, used 2
1 PIN_FLD_FROM_SERVICE SUBSTRUCT [0] allocated 20, used 1
2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 41029 0
1 PIN_FLD_TO_SERVICE SUBSTRUCT [0] allocated 20, used 3
2 PIN_FLD_SERVICE_ID STR [0] "Test1"
2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 2
2 PIN_FLD_DEALS ARRAY [0] allocated 20, used 1
3 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 42388 0
0 PIN_FLD_SERVICES ARRAY [1] allocated 20, used 1
1 PIN_FLD_FROM_SERVICE SUBSTRUCT [0] allocated 20, used 1
2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/email 43333 0
0 PIN_FLD_SERVICES ARRAY [2] allocated 20, used 1
1 PIN_FLD_TO_SERVICE SUBSTRUCT [0] allocated 20, used 5
2 PIN_FLD_SERVICE_ID STR [0] "Test2"
2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 2
2 PIN_FLD_DEALS ARRAY [0] allocated 20, used 1
3 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 11822 0
|
void |
collectDealData(PModelHandle inMH,
int serviceIndex,
String dealName)
Builds PModdelHandle by appending the deal model handle to the input model handle
during purchase offering.
|
void |
collectPlanData(PModelHandle inMH,
String planName)
Builds PModdelHandle by appending the plan model handle to the input model handle
during purchase offering and account creation.
|
void |
collectPlanDataForRequiredDeals(PModelHandle inMH,
String planName)
Collects plan data for the required deals to be used by COMMIT_CUSTOMER.
|
HashMap |
formBalanceGrpCurrencyMap(PModelHandle hOrig)
This method forms an hashmap with balance group index as keys and the corresonding credit limits as values
|
String |
getCurrentPlanName(PModelHandle accModel)
Retrives the plan name of the current account
|
Poid |
getCurrentPlanPoid()
Gets current plan poid
|
PModelHandle |
getDealModelHandle(int serviceIndex,
String dealName)
Retrieves a deal model handle for a specific deal when Existing Services is selected
during purchase offering.
|
protected FList |
getDeals(FList in)
This method returns all the deals for the given service poid.
|
Vector |
getDealsForTransition(PModelHandle currAccModel,
int iTransitionType)
Returns the vector of deal objects which can be transitioned to other deals.
|
String[] |
getDealsNamesStrings(int dealIndex)
Retrieves sorted names of deals from an array of Vector during purchase offering.
|
PModelHandle |
getExistingServicesModel()
Retrieves model handle for the specific account.
|
Object[] |
getInactiveReqProdNamesForCurAccount(PModelHandle accModel)
Returns an array products which are inactive in the current account.
|
Object[] |
getLoginIDs(PModelHandle serviceModelHandle)
Returns the Object[] contains the following.
|
PModelHandle |
getPlanModelHandle(String planName)
Retrieves plan model for a specific plan during purchase
offering or account creation.
|
String[] |
getPlanNamesStrings()
Retrieves sorted plan names when New Services is getting selected on Purchase Panel during
purchase offering or account creation.
|
protected FList |
getPlans(FList in)
This method returns all the plans for the given account poid.
|
Vector |
getPlans(PModelHandle curAccModel)
Gets the plans for the current account model.
|
FList |
getServiceFlist(int index)
Retrieves Service FLists from an array .
|
PModelHandle[] |
getSubscribedPlansForCurrentAccount(PModelHandle accModel)
Retrives the list of subscribed plans of the current account
|
PModelHandle |
getTransitionableDealModelHandle(String name)
Returns the deal handle given the deal name.
|
Object[] |
getTransitionableDealStrings(PModelHandle dealHandle,
PModelHandle currActHandle,
int iTransitionType)
Returns the array of transitionable deal names of the given deal.
|
PModelHandle |
getTransitionablePlanModelHandle(String planName)
Returns plan model handle associated with given plan string.
|
Object[] |
getTransitionablePlanStrings(PModelHandle planHandle,
int iTransitionType)
Returns an array of plan names which are available for transition from the current plan.
|
Vector |
getTransitionTypes()
Reads the transition types from /config/transition_type object
|
boolean |
hasPlanSubcriptionGroup(String planName)
Finds out if the given plan contains subscription group
|
boolean |
hasRequiredServices(PModelHandle planHandle,
boolean planOptionsFlag)
Returns true if plan has required deals/services.
|
boolean |
hasSponsoredProduct(PModelHandle planModelHandle,
ArrayList sponsoredProducts)
This will return true if the selected plan has
a product which is present in the list of the
sponsored products
|
void |
initForExistingServices(PModelHandle acctMH)
Initialize class member for storing Existing Services related info during
purchase offering.
|
int |
initForExistingServices(PModelHandle acctMH,
int threshold)
Initialize class member for storing Existing Services related info during
purchase offering.
|
boolean |
isAcctHasPlan(PModelHandle accModel)
Checks if the current account has products associated with it.
|
boolean |
isBestDeal(String dealName)
Checks if the current deal is best configured deal.
|
void |
resetAcctCreationData()
Clears cached data used during New Account Creation Wizard.
|
void |
resetPurchaseOfferingData()
Clears cached data used during Purchase Offering Wizard.
|
void |
setAacAccess(String strAccess)
Sets the auto-account-creation access string which is used to determine
the list of plans that will be made available to choose during account
creation and purchase offering for additional services.
|
void |
setService(PModelHandle serviceMH)
Sets the service cache
|
void |
updatePlanModelHandle(PModelHandle pmh)
This is a method used to update Plan model handle for account creation
input Flist
0 PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 1 0
0 PIN_FLD_POID POID [0] 0.0.0.1 /plan 9582 0
0 PIN_FLD_SERVICES ARRAY [0] allocated 6, used 6
1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/email -1 0
1 PIN_FLD_LOGIN STR [0] "fhgf"
1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 11886 0
1 PIN_FLD_BAL_INFO_INDEX INT [0] 0
1 PIN_FLD_DEALS ARRAY [0] allocated 13, used 13
0 PIN_FLD_SERVICES ARRAY [1] allocated 6, used 6
1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 0
1 PIN_FLD_LOGIN STR [0] "gfhgfh"
1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 9838 0
1 PIN_FLD_BAL_INFO_INDEX INT [0] 1
1 PIN_FLD_DEALS ARRAY [0] allocated 13, used 13
.
|
addChild, getCollectedData, getSelectionDataFor, removeChild, update
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
protected PModelHandle serviceMH
public PPurchasePanelBeanImpl() throws RemoteException
RemoteException
public void initForExistingServices(PModelHandle acctMH) throws RemoteException
initForExistingServices
in interface PPurchasePanelBean
accountMH
- model handle for the account object.RemoteException
public int initForExistingServices(PModelHandle acctMH, int threshold) throws RemoteException
initForExistingServices
in interface PPurchasePanelBean
accountMH
- model handle for the account object.threshold
- RemoteException
public void setService(PModelHandle serviceMH)
setService
in interface PPurchasePanelBean
serviceMH
- public PModelHandle getDealModelHandle(int serviceIndex, String dealName) throws RemoteException
getDealModelHandle
in interface PPurchasePanelBean
serviceIndex
- index to the flist array where the service flists are stored in corresponds to the order
in the Existing Services combobox.dealName
- deal name of the selected deal for the selected service/(Account).RemoteException
public PModelHandle getPlanModelHandle(String planName) throws RemoteException
getPlanModelHandle
in interface PPurchasePanelBean
planName
- plan name of the specific plan.RemoteException
public PModelHandle getExistingServicesModel() throws RemoteException
getExistingServicesModel
in interface PPurchasePanelBean
RemoteException
public FList getServiceFlist(int index)
getServiceFlist
in interface PPurchasePanelBean
index
- index to the array where Service FLists are stored.public String[] getDealsNamesStrings(int dealIndex) throws RemoteException
getDealsNamesStrings
in interface PPurchasePanelBean
dealIndex
- index to the array where deal names are stored for a specific service/(Account).RemoteException
public boolean hasSponsoredProduct(PModelHandle planModelHandle, ArrayList sponsoredProducts) throws RemoteException
PPurchasePanelBean
hasSponsoredProduct
in interface PPurchasePanelBean
planModelHandle
- modelHandle containing the products of the
selected plansponsoredProducts
- the list of the sponsored productsRemoteException
protected FList getPlans(FList in) throws RemoteException
in
- RemoteException
protected FList getDeals(FList in) throws RemoteException
in
- RemoteException
public void collectDealData(PModelHandle inMH, int serviceIndex, String dealName) throws RemoteException
collectDealData
in interface PPurchasePanelBean
serviceIndex
- index to the flist array where the service flists are stored.dealName
- string of the deal name..RemoteException
public void collectBackDateData(PModelHandle inMH, Date backDate) throws RemoteException
collectBackDateData
in interface PPurchasePanelBean
inMH
- PModelHandlebackDate
- RemoteException
public void collectPlanData(PModelHandle inMH, String planName) throws RemoteException
collectPlanData
in interface PPurchasePanelBean
planName
- string of the plan name..RemoteException
public String[] getPlanNamesStrings() throws RemoteException
getPlanNamesStrings
in interface PPurchasePanelBean
RemoteException
public void setAacAccess(String strAccess) throws RemoteException
setAacAccess
in interface PPurchasePanelBean
strAccess
- auto-account-creation access string.RemoteException
public void resetAcctCreationData() throws RemoteException
resetAcctCreationData
in interface PPurchasePanelBean
RemoteException
public void resetPurchaseOfferingData() throws RemoteException
resetPurchaseOfferingData
in interface PPurchasePanelBean
RemoteException
public String getCurrentPlanName(PModelHandle accModel)
getCurrentPlanName
in interface PPurchasePanelBean
RemoteException
public boolean isAcctHasPlan(PModelHandle accModel) throws RemoteException
isAcctHasPlan
in interface PPurchasePanelBean
RemoteException
public boolean isBestDeal(String dealName) throws RemoteException
isBestDeal
in interface PPurchasePanelBean
RemoteException
public Object[] getInactiveReqProdNamesForCurAccount(PModelHandle accModel) throws RemoteException
getInactiveReqProdNamesForCurAccount
in interface PPurchasePanelBean
RemoteException
public PModelHandle[] getSubscribedPlansForCurrentAccount(PModelHandle accModel) throws RemoteException
getSubscribedPlansForCurrentAccount
in interface PPurchasePanelBean
RemoteException
public Poid getCurrentPlanPoid() throws RemoteException
getCurrentPlanPoid
in interface PPurchasePanelBean
RemoteException
public Object[] getTransitionablePlanStrings(PModelHandle planHandle, int iTransitionType) throws RemoteException
getTransitionablePlanStrings
in interface PPurchasePanelBean
planHandle
- plan model handleiTransitionType
- Transition type such as upgrade, downgrade, red, etc.,RemoteException
public Vector getDealsForTransition(PModelHandle currAccModel, int iTransitionType) throws RemoteException
getDealsForTransition
in interface PPurchasePanelBean
curAccModel
- current account modeliTransitionType
- - denotes current transition type(upgrade or downgrade or etc.,)RemoteException
public Object[] getTransitionableDealStrings(PModelHandle dealHandle, PModelHandle currActHandle, int iTransitionType) throws RemoteException
getTransitionableDealStrings
in interface PPurchasePanelBean
dealHandle
- currAcctHandle
- iTransitionType
- Transition type such as upgrade, downgrade, red, etc.,RemoteException
public PModelHandle getTransitionableDealModelHandle(String name) throws RemoteException
getTransitionableDealModelHandle
in interface PPurchasePanelBean
name
- RemoteException
public PModelHandle getTransitionablePlanModelHandle(String planName) throws RemoteException
getTransitionablePlanModelHandle
in interface PPurchasePanelBean
planName
- name of the planRemoteException
public void collectDataForPlanTransition(PModelHandle inMH, PModelHandle fromPlan, String planToUpgrade, PModelHandle accModel, int iTransitionType) throws RemoteException
collectDataForPlanTransition
in interface PPurchasePanelBean
inMH
- input modelhandle to which collected data need to be updatedfromPlan
- from plan model handleplanToUpgrade
- name of the plan to which the account is getting upgraded to.accModel
- account model handleiTransitionType
- Transition type such as upgrade, downgrade, red, etc.,RemoteException
public void collectPlanDataForRequiredDeals(PModelHandle inMH, String planName) throws RemoteException
collectPlanDataForRequiredDeals
in interface PPurchasePanelBean
RemoteException
public void collectDataForDealTransition(PModelHandle origModel, PModelHandle acctModel, PModelHandle fromDeal, PModelHandle serviceModel, String toPlanName, int iTransitionType) throws RemoteException
collectDataForDealTransition
in interface PPurchasePanelBean
origModel
- model associated with Collect data event.acctModel
- current account model.fromDeal
- from deal handle.serviceModel
- service model of the from deal.toPlanName
- to deal handleiTransitionType
- Transition type such as upgrade, downgrade, red, etc.,RemoteException
public void collectDataForChangeOption(PModelHandle origMH, PModelHandle curAccModel, PModelHandle curPlanHandle, SparseArray dealsToBePurchased) throws RemoteException
PPurchasePanelBean
collectDataForChangeOption
in interface PPurchasePanelBean
origMH
- input modelhandle to which collected data need to be updatedcurAccModel
- current account modelcurPlanHandle
- current plan modeldealsToBePurchased
- list of deals which are selected in planoptions page to purchase.RemoteException
public Vector getPlans(PModelHandle curAccModel)
getPlans
in interface PPurchasePanelBean
curAccModel
- public boolean hasRequiredServices(PModelHandle planHandle, boolean planOptionsFlag) throws RemoteException
hasRequiredServices
in interface PPurchasePanelBean
planHandle
- planOptionsFlag
- is a customized flag which conveys if plan options page should be enabled if
plan being used contains only optional deals. If it is true, then we will see if PIN_FLD_TYPE is present in any
deal in the plan and return true. If planOptionsFlag is false, then we will see if a required deal
(PIN_FLD_TYPE is 1) is there are not, if present, we will return true.RemoteException
public Vector getTransitionTypes() throws RemoteException
getTransitionTypes
in interface PPurchasePanelBean
RemoteException
public boolean hasPlanSubcriptionGroup(String planName) throws RemoteException
hasPlanSubcriptionGroup
in interface PPurchasePanelBean
planName
- name of the selected planRemoteException
public HashMap formBalanceGrpCurrencyMap(PModelHandle hOrig) throws RemoteException
formBalanceGrpCurrencyMap
in interface PPurchasePanelBean
hOrig
- PModelHandle, is the orginal model handle for the selected planException
RemoteException
public void updatePlanModelHandle(PModelHandle pmh) throws RemoteException
updatePlanModelHandle
in interface PPurchasePanelBean
RemoteException
public Object[] getLoginIDs(PModelHandle serviceModelHandle) throws RemoteException
getLoginIDs
in interface PPurchasePanelBean
serviceModelHandle
- RemoteException
Copyright © 2003, 2023, Oracle and/or its affiliates.