public class PPlanOptionsPageBeanImpl extends PIAComponentCollectionBean implements PPlanOptionsPageBean
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
PPlanOptionsPageBeanImpl() |
Modifier and Type | Method and Description |
---|---|
void |
appendSelectedOptionalDeals(PModelHandle planHandle,
SparseArray optionalDeals,
PModelHandle curPlan)
Appends the optionalDeals to the planHandle to be used for collecting data.
|
void |
collectDataForUpgrade(PModelHandle inMH,
PModelHandle toPlan)
Appends selected setvices data to the model flist.
|
String |
getCurrentPlanName(PModelHandle accModel)
Fetches the plan name of the given accModel
|
String |
getDescr(Poid poid)
Returns description of the given poid.
|
String[] |
getMutuallyExclusiveDeals(PModelHandle dealHandle)
Returns an array of mutually exclusive deals of the given dealHandle.
|
String |
getName(Poid poid)
Returns name of the given poid
|
PModelHandle |
getPlanOfferingForUpgrade(PModelHandle planHandle,
SparseArray dealsToBePurchased,
PModelHandle fromPlanHandle)
Returns the plan data for upgrade operation.
|
PModelHandle |
getPoidFromPrerequisiteMap(PModelHandle dealHandle,
String dealName)
Retrieves poid from Prerequiste Map.
|
SparseArray |
getPrerequisites(PModelHandle dealHandle,
PModelHandle planModelHandle,
PModelHandle accModel)
Returns an array of prerequisite deals of the given dealHandle.
|
PModelHandle |
getProductsForCurrentAccount(PModelHandle accModel)
Returns PIN_FLD_PRODUCTS of the given accModel
|
SparseArray |
getProductsForDeal(Poid dealPoid)
Returns PIN_FLD_PRODUCTS of the given dealPoid
|
PModelHandle[] |
getSubscribedPlansForCurrentAccount(PModelHandle acctModel)
Returns the plan modelhandles of the accModel.
|
PModelHandle |
getUpdatedPlanOffering(PModelHandle planHandle,
SparseArray dealsToBePurchased)
Returns the updated plan offering with purchase flags set for whatever deals/sevices which
are selected on plan options page.
|
PModelHandle |
getUpdatedPlanOfferingForChangeOption(PModelHandle subscribedPlan,
SparseArray selectedDeals)
Returns the plan data for change options offering.
|
boolean |
isAnyServiceCustReqd(SparseArray deals)
Decides if any service corresponding to any of the specified deals needs service
customization.
|
boolean |
isCSRPlan(PModelHandle plan)
Checks if the given plan has /service/admin_client in it.
|
boolean |
isMappingRequired(PModelHandle curPlan,
PModelHandle transitionablePlan)
Returns true if mapping is required.
|
boolean |
isServiceCustReqdForTransition(PModelHandle fromPlanHandle,
PModelHandle toServiceHandle)
Checks if the customization is required for any service during transition operation.
|
boolean |
isServicePurchasedInFromPlan(PModelHandle fromPlanHandle,
PModelHandle toServiceHandle)
Checks if the service type represented by toServiceHandle is purchased in
fromPlan.
|
FList |
readObject(Poid poid)
Reads the object pointed by poid
|
PModelHandle |
updateDealHandleWithServiceObj(PModelHandle dealHandle,
PModelHandle serviceHandle)
Updates the deal handle with service Obj info.
|
Object |
validateDealDependency(SparseArray dealsArray,
PModelHandle accModel,
boolean isAcctCreation)
Validates the deals in the given dealsArray.
|
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
public PPlanOptionsPageBeanImpl() throws RemoteException
RemoteException
public PModelHandle[] getSubscribedPlansForCurrentAccount(PModelHandle acctModel) throws RemoteException
getSubscribedPlansForCurrentAccount
in interface PPlanOptionsPageBean
accModel
- account model whose plans information need to be fetched.RemoteException
public String getCurrentPlanName(PModelHandle accModel) throws RemoteException
getCurrentPlanName
in interface PPlanOptionsPageBean
RemoteException
public PModelHandle getProductsForCurrentAccount(PModelHandle accModel) throws RemoteException
getProductsForCurrentAccount
in interface PPlanOptionsPageBean
RemoteException
public String getName(Poid poid) throws RemoteException
getName
in interface PPlanOptionsPageBean
poid
- poid whose name is neededRemoteException
public String getDescr(Poid poid) throws RemoteException
getDescr
in interface PPlanOptionsPageBean
poid
- RemoteException
public SparseArray getProductsForDeal(Poid dealPoid) throws RemoteException
getProductsForDeal
in interface PPlanOptionsPageBean
dealPoid
- dealpoidRemoteException
public SparseArray getPrerequisites(PModelHandle dealHandle, PModelHandle planModelHandle, PModelHandle accModel) throws RemoteException
getPrerequisites
in interface PPlanOptionsPageBean
dealHandle
- RemoteException
public PModelHandle getPoidFromPrerequisiteMap(PModelHandle dealHandle, String dealName) throws RemoteException
getPoidFromPrerequisiteMap
in interface PPlanOptionsPageBean
dealHandle
- dealName
- RemoteException
public Object validateDealDependency(SparseArray dealsArray, PModelHandle accModel, boolean isAcctCreation) throws RemoteException
validateDealDependency
in interface PPlanOptionsPageBean
dealsArray
- array containing the deals to be validated.DealDependencyErrorData
containing the output of the opcode. In case of an
exception returns CustomerValErrorData.RemoteException
public String[] getMutuallyExclusiveDeals(PModelHandle dealHandle) throws RemoteException
getMutuallyExclusiveDeals
in interface PPlanOptionsPageBean
dealHandle
- deal whose mutually exclusive deals are requiredRemoteException
public FList readObject(Poid poid) throws RemoteException
readObject
in interface PPlanOptionsPageBean
poid
- RemoteException
public PModelHandle getPlanOfferingForUpgrade(PModelHandle planHandle, SparseArray dealsToBePurchased, PModelHandle fromPlanHandle) throws RemoteException
getPlanOfferingForUpgrade
in interface PPlanOptionsPageBean
planHandle
- - the plan handle of the plan to which upgrade is happening.dealsToBePurchased
- - deals which need to be purchasedfromPlanHandle
- - The from plan from which upgrade is happening.RemoteException
public PModelHandle updateDealHandleWithServiceObj(PModelHandle dealHandle, PModelHandle serviceHandle) throws RemoteException
updateDealHandleWithServiceObj
in interface PPlanOptionsPageBean
dealHandle
- serviceHandle
- RemoteException
public PModelHandle getUpdatedPlanOffering(PModelHandle planHandle, SparseArray dealsToBePurchased) throws RemoteException
getUpdatedPlanOffering
in interface PPlanOptionsPageBean
planHandle
- dealsToBePurchased
- RemoteException
public void appendSelectedOptionalDeals(PModelHandle planHandle, SparseArray optionalDeals, PModelHandle curPlan) throws RemoteException
appendSelectedOptionalDeals
in interface PPlanOptionsPageBean
planHandle
- - model handle associated with collect data event.optionalDeals
- curPlan
- - current plan model handleRemoteException
public boolean isCSRPlan(PModelHandle plan) throws RemoteException
isCSRPlan
in interface PPlanOptionsPageBean
plan
- RemoteException
public void collectDataForUpgrade(PModelHandle inMH, PModelHandle toPlan) throws RemoteException
collectDataForUpgrade
in interface PPlanOptionsPageBean
inMH
- Modelhandle of collect data eventtoPlan
- ModelHandle of the plan to which transition is being doneRemoteException
public boolean isMappingRequired(PModelHandle curPlan, PModelHandle transitionablePlan) throws RemoteException
isMappingRequired
in interface PPlanOptionsPageBean
curPlan
- Current plan from which we want to upgradetoPlan
- new plan to which we are upgradingRemoteException
public PModelHandle getUpdatedPlanOfferingForChangeOption(PModelHandle subscribedPlan, SparseArray selectedDeals) throws RemoteException
getUpdatedPlanOfferingForChangeOption
in interface PPlanOptionsPageBean
subscribedPlan
- selectedDeals
- RemoteException
public boolean isAnyServiceCustReqd(SparseArray deals) throws RemoteException
isAnyServiceCustReqd
in interface PPlanOptionsPageBean
deals
- contains the deal model handlesRemoteException
public boolean isServicePurchasedInFromPlan(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) throws RemoteException
PPlanOptionsPageBean
isServicePurchasedInFromPlan
in interface PPlanOptionsPageBean
RemoteException
public boolean isServiceCustReqdForTransition(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) throws RemoteException
isServiceCustReqdForTransition
in interface PPlanOptionsPageBean
fromPlanHandle
- the plan that the account currently owns.toServiceHandle
- the plan to which transition is being happening.RemoteException
Copyright © 2003, 2023, Oracle and/or its affiliates.